Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 05-17-2010, 08:54 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Try changing these lines to not have the .php:
PHP Code:
$userinfo['activity'] = 'extra_online_users';
case 
'extra_online_users'
Also, did you make sure your plugins were turned on?
Hey
I tryed without the .php same problem tho

here is a screeny of the "whos online"

Attachment 117244

Thanks
Reply With Quote
  #12  
Old 05-17-2010, 09:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you looked to see exactly what is in the session table at all? and those plugins are active?
Reply With Quote
  #13  
Old 05-17-2010, 09:43 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Have you looked to see exactly what is in the session table at all?
I dont understand what you mean so ;/ No dont think i have.

Quote:
Originally Posted by Lynne View Post
and those plugins are active?
Yup there are Active
Reply With Quote
  #14  
Old 05-17-2010, 09:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I mean, have you actually looked at the session table in the database and seen what is in there - you need to see what information is in there. Also, is your custom page in the same directory as the vbulletin files? This won't work if it isn't.
Reply With Quote
  #15  
Old 05-17-2010, 10:22 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Also, is your custom page in the same directory as the vbulletin files? This won't work if it isn't.
Oh wait yes the "extra_online_users.php" is in my Forum Dir
As for the database no i stay away from them they scare me :/

if this means i have to mess with SQL i guess ill have to forget the idea
I saw you tut and the other guys "whos online idea" and tryed to get it to work on 4.0

Thanks
Reply With Quote
  #16  
Old 05-17-2010, 11:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wait a sec... why did you make this line like this:
PHP Code:
switch ($userinfo['activity']  == 'extra_online_users'


It's supposed to just be:
PHP Code:
switch ($userinfo['activity']) 
Reply With Quote
  #17  
Old 05-17-2010, 11:15 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Wait a sec... why did you make this line like this:
PHP Code:
switch ($userinfo['activity']  == 'extra_online_users'


It's supposed to just be:
PHP Code:
switch ($userinfo['activity']) 
I was mixing codes from https://vborg.vbsupport.ru/showthrea...ghlight=online

An i trying without == 'extra_online_users

Same results
Reply With Quote
  #18  
Old 05-17-2010, 11:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So exactly what is your code in those two plugins right now?
Reply With Quote
  #19  
Old 05-17-2010, 11:38 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
So exactly what is your code in those two plugins right now?

Product= vBulletin
Hook Location = online_location_process
Title = online_location_process
PHP Code:
switch ($filename)
{
    case 
'extra_online_users':
        
$userinfo['activity'] = 'extra_online_users';
        break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.

Plugin is Active = Yes

Product= vBulletin
Hook Location = online_location_unknown
Title = online_location_unknown
PHP Code:
switch ($userinfo['activity'])
{
    case 
'extra_online_users':
        
$userinfo['where'] = '<a href="extra_online_users.php?'.$vbulletin->session->vars[sessionurl].'">MAI-Wallpapers</a>';
        
$userinfo['action'] = "Viewing MAI-Wallpapers";
        
$handled true;
        break;

// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.

Plugin is Active = Yes

This is the two codes from the plugins
Thanks
Reply With Quote
  #20  
Old 05-18-2010, 01:53 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whoops.... when I told you to change that one line and remove the .php from it, I meant the other one, not both. Sorry about that. For the first plugin, you need to have that in the case line:

PHP Code:
switch ($filename)
{
    case 
'extra_online_users.php':
        
$userinfo['activity'] = 'extra_online_users';
        break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.

Leave the second one as is. Now let's see if it works. (Again, sorry about that, I didn't look to see that the line was the same in two places.)
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06901 seconds
  • Memory Usage 2,294KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete