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 - Digital Point Spy (https://vborg.vbsupport.ru/showthread.php?t=243429)

digitalpoint 05-26-2010 10:00 PM

Digital Point Spy
 
1 Attachment(s)
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).

ProFifaLeagues 05-27-2010 09:53 PM

Tagged looks good,I will be trying this in the morning!
Top work

civil78 05-27-2010 10:19 PM

Nice work but what about the CPU load, ok probably it uses AJAX but if too many people use this page maybe the load will be increased.

digitalpoint 05-27-2010 10:23 PM

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.

anthony parsons 05-27-2010 10:40 PM

Outstanding Shawn... look forward to installing a little later.

leemartin 05-27-2010 10:45 PM

Thanks interesting mod

AURFSCAN 05-27-2010 11:16 PM

hi, how is this different to vbispy?

digitalpoint 05-27-2010 11:19 PM

1. It works with vBulletin 4.

2. vbispy was made a few months after mine and "borrowed" my code, so mine was actually the original. Beyond that, I don't know... I made my original version before vbispy existed, so I never installed or downloaded it to compare.

Brandon Sheley 05-28-2010 12:20 AM

Nice Release!

sulasno 05-28-2010 01:54 AM

tagged and thanks

can viewing be restricted to a certain group?

digitalpoint 05-28-2010 02:54 AM

There aren't currently group permissions, although it does automatically filter stuff that the user wouldn't have access to see (if they don't have access to a certain forum, they don't see new threads/posts within it).

SBoards 05-28-2010 03:01 AM

nice job... tagging for after the holiday

ChopSuey 05-28-2010 04:08 AM

Wow Shawn you actually released a modification! Here :D Looking forward to more if you have the time!!!
Thanks i'll install this tonight!

teenage.vn 05-28-2010 05:58 AM

I tried to install it but when tried to access the page, I got 500 error ...

Thanks for this great mod and am looking forward to hearing the feedback :( ...

---Updated---

Oh sorry, its a blank page ... not 500 error, please take a look

digitalpoint 05-28-2010 07:22 AM

What's the URL?

DragonBlade 05-28-2010 09:18 AM

Perhaps show last 10ish actions on a new load? Looks quite empty until the new stuff comes in :P

EDIT: Ah nevermind. It does have this feature :D

Poppet 05-28-2010 10:06 AM

Excellent, it works a treat :) Marked and nominated...

Boofo 05-28-2010 10:37 AM

Does this work with all browsers now? I use Opera 10.

ChopSuey 05-28-2010 12:20 PM

Pretty sure it works with all browsers :)

Boofo 05-28-2010 01:37 PM

I was going by what they said on the site but that post was from a while back.

Kolbi 05-28-2010 05:06 PM

nice...

civil78 05-28-2010 08:33 PM

Quote:

Originally Posted by digitalpoint (Post 2044324)
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 :).

Boofo 05-28-2010 08:42 PM

Quote:

Originally Posted by civil78 (Post 2044804)
Thanks for the informations, I will test it :).

Please let us know what you find out. ;)

teenage.vn 05-29-2010 05:44 AM

Quote:

Originally Posted by digitalpoint (Post 2044474)
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 ...

carubmun 05-29-2010 08:32 AM

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?

digitalpoint 05-29-2010 04:41 PM

Quote:

Originally Posted by teenage.vn (Post 2044947)
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 (Post 2044983)
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.

carubmun 05-29-2010 09:22 PM

Quote:

Originally Posted by digitalpoint (Post 2045160)

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 :D

digitalpoint 05-29-2010 11:28 PM

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.

goran424 05-30-2010 01:58 PM

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.

digitalpoint 05-30-2010 06:25 PM

Quote:

Originally Posted by goran424 (Post 2045524)
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).

FARES_SAUDI 05-30-2010 08:53 PM

Does not work with me
The question of where I can control the product did not find it in your options

digitalpoint 05-30-2010 10:59 PM

Quote:

Originally Posted by FARES_SAUDI (Post 2045711)
Does not work with me
The question of where I can control the product did not find it in your options

What is the URL for your forum?

And what exactly are you trying to "control"?

FARES_SAUDI 05-30-2010 11:44 PM

I've installed on a trial basis and this shows that
http://img72.imageshack.us/img72/268...01034209am.png
Quote:

And what exactly are you trying to "control"?
yes i mean how can I control the presentation and the exclusion of certain categories

digitalpoint 05-31-2010 12:00 AM

It looks like it would if you had no events to display. Has anything happened in your forum since you installed it?

There is not a global filtering system... the user can filter it based on their subscribed forums if they wish. As far as changing the "presentation", you can modify the template I suppose.

New Joe 05-31-2010 04:01 AM

It looks just the same as the 'iSpy' mod.
Is there any difference between that one and your Mod?

carubmun 05-31-2010 05:07 AM

Quote:

Originally Posted by New Joe (Post 2045841)
It looks just the same as the 'iSpy' mod.
Is there any difference between that one and your Mod?

read the first page of this thread

valendono 05-31-2010 10:53 AM

just remind who using this mod, check your javascript body.onload or onload init, do not double it or it will crashed. Causing It looks like you had no events to display or just blank.

cheers, nice mod btw :)

goyo 06-01-2010 07:11 AM

Looks pretty good...unfortunately it doesn't work for me...no idea why :erm:

http://sztar.com/spy.php

digitalpoint 06-01-2010 08:46 AM

Quote:

Originally Posted by goyo (Post 2046407)
Looks pretty good...unfortunately it doesn't work for me...no idea why :erm:

http://sztar.com/spy.php

Looks like it's not picking up the CSS for some reason. If your CSS is being stored as a file, you probably need to regenerate it so it triggers the thing that saves it to your server's file system.

teenage.vn 06-02-2010 05:24 AM

Quote:

Originally Posted by digitalpoint (Post 2045160)
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?


Yes I have the template "SPY", as well as the template "spy.css" ...

And Im using 4.0.2, does this Add-on support 4.0.2 ?

Thanks for the fast feedback from you ... Still looking forward for the fix ...


All times are GMT. The time now is 02:12 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.01617 seconds
  • Memory Usage 1,826KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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