inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 20, 2013 13:35:19 GMT -8
Online Friends in Info Centerv1.1.0
Example:
First Find this: (go to admin>>structure>>layout templates>>home)
{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}
and replace with:
<div id="online_users"> {foreach $[online_user]} $[online_user]{if $[online_user.invisible]} <span class="small invisible-user">(invisible)</span>{/if}<span class="online-user-comma">$[online_user.comma]</span> {/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} </div><div id="online_friends"></div> then import plugin:
v1.1.0
Alert Members (Members who I tag when this code is updated): @stinky666 @bepcanada @riccetts
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Jan 20, 2013 14:06:15 GMT -8
Can we get a preview of what this looks like please?
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 20, 2013 17:28:37 GMT -8
In a bit...I just updated it slightly and will have the new version posted by the end of tonight hopefully
|
|
inherit
169267
0
Nov 22, 2024 11:02:13 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Jan 20, 2013 17:37:05 GMT -8
Hey Thesealion, Where does that code go?
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 20, 2013 17:51:25 GMT -8
Updated everything and added example Stinky666Mike sorry I was in a hurry earlier Should be a better explanation now...
|
|
inherit
169267
0
Nov 22, 2024 11:02:13 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Jan 20, 2013 17:56:07 GMT -8
Thanks Thesealion, By the way I have been on your site, It looks pretty good.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 20, 2013 19:00:15 GMT -8
Studio Zero? Not actually my site..just advertising for them. I love it there
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 22, 2013 18:16:32 GMT -8
For those that are using this please update. There was a bug where if you friend user 3 then user 93 or 39 would also show up as a friend. I have also totally removed your friends from the Users Online part so you don't see them twice. Thanks to Benjamin of SZ for helping me figure out how to remove extra commas Mike & Stinky666 since you guys posted here I am gonna assume you are using this and will need to update. If not just let me know If you are using this and would like to be tagged when I update this code just post here or PM me. That offer stands for all my codes
|
|
inherit
169267
0
Nov 22, 2024 11:02:13 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Jan 22, 2013 18:58:54 GMT -8
Thesealion, Fantastic! works real good Thanks
|
|
inherit
77965
0
Apr 3, 2024 6:38:15 GMT -8
CåñåÐå™
163
April 2006
bepcanada
|
Post by CåñåÐå™ on Jan 22, 2013 21:24:07 GMT -8
For those that are using this please update. There was a bug where if you friend user 3 then user 93 or 39 would also show up as a friend. I have also totally removed your friends from the Users Online part so you don't see them twice. Thanks to Benjamin of SZ for helping me figure out how to remove extra commas Mike & Stinky666 since you guys posted here I am gonna assume you are using this and will need to update. If not just let me know If you are using this and would like to be tagged when I update this code just post here or PM me. That offer stands for all my codes I'm using it as well. I have updated .
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 23, 2013 15:17:32 GMT -8
Stinky666CåñåÐå™MikeSorry, but I had to update again. Please re-download. You also need to fix your template again. If you are having trouble with finding the right spot now that it has changed once before just post I have learned that you notice bugs a lot faster when you're actually using the plugin on a forum you use regularly not just for testing -bug where user 3 would alert 93 and 39 was not fixed for 39 last time so that has been fixed. -leftover commas at the end of the Online Users part should disappear now. -if a friend was invisible "(invisible)" would still show up even though their name moved. Now this should also disappear.
|
|
inherit
169267
0
Nov 22, 2024 11:02:13 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Jan 23, 2013 15:55:38 GMT -8
Do we have to use the same code? or is it different? Is it a different plug-in? Thesealion I'm so confused.
|
|
inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Jan 23, 2013 16:04:56 GMT -8
Haha sorry bout that I need you to go back to your template and find the part that you replaced originally on the "home" tab. it should start with "<div id="online_users">" and end with "</div><div id="online_friends"></div>." I need you to replace that with this: <div id="online_users"> {foreach $[online_user]} $[online_user]{if $[online_user.invisible]} <span class="small invisible-user">(invisible)</span>{/if}<span class="online-user-comma">$[online_user.comma]</span> {/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} </div><div id="online_friends"></div> Then, re-download the plugin, delete the old one, and replace it with the new one
|
|
inherit
169267
0
Nov 22, 2024 11:02:13 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Jan 23, 2013 17:05:55 GMT -8
That seems to work. Thanks for the explanation Thesealion.
|
|
inherit
77965
0
Apr 3, 2024 6:38:15 GMT -8
CåñåÐå™
163
April 2006
bepcanada
|
Post by CåñåÐå™ on Jan 23, 2013 19:56:12 GMT -8
Haha sorry bout that I need you to go back to your template and find the part that you replaced originally on the "home" tab. it should start with "<div id="online_users">" and end with "</div><div id="online_friends"></div>." I need you to replace that with this: <div id="online_users"> {foreach $[online_user]} $[online_user]{if $[online_user.invisible]} <span class="small invisible-user">(invisible)</span>{/if}<span class="online-user-comma">$[online_user.comma]</span> {/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} </div><div id="online_friends"></div> Then, re-download the plugin, delete the old one, and replace it with the new one Thanks Thesealion . Re-downloaded and changed the code. Tested and worked well .
|
|