Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Digital Point Spy Details »»
Digital Point Spy
Version: 1.11, by digitalpoint digitalpoint is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 05-26-2010 Last Update: 09-09-2012 Installs: 404
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

About
This is a Digg-style spy for seeing what's going on in your forum in realtime.

This is something I originally made about 4 years ago. Now that I rewrote it for vBulletin 4 (it also now uses the bundled YUI for animation), I decided to also wrap it up as a product package and release it for the world to use.

Installation
  • Put the spy.php file in your forum folder.
  • Put the digitalpoint_spy.js file in your clientscript folder.
  • Install the product-digitalpoint_spy.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product
You can see a live version in action here:
http://forums.digitalpoint.com/spy.php


1.1.0 Update
  • Moved JavaScript to external file (works around template parsing bug with early versions of vBulletin 4.0.x).
  • XML generation is done with vBulletin's XML Builder class (let it deal with weird characters).
  • Switched JavaScript library to from YUI to jQuery (for an end user, it means better animations).
  • Changed do=xml to do=feed (works around servers that are overly protective and think they are trying to be hacked and blocking the request).

Download Now

File Type: zip digitalpoint_spy-111.zip (8.3 KB, 399 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
abualjori, Erica1977, farru, Sarah EI, Seductor

Comments
  #22  
Old 05-28-2010, 05:06 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice...
Reply With Quote
  #23  
Old 05-28-2010, 08:33 PM
civil78's Avatar
civil78 civil78 is offline
 
Join Date: Nov 2005
Location: Greece
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
CPU load is minimal. It uses it's own tracking table for recent events so that SQL queries are kept very simple. We run this on a large, high traffic forum and the server load between running it and not running it isn't something you can tell the difference between.

Also, if you want to test the server load manually, just go to spy.php?do=xml and reload as fast as you can (or setup a process to hit it continuously). That is the underlying AJAX call used to get new events.
Thanks for the informations, I will test it .
Reply With Quote
  #24  
Old 05-28-2010, 08:42 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by civil78 View Post
Thanks for the informations, I will test it .
Please let us know what you find out.
Reply With Quote
  #25  
Old 05-29-2010, 05:44 AM
teenage.vn teenage.vn is offline
 
Join Date: Mar 2010
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
What's the URL?
http://forum.teenage.vn/spy.php

Here we go, please check it out ...

I have installed the xml file as well ...
Reply With Quote
  #26  
Old 05-29-2010, 08:32 AM
carubmun carubmun is offline
 
Join Date: Jan 2007
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I currently use the iSpy someone else worked up, i got it working alright with vb4 here.

Im wondering if your version can be deployed inside another page, not have it be its own separate page is it currently works.
I want to put it inside a tab, or maybe even on straight up on forumhome.
Would that be possible?
Reply With Quote
  #27  
Old 05-29-2010, 04:41 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by teenage.vn View Post
http://forum.teenage.vn/spy.php

Here we go, please check it out ...

I have installed the xml file as well ...
Looks like maybe the 2 templates it installs didn't get installed or something? Do you have a template named "SPY" in your template system?

Quote:
Originally Posted by carubmun View Post
I currently use the iSpy someone else worked up, i got it working alright with vb4 here.

Im wondering if your version can be deployed inside another page, not have it be its own separate page is it currently works.
I want to put it inside a tab, or maybe even on straight up on forumhome.
Would that be possible?
In the current form, no. But something similar (and some other stuff) is something I was already playing around with internally for a future version.
Reply With Quote
  #28  
Old 05-29-2010, 09:22 PM
carubmun carubmun is offline
 
Join Date: Jan 2007
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post

In the current form, no. But something similar (and some other stuff) is something I was already playing around with internally for a future version.
Good to know.
Im guessing there is no minor adjustments that can be made to this in order to make it appear within a particular page and not only on its own page.

Since you plan on expanding on it, may i give another suggestion...
I find that it would work very nicely if it could be harnessed in a way similar to a "recent activity" or "latest posts" type widget.
Except that this one appears in real time while the others are pretty much static.
What would be needed most for that is to be able to add in which forums to include.
The iSpy mod allows you to add in which forums to exclude, nice option... but a real pain in the ass when you have an incredibly large amount of forums and subforums.
And having it work as a widget would be nice too
Reply With Quote
  #29  
Old 05-29-2010, 11:28 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A widget block was already planned as part of the "some other stuff" statement.

As far as filtering forums, you can do it based on subscribed forums already.
Reply With Quote
  #30  
Old 05-30-2010, 01:58 PM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed, tried everything but just doesn't work. Keep getting following error:

Parse error: syntax error, unexpected '{', expecting ')' in /home/ghostrider/domains/ghostriders-thailand.com/public_html/forum/includes/class_core.php(4040) : eval()'d code on line 32

I'm using vBulletin 4.0.2 Patch Level 4 if that means anything.
Reply With Quote
  #31  
Old 05-30-2010, 06:25 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goran424 View Post
I installed, tried everything but just doesn't work. Keep getting following error:

Parse error: syntax error, unexpected '{', expecting ')' in /home/ghostrider/domains/ghostriders-thailand.com/public_html/forum/includes/class_core.php(4040) : eval()'d code on line 32

I'm using vBulletin 4.0.2 Patch Level 4 if that means anything.
I suspect it's related to this vBulletin bug that was fixed in 4.0.3 (vBulletin versions before 4.0.3 parse some JavaScript in templates incorrectly). To get around it for an old version of vB, you could probably change the function play_pause() in the SPY template to this:

Code:
[noparse]function play_pause() {
	var label = new Array('[/noparse]{vb:rawphrase click_to_continue}[noparse]', '[/noparse]{vb:rawphrase click_to_pause}[noparse]');
	play = Math.abs(1-play);
	document.getElementById("play_pause").innerHTML = label[play];
}[/noparse]
Basically adding annoying noparse tags all over the place to tell the parser how to actually parse it. The better solution would be to upgrade to vBulletin 4.0.3 since it can parse templates properly.

I didn't test that hack since I don't have an old version of vBulletin installed, but it should work (although I'm not sure if there are other areas of the template it may not be able to parse properly).
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 10:59 PM.


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.14847 seconds
  • Memory Usage 2,354KB
  • Queries Executed 28 (?)
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)bbcode_code
  • (7)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
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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