Milk
New Member
Posts: 59
inherit
185504
0
Sept 22, 2021 13:14:00 GMT -8
Milk
59
November 2012
wolfmilk
|
Post by Milk on May 29, 2014 22:57:36 GMT -8
How do I replace the usernames in the info center with avatars? Could someone please provide me with a code? Here is an example of what I mean: adoxographyv2.boards.net/
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on May 29, 2014 23:13:51 GMT -8
Hi All usernames, or just those in the online and online in past 24 hours sections?
|
|
inherit
133146
0
Jan 7, 2024 2:07:03 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on May 30, 2014 0:16:31 GMT -8
Hey! This is what I have exactly on Adoxography 2.0 for online listings:
{foreach $[online_user]}
<a href="$[online_user.href]" style="float: left; margin-right: 5px; margin-top: 5px;" title="$[online_user.name]">$[online_user.avatar_small]</a>
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}
And for 24 hour listings:
{foreach $[online_user_24]}
<a href="$[online_user_24.href]" style="float: left; margin-right: 5px; margin-top: 5px;" title="$[online_user_24.name]">$[online_user_24.avatar_small]</a>
{/foreach}
{if $[total_online_not_shown_24]}
, and <a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_online_not_shown_24] more...</a>
{/if}
|
|
Milk
New Member
Posts: 59
inherit
185504
0
Sept 22, 2021 13:14:00 GMT -8
Milk
59
November 2012
wolfmilk
|
Post by Milk on May 30, 2014 3:20:03 GMT -8
@khristian Beautiful! This is what I was looking for. Thank you so much! ( Craig Apologies for being vague. I meant both.)
|
|
blueshead
Full Member
More hot peppers please!
Posts: 928
inherit
185994
0
Jun 17, 2018 15:20:52 GMT -8
blueshead
More hot peppers please!
928
November 2012
mrblueshead
|
Post by blueshead on May 31, 2014 6:32:52 GMT -8
Can someone guide me through this? I'm not sure where to place this. Thank you...
|
|
inherit
133146
0
Jan 7, 2024 2:07:03 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on May 31, 2014 8:13:27 GMT -8
Can someone guide me through this? I'm not sure where to place this. Thank you... Go to Admin > Structure > Layout Templates > Home. If you are using the default theme, around line 79 you will see this code: {foreach $[online_user]} $[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma] {/foreach} {if $[total_online_not_shown]} , and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a> {/if} Replace that with this: {foreach $[online_user]}
<a href="$[online_user.href]" style="float: left; margin-right: 5px; margin-top: 5px;" title="$[online_user.name]">$[online_user.avatar_small]</a>
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if} On line 104 you will see this code: {foreach $[online_user_24]} $[online_user_24]{if $[online_user_24.invisible]} <span class="small">(invisible)</span>{/if}$[online_user_24.comma] {/foreach} {if $[total_online_not_shown_24]} , and <a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_online_not_shown_24] more...</a> {/if} Replace that with this: {foreach $[online_user_24]}
<a href="$[online_user_24.href]" style="float: left; margin-right: 5px; margin-top: 5px;" title="$[online_user_24.name]">$[online_user_24.avatar_small]</a>
{/foreach}
{if $[total_online_not_shown_24]}
, and <a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_online_not_shown_24] more...</a>
{/if} Does that help?
|
|
inherit
133146
0
Jan 7, 2024 2:07:03 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on May 31, 2014 8:43:48 GMT -8
|
|
blueshead
Full Member
More hot peppers please!
Posts: 928
inherit
185994
0
Jun 17, 2018 15:20:52 GMT -8
blueshead
More hot peppers please!
928
November 2012
mrblueshead
|
Post by blueshead on May 31, 2014 8:56:28 GMT -8
Thank you @khristian..worked out fine... I did it for members and not people online for 24 hours.. Nice stuff..
|
|
blueshead
Full Member
More hot peppers please!
Posts: 928
inherit
185994
0
Jun 17, 2018 15:20:52 GMT -8
blueshead
More hot peppers please!
928
November 2012
mrblueshead
|
Post by blueshead on May 31, 2014 13:39:01 GMT -8
Thank you @khristian..worked out fine... I did it for members and not people online for 24 hours.. Nice stuff.. Ha..almost perfect (i went ahead and did the 24 hours too)..exceeept.. How do I make the avatars smaller.. I see avatar.small But I want smaller.. can I assign a px to that? And how?
|
|
inherit
133146
0
Jan 7, 2024 2:07:03 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on May 31, 2014 13:45:47 GMT -8
|
|
blueshead
Full Member
More hot peppers please!
Posts: 928
inherit
185994
0
Jun 17, 2018 15:20:52 GMT -8
blueshead
More hot peppers please!
928
November 2012
mrblueshead
|
Post by blueshead on May 31, 2014 14:01:52 GMT -8
Silly me not to read your post..I Googled small and CSS and tried "smaller" and "x-small" That's why you're a magical coder..I'm just a blue collar carpenter! And you can "quote" me on this.. Oh yea..All perfect now!
|
|