Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extending Who's Online Details »»
Extending Who's Online
Version: , by reefland reefland is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-01-2003 Last Update: Never Installs: 0
 
No support by the author.

Hi All!

I have been integrating my site with our forums and have a questions regarding WOL. It is easy enough to add another page into the online.php file but how can I add multiple pages into one case? The purpose is for a featured member series on my site and instead of adding a new case for each featured member page (once per month) I would like to be able to add them into one case.

Here is the current code:
PHP Code:
  case 'featured603.php':
    
$userinfo[activity] = 'currentfeature';
    break; 
And:

PHP Code:
    case 'currentfeature':
      
$userinfo[where] = "Viewing HRG's <a href='URL.php?s=$session[sessionhash]'>Featured Member</a>";
      break; 
Can I add multiple files like this:
PHP Code:
  case 'featured603.php, feature703':
    
$userinfo[activity] = 'currentfeature';
    break; 
Or would I have to add ianother way? How would that be? I am just trying to prevent from having to add the two codes each time I add a new featured member.

My second question is about using the case for index.php. Obviously my sites homepage and forum both use index.php so how can I separate them in the online.php file so it shows accurately? Currently if someone is on the homepage it says on the forum main index in WOL. would I add it like this:

PHP Code:
  case '/index.php':
    
$userinfo[activity] = 'homepage';
    break; 
Thanks for any help folks; greatly appreciated!
Scott Z.
Reefland.com
Hotroddersgarage.com

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-02-2003, 06:52 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

instead of this:
PHP Code:
case 'featured603.php, feature703'
    
$userinfo[activity] = 'currentfeature'
    break; 
you have to use this:

PHP Code:
case 'featured603.php':
case 
'feature703.php':
case 
'featurexxx.php'
    
$userinfo[activity] = 'currentfeature'
    break; 
and so on
Reply With Quote
  #3  
Old 06-03-2003, 12:03 AM
reefland reefland is offline
 
Join Date: Jan 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Xenon; I am pretty new to PHP but steadily learning.

Any thoughts on this piece and how to get it to display a separate case on WOL than the Forums Main Index?

PHP Code:
case 'index.php'
    
$userinfo[activity] = 'homepage'
    break; 
Again, this instance is for who is on the home page of the site, not the main page of the forums.

Thanks again,
Scott Z.
Reefland.com
Hotroddersgarage.com
Reply With Quote
  #4  
Old 06-03-2003, 09:33 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AFAIK there are some threads about this, but i don't know if any has solved this problem with easy methods
Reply With Quote
  #5  
Old 06-03-2003, 05:25 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 09:03 PM reefland said this in Post #3
Thanks Xenon; I am pretty new to PHP but steadily learning.

Any thoughts on this piece and how to get it to display a separate case on WOL than the Forums Main Index?

PHP Code:
case 'index.php'
    
$userinfo[activity] = 'homepage'
    break; 
Again, this instance is for who is on the home page of the site, not the main page of the forums.

Thanks again,
Scott Z.
Reefland.com
Hotroddersgarage.com
Try using this:

PHP Code:
case '../index.php'
    
$userinfo[activity] = 'homepage'
    break; 
Reply With Quote
  #6  
Old 06-11-2003, 10:09 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reefland, will you release a hack with that?
Reply With Quote
  #7  
Old 06-14-2003, 07:42 PM
reefland reefland is offline
 
Join Date: Jan 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the delayed reply here, been real busy with VB3. Although none of it is supported here, I thought that I would mention that my site integration has went very well with VB3, in fact, it was much easier.

After rebuilding the site using the VB3 code, I still cannot get the homepage to log in WOL correctly, even trying the suggeted code:

PHP Code:
case '../index.php'
    
$userinfo[activity] = 'homepage'
    break; 
I also tried to hardcode the entire URL in but it displays "Viewing Index" (the forums homepage) no matter what. I guess I'll have to live with that.

As far as releasing a hack, I am no where near good enough for that. Basically what I did was utilized most of the code from the index.php file included with VB3 and built all of my pages using the template system. Obviously it was very nice to use the variables included with the forum home page. Since global.php was included, the session is stored (I guess) and able to track visitors across most of the site. Obviously other 3rd party software utilized doesn't show up but what I have is great I think.

Feel free to check it out if you like, it may be one of the first complete sites ingrated with VB3 although not likely.
http://www.hotroddersgarage.com

If there is anything I can help you out with specifically, I'd be happy to do so or detail how I integrated my site. I still have another one to do.

If anyone has any other ideas on logging the homepage on WOL, I'd be interested in trying them.

Regards,
Scott Z.
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 01:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04421 seconds
  • Memory Usage 2,278KB
  • Queries Executed 20 (?)
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
  • (10)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete