inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 12, 2013 2:01:04 GMT -8
heres what it looks like for members and guests. id like Member Is Online, gender, age, location, and website to show for guests. i understand how to take brs out for guests but cant get this info to show for guests {if $[user.is_online]}<span class="italic" style="font-weight:bold;">Member Is </span><span style="color: #00138E; font-weight: bold; font-style:italic;">Online</span><br />{/if} $[user.warning.bar] <br /> {if $[user.avatar]} <div class="avatar">$[user.avatar]</div><br /> {/if} {if $[user.personal_text.message]} <div style="padding-bottom:1px;">$[user.personal_text]</div> {/if} <hr size="2" style="margin-top:2px; margin-bottom:0px;" color= #000000/> {if $[user.is_member]} <div class="info" style="padding-top:5px; font-size:11px;"> <u>Posts</u> - $[user.posts]{if $[user.gender]}<span class="float-right">$[user.gender.image]</span>{/if}<br/> <u>Likes</u> - $[user.likes]<br/> <u>Last Online</u> - $[user.last_online]<br/> <u>Joined</u> - $[user.registered_on]<br/> {if $[user.age]}<u>Age</u> - $[user.age]<br/>{/if} {if $[user.location]}<u>Location</u> - $[user.location]{/if}
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 12, 2013 9:03:12 GMT -8
That information won't show if you're a guest, regardless of whether or not it's nested within an if statement.
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 12, 2013 9:50:47 GMT -8
alrite thanks, before i decided i wanted guests to see that i was just arranging everything and making sure there was no spaces. the one space that is there for guests i couldnt get. after location, i had a <br> just like all the other ones where there are no spaces. so i need i help there
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 12, 2013 10:00:51 GMT -8
Get rid of the <br /> after 'Joined', and add it to the START of the {if} lines.
<u>Last Online</u> - $[user.last_online]<br /> <u>Joined</u> - $[user.registered_on] {if $[user.age]}<br /><u>Age</u> - $[user.age]{/if} {if $[user.location]}<br /><u>Location</u> - $[user.location]{/if}
Then the line break will only show if it's needed.
Brian beat me to it. =]
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 12, 2013 10:02:05 GMT -8
I moved all of the line breaks before each field instead of after in both the fields that are always there and the ones nested in {if} statements.
It's better to have them before each item because if they're inside an {if} statement they'll only show if that statement has an output.
|
|
inherit
tunesrcoolii@gmail.com
86185
0
Oct 3, 2013 8:48:20 GMT -8
tunescool
4,399
August 2006
tunescool
|
Post by tunescool on Mar 12, 2013 10:09:58 GMT -8
thanks brian
|
|