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.

Mikevet1984 05-31-2011 10:45 AM

Hello, Boofo!

I installed and unistalled this mod because it creates some bugs in the forum.

Some users are always shown on line (my two moderators) to the online member list for hours even though the have left two hours ago.

I hope you update this mod in the future...

The problem is that even though I unstalled the mod the this issue still exists. This did noy happen until I install this spesific mod!

Boofo 05-31-2011 11:10 AM

You've got another mod interfering with it. This mod cannot do what you say it is doing by itself. There is no update that will fix what is happening. You need to find out which mod is clashing with it and have that mod fixed.

Mikevet1984 05-31-2011 01:45 PM

You are propably right!

Can you please help me fix the problem occured?

I have been seeing a message of a user viewing index, 1 minute ago for about four hours now.

I disabled the hooks and the problem still exists. I really hope there is nothing fatal to the database so as nothing to be done.

Any idea how I could restore the forum back to normal?

Mikevet1984 05-31-2011 02:08 PM

Reinstalled it, to make some tests...

Bug still there....

Also I can see false location to my profile, but not to other spesified in the options users profile.

I really do not know why!

Boofo 05-31-2011 02:09 PM

This mod CAN'T do what you think it is doing. There is something else going on with another mod somewhere. This mod doesn't touch the db. Is the user a bot or a guest?

Mikevet1984 05-31-2011 02:13 PM

Nope, a moderator....

Boofo 05-31-2011 02:26 PM

Where does it say they are at?

Mikevet1984 05-31-2011 02:41 PM

Just sent you pm.

Thanks for your reply and support!

Mikevet1984 05-31-2011 03:03 PM

Now my super-moderator also stacked being shown as viewing index all the time.

Immediately uninstalled....

Boofo please take a look a this mod to see if there is any confict with known mods cause I have not installed any rare mod.

Boofo 05-31-2011 03:19 PM

Mike, I have looked this mod over and it is not causing you the problem you are having. You need to uninstall some other mods until you find the culprit.

Boofo 06-03-2011 11:37 AM

Quote:

Originally Posted by Mikevet1984 (Post 2202106)
Now my super-moderator also stacked being shown as viewing index all the time.

Immediately uninstalled....

Boofo please take a look a this mod to see if there is any confict with known mods cause I have not installed any rare mod.

So, I take it you found out this mod was not the problem?

Mikevet1984 06-03-2011 11:44 AM

Yes, after uninstalling your mod the problem still exists...

So as I can not find why did this happen I re-installed it... Machines are crazy some times... :)

Thanks, Rob!

Front Range 4x4 06-20-2012 01:17 AM

Thanks for this! I love it and am sure I'll be hearing from a few members before long as it gets discovered. Very funny, much needed on my forum these days! :rolleyes:

justicechick 01-12-2013 03:25 AM

Now this I like! LOL Fits my goofy personality! Thanks


All times are GMT. The time now is 01:31 PM.

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.01171 seconds
  • Memory Usage 1,765KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete