Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
vBISpy - AJAX real-time feed of new posts/threads Details »»
vBISpy - AJAX real-time feed of new posts/threads
Version: 2.0.4, by Eric Eric is offline
Developer Last Online: Jun 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 01-20-2010 Last Update: 06-22-2011 Installs: 257
Additional Files Is in Beta Stage  
No support by the author.

This is a port of vBISpy by MPDev to vBulletin4. MPDev has given me permission to port this modification, if any staff need to see it, I can forward the PM.


If you use this modification, please >> Mark As Installed, Nominate for MOTM, or Support Developer <<, thank you


What is this!?
vBISpy is an AJAX real-time feed of new posts/threads for your vBulletin 4.0 forum.

Please note that this is currently in Beta. The style is not perfect, but the mod should be fully functionial.


Current Version
2.0.4 - You can find the 3.6.x version, here.


Features flagged for future version(s):
  • looking for suggestions


Will this work on x.x.x ??
Unless otherwise stated, this will work on all 4.0.x versions. This will not work on 3.x.


Sounds cool. How do I install?
  1. Extract the zip, you should have the following directories/files:

    Code:
    /
    |_ vaispy.php
    
    /clientscript/
    |_ va_effects.js
    |_ va_prototype.js
    |_ va_spy.js
    
    /images/
    	/misc/
    	|_ pause_down.gif
    	|_ pause_up.gif
    	|_ play_down.gif
    	|_ play_up.gif
  2. Upload: (in the below instructions 'yourforum' would be where you have vBulletin installed)
    • vaispy.php to /yourforum/vaispy.php
    • /clientscript/*.js to /yourforum/clientscript/*.js
    • /images/misc/*.gif to /yourforum/images/misc/*.gif


Upgrading
Unless noted otherwise, just upload and overwrite 'vaispy.php'.


Customization
Virtually all the code to customize the page is in the vaispy.php script; there are no plugins, no templates and no phrases. You do not need to do anything further; this should work right out of the box.

If you'd like to block certain usergroups from viewing vBISpy; or certain forums from being displayed - edit vaispy.php
PHP Code:
/**
* Do not list these forums even if they have 
* permissions (test categories, etc)
*
* Enter them by ID, separated by commans (eg: 1,2,3)
*/
$blockforums '';

/**
* Do not allow these groups.
*
* Enter them by ID, separated by commans (eg: 1,2,3)
*/
$blockgroups ''
In your browser, open the URL:

http://www.yourforum.com/forum/vaispy.php

You can see examples of this at:
  • Anyone wanting to list here as an example?


Note: Neither I nor MPDev claim ownership of this code except for the file vaispy.php - the rest of the files were using 'freely distributable' (although modified to suit vBISpy) sources. As such, you may use these files as you wish, but please do not remove the copyrights.


Changelog
2.0.4 - June 23, 2011
- Changed 'xml' to 'feed' when the script is requesting data via AJAX
- Updated code that checks for blocked groups and forums so that it works properly.
- Added version string (?v=) to script calls.
- Updated template html to include facebook data if enabled.
- Updated css link rendering to determine if templates are stored as files or not.

2.0.3 - March 25, 2010
- Updated alternate row colors to use stylevars.
- Added ability to block certain usergroups by editing vaispy.php.
- Fixed possible bug where in certain situations a database error would occur.

2.0.2 - January 23, 2010
- Hopefully the incorrect showthread link is now fixed.
- Added alternate row colors.
- Changed default xml delay in va_spy.js to 3000 from 7000.

2.0.1 - January 21, 2010
- Fixed issue with incorrect path to thread statusicon's
- Edits to clientscript/va_spy.js to hopefully fix issues with incorrect showthread link.
- Removed &nbsp;'s from the rows generated if displayed rows are less than 20

2.0.0 - January 21, 2010
- Ported to vBulletin4 with permission from MPDev



If you use this modification, please >> Mark As Installed, Nominate for MOTM, or Support Developer <<, thank you

Download Now

File Type: zip vaSpy-2.0.2.zip (19.4 KB, 298 views)
File Type: zip vaSpy-2.0.3.zip (20.3 KB, 635 views)
File Type: zip vaSpy-2.0.4.zip (20.5 KB, 592 views)

Screenshots

File Type: jpg screenshot.jpg (89.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
Adrijan, babyv0x, caoanh204, DeclanFarrow, SamSteve

Comments
  #142  
Old 04-01-2011, 02:33 PM
d19rnyxx d19rnyxx is offline
 
Join Date: Dec 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tomerl1 View Post
Hello,

Since 4.1.2. Hack does not work. No Page refresh.
Is this a known error?

Sorry my english (I`m Austrian)
Im having the same issue.
Is there anyway of uninstalling this hack
Reply With Quote
  #143  
Old 04-01-2011, 05:58 PM
Mikevet1984's Avatar
Mikevet1984 Mikevet1984 is offline
 
Join Date: Nov 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just remove the uploaded in your server files and you are done!
Reply With Quote
  #144  
Old 04-11-2011, 10:41 AM
ZeroHour's Avatar
ZeroHour ZeroHour is offline
 
Join Date: Sep 2007
Location: Scotland
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
Same problem here, anyone has a fix for this?
Put this under "blockforums = '';"

Code:
if ($vbulletin->userinfo[usergroupid] == 1)
{
    print_no_permission();
}
This blocks unregistered.
Reply With Quote
  #145  
Old 04-14-2011, 02:28 PM
sportsfroma2 sportsfroma2 is offline
 
Join Date: Aug 2006
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see two reports of it not working in 4.1.2..

Anyone have it working in 4.1.2 or 4.1.3? others having issues?

just wondering about the status of the before I decide to upgrade from 4.0.7 to 4.1.3

thanks
Reply With Quote
  #146  
Old 04-14-2011, 03:20 PM
ZeroHour's Avatar
ZeroHour ZeroHour is offline
 
Join Date: Sep 2007
Location: Scotland
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sportsfroma2 View Post
I see two reports of it not working in 4.1.2..

Anyone have it working in 4.1.2 or 4.1.3? others having issues?

just wondering about the status of the before I decide to upgrade from 4.0.7 to 4.1.3

thanks
Running 4.1.3 and all is good
Its code actually doesnt affect vbulletin and unless vb change the structure of the DB it will probably work fine in 4.1.4 etc (4.2 tree *could* be diff but probably not)
Reply With Quote
  #147  
Old 04-15-2011, 01:09 AM
sportsfroma2 sportsfroma2 is offline
 
Join Date: Aug 2006
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZeroHour View Post
Running 4.1.3 and all is good
Its code actually doesnt affect vbulletin and unless vb change the structure of the DB it will probably work fine in 4.1.4 etc (4.2 tree *could* be diff but probably not)
that's good to hear.. I've been using this for years and haven't had any incompatibilities so was surprised to read that this stopped working for some at 4.1.2, so it's good to hear you have it working on 4.1.3.

Occasionally on my site I do have an issue where the spy gets "stuck" and certain posts don't show, but I haven't really found a pattern so figured there's now use reporting it..

For future reference, is there a cache or something that needs to be cleared/reset to get it spying again? seems to happen randomly though

no biggie, just curious
Reply With Quote
  #148  
Old 04-15-2011, 09:41 AM
ZeroHour's Avatar
ZeroHour ZeroHour is offline
 
Join Date: Sep 2007
Location: Scotland
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sportsfroma2 View Post
that's good to hear.. I've been using this for years and haven't had any incompatibilities so was surprised to read that this stopped working for some at 4.1.2, so it's good to hear you have it working on 4.1.3.

Occasionally on my site I do have an issue where the spy gets "stuck" and certain posts don't show, but I haven't really found a pattern so figured there's now use reporting it..

For future reference, is there a cache or something that needs to be cleared/reset to get it spying again? seems to happen randomly though

no biggie, just curious
Hmm there is no cache as far as I can see but I suspect that when the xml feed that contains the actual stream of posts fails, the script does not resume. I presume a refresh of the page fixes the issue.
Its also possible some content in the post preview etc has error'ed the script which would stop it updating and there is always the other possibility if your a larger board of the mysql taking a bit too long to respond with the data but you need to have either a weak vps or large amounts of load.
I personally added a html meta refresh tag to our page to prevent these types of issues for those with our iSpy on a different monitor which may be a plan. The refresh we use is either 20 or 40 mins (I need to check)
Reply With Quote
  #149  
Old 04-20-2011, 02:20 PM
skariko skariko is offline
 
Join Date: Apr 2006
Location: Milano (Italy)
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,
anyone know this bug?

It solves itself when someone create a new thread. It shows this gray line and don't make auto-refresh. (and don't shows all the latest messages).

Thanks,
Andrea
Attached Images
File Type: jpg vaispyerror.jpg (63.0 KB, 0 views)
Reply With Quote
  #150  
Old 04-22-2011, 01:39 AM
tomerl1 tomerl1 is offline
 
Join Date: Feb 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working by 4.1.3
Reply With Quote
  #151  
Old 04-22-2011, 01:44 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works for me on 4.1.2 (just installed, some testing is needed). Is there a way to use new png grafics for threads instead old gifs from vB3.8?
Reply With Quote
Reply

Thread Tools

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 05:09 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.04993 seconds
  • Memory Usage 2,360KB
  • Queries Executed 27 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete