Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 Nov 2014, 22:15
D3m0n h311ra153's Avatar
D3m0n h311ra153 D3m0n h311ra153 is offline
 
Join Date: Sep 2012
Question Online status in memberlist

Like the Title suggests.

I have added it so far into the memberlist template like so:-

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The "user-offline/online/invisible_memberlist.png" is a custom image to fit the size of the username height, so ignore the name change from the original.

Now, no matter what I do, the code only outputs the very first vb:if, and from what I have so far gathered, the $onlinestatus variable is not global and cannot be used in the memberlist template.

Is there a way of making this available, or a hook to pull the correct info, I am at my wits end to get this to work.

Remember, I am not a coder
__________________
Reply With Quote
  #2  
Old 19 Nov 2014, 22:18
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
It may be because the last vb:elseif should be vb:else
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #3  
Old 19 Nov 2014, 22:22
D3m0n h311ra153's Avatar
D3m0n h311ra153 D3m0n h311ra153 is offline
 
Join Date: Sep 2012
Nah!

Didn't make a difference ozzy47, I have reworked this code a handful of times, using slightly different methods (which is probably why I made the mistake), but none of them will display anything other than the first vb:if, which is offline.

Thanks anyway
__________________
Reply With Quote
  #4  
Old 19 Nov 2014, 22:45
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I haven't tried it, but you might try this: Create a plugin using hook location memberlist_bit and code like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then in the template condition, check $userinfo['onlinestatus'] instead of $onlinestatus.
Reply With Quote
  #5  
Old 19 Nov 2014, 22:55
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
I am trying that Kevin, but it is not working ATM, still looking into it.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #6  
Old 19 Nov 2014, 22:58
D3m0n h311ra153's Avatar
D3m0n h311ra153 D3m0n h311ra153 is offline
 
Join Date: Sep 2012
I get this error when viewing the memberlist

Fatal error: Call to undefined function fetch_online_status() in memberlist.php(884) : eval()'d code on line 5
__________________
Reply With Quote
  #7  
Old 19 Nov 2014, 23:03
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
That's because you need to add this above that.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #8  
Old 19 Nov 2014, 23:12
D3m0n h311ra153's Avatar
D3m0n h311ra153 D3m0n h311ra153 is offline
 
Join Date: Sep 2012
Thanks ozzy47 & kh99

This did exactly what I wanted, despite my 6hrs of trying.
__________________
Reply With Quote
  #9  
Old 19 Nov 2014, 23:13
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Excellent, glad to hear it worked for you.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:37.

Layout Options | Width: Wide Color: