Door Games Unlimited

Welcome, Guest.


Subject: Need a bit of help... Date: Sat Dec 12 2015 17:59:27
From: Fireball To: All

I've been trying for hours now and can't figure out the problem with this.

I want rounded corners on my group listings, so I did some digging around and
found some stuff that I thought would work. The table was easy and the 2 top
cells were easy, but the bottom 2 cells aren't so easy. I know what has to
happen; find the last element in the array and add the new sub class to it.

Everything I've tried either adds the rounded corners to all of the array
elements or none of them. Here's what I've got in my msgs/groups.inc...

    <td
class=@@JS:if(msg_area.grp_list[msg_area.grp_list.length-1]){'"grouplist2 
bottomLeftRadius"'}else{'"grouplist2"'}@@><a class="grouplist2"
href="subs.ssjs?
msg_grp=^^groups:name^^">%%groups:description%%</a></td>
    <td
class=@@JS:if(msg_area.grp_list[msg_area.grp_list.length-1]){'"grouplist2 
right bottomRightRadius"'}else{'"grouplist2
right"'}@@>@@JS:msg_area.grp_list[RepeatObj.index].sub_list.length@@</td>

I've tried variations on RepeatObj, but I can't seem to find how this thing is
indexed. Any help would be great!

-=Fireball=-

---
 ■ Synchronet ■ Fireball Express!!! BBS - http://fireballex.com telnet://firebal
lex.com

Previous Message       Next Message
Replies: Need a bit of help... (echicken)