vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Who's Online False Location for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=260468)

Boofo 03-15-2011 10:00 PM

Who's Online False Location for vB 4
 
1 Attachment(s)
Who's Online False Location for vB 4
Version 1.0.1
(By Boofo)

What does this product do?
This product will show viewers of the Who's Online pre-defined actions for userids that you choose. You can exclude users from the Members List (and count), as well as replace the Last Visit in Members List, or Profile Last Activity, with a phrase.

NOTE: I know this has been done before for vb 3, but I re-wrote the code for my specific purposes and added a few options that were missing in the other one.

Credits:
Thanks goes out to nfn for allowing me to use his Exclude Users from Members List modification idea.

Version Information:
Version 1.0.0 --Initial release for vB 4
Version 1.0.1 --Added Exclude Users from Members List (and Members List count) for Who's Online False Location Userids. Also added the ability to show a custom phrase for the Profile Last activity as well as the Last Visit in the Members List.

Installation Overview:
---------------------------
1 Product XML (5 Plugins, 13 Phrases and 5 Settings)

Installation Instructions:
---------------------------
1. Upload the 'who_is_online_false_location.txt' file to your forum root.

NOTE: You will need to edit the text file according to your needs. I have included the one that I use.

2. Go to your Admin CP
Scroll down to 'Plugin System'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the 'product-boofo_false_location.xml' file on your computer

3. Go to your Admin CP -> vBulletin Options -> 'Who's Online False Location' and set the following options:

Who's Online False Location Userids:
--Enter the userids you want to show the false location for. (Default is userid 1)

Who's Online False Location Name:
--Enter the false location you want to show the location for the question mark icon. (Default is... a surprise)

Replace Last Activity in Who's Online:
--Do you want to replace Last activity in Who's Online with the phrase? (Default is "Yes")

Replace Last Activity in Profile:
--Do you want to replace Last activity in Profile with the phrase? (Default is "Yes")

Members List Options:
--Disable Members List changes: Disable any changes to the Members List. (Default)
--Replace Last Visit in Members List: Replace Last Visit in Members List with phrase.
--Exclude Users from Members List: Exclude users from Members List and Members List count.

NOTE: These options will use the Who's Online False Location Userids setting above to determine which users to include.
------------------------------------------------------

Done!
Enjoy!


Code:

if ($mark_as_installed != 'clicked')
{
        $you_get = 'squat';
}
else
{
        $you_get = 'support';
}


Gemma 03-16-2011 09:58 AM

Thanks Boofo. Been running this one for a while now - https://vborg.vbsupport.ru/showthread.php?t=145428

Now I can upgrade :)

Boofo 03-16-2011 10:06 AM

You forgot the install button? ;)

Gemma 03-16-2011 10:09 AM

Leave me alone I've just woke up!

Boofo 03-16-2011 10:16 AM

I figured it had to be something like that as you don't usually forget. ;)

COL NIL SATIS 03-16-2011 12:12 PM

tagged..will install later..thanks Boofo !

Sforums 03-26-2011 09:22 AM

Hey Boofo, love your stuff, you're very talented coder.

But unlike your other work, I've got problem with this one. Every time I go to who's online list my browser freezes (IE8, Win XP). I tried on another computer with different OS (IE8,Vista) and same issue. Uninstalled and everything went back to normal. Have any ideas why is this?

Boofo 03-26-2011 11:06 AM

Quote:

Originally Posted by Sforums (Post 2177628)
Hey Boofo, love your stuff, you're very talented coder.

But unlike your other work, I've got problem with this one. Every time I go to who's online list my browser freezes (IE8, Win XP). I tried on another computer with different OS (IE8,Vista) and same issue. Uninstalled and everything went back to normal. Have any ideas why is this?

Have you tried in another browser?

Sforums 03-26-2011 04:38 PM

Quote:

Originally Posted by Boofo (Post 2177643)
Have you tried in another browser?

No, I am oldfashioned IE user.
Will try messing around, I'm sure it will work eventualy.

Boofo 03-26-2011 04:58 PM

It works fine for me in IE7 and IE8. Make sure your host is allowing fgets to work.


All times are GMT. The time now is 08:01 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.01082 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete