The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Thanks, Dismounted...And it's not even my issue.
I'm getting closer. Either I can pull the names of the active users or I can pull the stats on active users...Only in FORUMHOME I'm able to call both. I think it has to do with the lack of code: Code:
if (fetch_online_status($loggedin)) { $numbervisible++; eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";'); } The problem is that if I hook that into global_start I end up getting a call function error: Code:
Call to undefined function fetch_online_status() Without that line, I won't be able to pull the names of active users in other pages. I'm missing something here... |
#12
|
||||
|
||||
You forgot to include the dependants. Specifically in that case, functions_online.php. You also should add a conditional around it so it only runs on the required pages, otherwise, you'd be running it every time the vBulletin backend is called - not good.
|
#13
|
||||
|
||||
Ahh...That makes sense. Thanks, Dismounted.
So for no mods, he wants to display the What's Going On? box on every page. In this case fetch_online_status, $activeusers and the rest of the codes for What's Going On? will be called. Is there a workaround so that by calling the processes on every page isn't a problem? |
#14
|
||||
|
||||
It isn't a problem if you limit the calling with THIS_SCRIPT. It is a problem because the vBulletin backend is called for every function. Eg. quick replying. We don't need to do the processing on those calls, so we put a cap on it .
|
#15
|
||||
|
||||
Slowly all of this is making sense to me. No wonder when I called certain processes via plugin it shot through every page when it wasn't intended to. So would THIS_SCRIPT for this instance look something like:
Code:
<if condition="in_array(THIS_SCRIPT, array('index', 'forumdisplay', 'showthread', 'search'))"> <div class="smallfont"> <div style="white-space: nowrap"> <!-- currently active users --> $vbphrase[currently_active_users]: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>). <!-- / currently active users --> <phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div> <div>$activeusers</div> </div> </if> Or am I out of the ballpark? Again, thanks for your patience. :up: |
#16
|
||||
|
||||
Yep, spot on with the conditional.
|
#17
|
||||
|
||||
Hehe...You're a good teacher. :up:
I think my next step is to get the codes in function_online.php and combine them with $activeusers. Hopefully they'll call approprately across pages. First, I need sleep. For coders, if they are calling a vB process do they typically write their own codes (a variation of vB codes) or do they take actual vB snippets here and there then put them together? |
#18
|
||||
|
||||
Thank you Freesteyelz and Dismounted. Im still lost, but if anyone comes to a way to do this let me know.
|
#19
|
||||
|
||||
I'm still working on it...But if anyone else has an answer do share.
|
#20
|
||||
|
||||
Your next step is to find the whole "What's Going On?" box processing code (in index.php) and copy that into the plugin. Post whatever errors you get when accessing a page so I can help you with those.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|