Indentation of Alts - line to edit?

Scans for, and displays main/alt relations in your Guild

Moderator: PleegWat

Indentation of Alts - line to edit?

Postby Potpie » Thu Jan 25, 2007 12:48 pm

http://www.hordelandsecurity.org/roster ... AltMonitor

Look at the first three characters: Amarras, Arcticblob, Arcticmule

Amarras is main with no alts - indentation level 1
Arcticblob is a main with alts - plus/minus gif and indentation level 2
Arcticmule is an alt of Arctcblob - there is no indentation level 3, he is at indentation level 2 same as his main.

I would like a third indentation level, and I *think* I've found where I need to make an edit, lines 450-453 here:

Code: Select all
            {    // this is an alt
                
echo '      <td class="'.$stripe_class.'"><td class="'.$stripe_class.'">'.$cell_value.'</td>'."\n";
            }
        } 


I tried padding-left: 20px in either of those two TDs, I tried an align=right in them.

All I get is my whole table looks outta whack. If I could just get the alts to be right-justified instead of left-justified in their cell, that would have the desired effect and all would be great!

Thanks!
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Re: Indentation of Alts - line to edit?

Postby Potpie » Thu Jan 25, 2007 1:01 pm

Well, no right-justified would look goofy, the first letter of every alt's name would be starting at a different point, depending upon how many characters were in the name. *sigh*
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Re: Indentation of Alts - line to edit?

Postby Potpie » Fri Jan 26, 2007 4:29 pm

Please can you help us PleegWat, you're our only hope! ;)
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Indentation of Alts - line to edit?

Postby katmandu » Fri Jan 26, 2007 4:42 pm

See if this works for you:
Code: Select all
echo '      <td class="'.$stripe_class.'"><td class="'.$stripe_class.'"><span style="margin:15px;">'.$cell_value.'</span></td>'."\n";
 
User avatar
katmandu
WR.net Apprentice
WR.net Apprentice
 
Posts: 3
Joined: Thu Sep 07, 2006 12:36 am

Re: Indentation of Alts - line to edit?

Postby Potpie » Fri Jan 26, 2007 7:46 pm

No go. :(

Thank you for the suggestion though!
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Indentation of Alts - line to edit?

Postby PleegWat » Sat Jan 27, 2007 6:34 am

You need
Code: Select all
echo '      <td class="'.$stripe_class.'"><td class="'.$stripe_class.'" style="padding-left: 20px">'.$cell_value.'</td>'."\n"

That works with me. If you don't see any changes, make sure the page isn't cached anywhere.

Personally I think it looks ugly like that though, so I won't add it.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Indentation of Alts - line to edit?

Postby Potpie » Sat Jan 27, 2007 6:49 pm

Perfect!

Thank you very much PW - everyone says that looks much more logical that way. :thumleft:
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Re: Indentation of Alts - line to edit?

Postby Potpie » Sat Jan 27, 2007 8:13 pm

I padded the Main with No Alts a bit as well - now all mains line up, and alts are indented below Mains with Alts.

Looks great I think, check it out. :)

http://www.hordelandsecurity.org/roster ... AltMonitor
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Re: Indentation of Alts - line to edit?

Postby Potpie » Thu Apr 12, 2007 3:30 am

PleegWat wrote:Personally I think it looks ugly like that though, so I won't add it.


Revisiting this thread - I've since blown away my roster page and set it up anew. Looks like AltMonitor displays now exactly how we were talking about back in January.

Did you change your mind PW? ;)
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Indentation of Alts - line to edit?

Postby PleegWat » Thu Apr 12, 2007 4:19 am

Prolly. I'm allowed to, right?
Anyway, I prefer Pleeg.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Indentation of Alts - line to edit?

Postby Potpie » Thu Apr 12, 2007 7:17 am

And I prefer "El Conquistador". :razz:
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm

Re: Indentation of Alts - line to edit?

Postby jkibbles » Thu Apr 12, 2007 8:07 am

Potpie wrote:And I prefer "El Conquistador". :razz:


Bob and Tom rocks!!
User avatar
jkibbles
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Wed Feb 21, 2007 7:05 am

Re: Indentation of Alts - line to edit?

Postby Potpie » Thu Apr 12, 2007 7:22 pm

jkibbles wrote:
Potpie wrote:And I prefer "El Conquistador". :razz:


Bob and Tom rocks!!


LOL Yup! :thumleft:
User avatar
Potpie
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Tue Jul 04, 2006 11:45 pm


Return to AltMonitor

Who is online

Users browsing this forum: No registered users and 0 guests

cron