Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBISpy - AJAX real-time feed of new posts/threads Details »
vBISpy - AJAX real-time feed of new posts/threads
Mod Version: 1.12, by MPDev (Member) MPDev is offline
Developer Last Online: Dec 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (75 votes - 4.73 average) Installs: 946
Released: 06 Sep 2006 Last Update: 28 Sep 2006 Downloads: 4361
Not Supported Additional Files  

After seeing the http://www.digg.com/spy application; I wondered if this could be done for vBulletin as well. I came across this webpage which had a "how to" on how they built a similiar application to do the same thing. Taking a page from their book (i.e. the code), I modified it for use with vBulletin.

During development, I also came across this post here on vBulletin.Org where the very subject had already been discussed.

So I put this together; a simple ZIP file with a single PHP script, three javascript files and 4 images.

Installation

. UNZIP the file into your forums directory
. That's it!

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.

In your browser, open the URL:

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

You can see examples of this at:

http://www.viperalley.com/forum/vaispy.php
http://www.extremefitness.com/forum/vaispy.php

Note: I claim no ownership of this code except for the file vaispy.php - the rest of the files were using 'freely distributable' sources. As such, you may use these files as you wish, but please do not remove the copyrights.

This modification is for vBulletin 3.6 only, if you are running vBulletin 3.5 you will need to see this thread.

JOIN THE vBIspy Network!
Once you have this mod installed, you can join the vBIspy network to have your threads appear on this site; the vBIspy Network is a great way for people to see what's going on in various vBulletin communities and for forum owners to promote their sites and generate new traffic.

Optional add-ons

Who's Online mod for this: http://www.vbulletin.org/forum/showthread.php?t=126209

vBAdvanced Module: http://www.vbulletin.org/forum/showthread.php?t=126421

UPDATES
1.0.4
Added buro9's code from here

1.0.5 - 9.9.06
Modified some JavaScript in va_spy.js to remove split strings

1.0.6 - 9.10.06
Added date cuffoff code from here and changed init() to spyinit() - changed vaispy.php and va_spy.js files.

1.0.7 - 9.12.06
va_spy.js: Added a forum url variable to allow for integration with portals or other products outside the forum directory
va_spy.js: Added xmldelay variable at top of script for easier configuration or repolling
Updated files: vaispy.php, vb_spy.js

1.0.8 - 9.13.06
vaispy.php - changed code for checking for forum permissions to include password protected forums, added javascript tag for script code

1.0.9 - 9.16.06
vaispy.php
va_spy.js
va_effects.js
- modified to allow for proper display in Opera browsers and moved more html into vaispy.php to allow for stylevars, trimmed va_effects.js to remove unused code (ForumDog's suggestions, except not using templates yet), changed way threads are parsed (removes html as well)

1.0.10 - 9.17.06
va_prototype.js - removed 20kb of unused code

1.1.11 - 9.25.2006
vaispy.php
va_spy.js
- added SirAdrian's mods for thread status icons and alternating row colors
- added code to prepopulate the first 10 rows with existing threads allowing for 5 new ones to be added in scrolling mode (versus scrolling starting from the first thread).
- added option to display subscribed threads only

1.1.12 - 9.26.2006
vaispy.php
- added code to add empty rows if initial pull has less than 20 rows.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Portal Software vBISpy module - live AJAX feed of new threads - for vBAdvanced CMPS MPDev vBulletin 3.6 Add-ons 240 30 Nov 2011 22:49
vBISpy - AJAX real-time feed of new posts/threads (for vB3.5) MPDev vBulletin 3.5 Add-ons 127 08 Apr 2008 19:16

  #841  
Old 18 Jan 2010, 23:30
3DUInc's Avatar
3DUInc 3DUInc is offline
 
Join Date: Jan 2010
Real name: Tamela
I would love this for vb4 as well
Reply With Quote
  #842  
Old 19 Jan 2010, 03:36
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Originally Posted by MPDev View Post
They are using vBISpy in an iframe.

http://www.city-data.com/forum/vaispy.php

I did something similiar on one of my sites; but without the iframe - all you need to do is modify the html to suit your page and then incorporate the javascript.
MPDev,
Can you post some guide on how to do that?

They have a feature that will auto freeze after some timeout and you will have to click to refresh. I guess that's done to reduce server load for idle users.

Would love to implement this in the iframe method as shown on that site.
Reply With Quote
  #843  
Old 19 Jan 2010, 15:33
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
I don't really have a guide since there are so many ways people have asked to do this. All you have to do is edit the html to suit your needs (depending on where you want it - for example, in an iframe would require just changing the list to a shorter list and getting rid of the header and footer (but not the headerinclude).
__________________
Reply With Quote
  #844  
Old 21 Jan 2010, 01:56
Frank Sinatra's Avatar
Frank Sinatra Frank Sinatra is offline
 
Join Date: Nov 2008
thanksss works perfect on 3.8.4
Reply With Quote
  #845  
Old 21 Jan 2010, 02:31
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Real name: Eric
MPDev has given me permission (via PM) to port this to vB4 - I will try to get it released by next week.
__________________
My modifications

Please do not contact me for support via PM or E-Mail unless I've asked you to do so. Otherwise, your message will be ignored/deleted.
Reply With Quote
  #846  
Old 21 Jan 2010, 02:57
dieKetzer dieKetzer is offline
 
Join Date: Mar 2002
Real name: Lauren
please integrate 'ignored users' into ispy4!
Originally Posted by SecondV View Post
MPDev has given me permission (via PM) to port this to vB4 - I will try to get it released by next week.
__________________
Firefox 3.0.16 - linux ---------------- lamp - mysql 5.0.81 / php 5.2.10

Last edited by dieKetzer; 21 Jan 2010 at 04:17.
Reply With Quote
  #847  
Old 21 Jan 2010, 18:10
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Real name: Eric
and... vBulletin4 http://www.vbulletin.org/forum/showthread.php?t=233759
__________________
My modifications

Please do not contact me for support via PM or E-Mail unless I've asked you to do so. Otherwise, your message will be ignored/deleted.
Reply With Quote
  #848  
Old 21 Jan 2010, 21:17
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Questions.

1. How to shorten the preview length?

2. Would all of vaispy.php be dumped into an Ultimate Side Column to make a collapsible sidebar?

Thanks!!!
Reply With Quote
  #849  
Old 17 May 2010, 19:06
Floris Floris is offline
 
Join Date: Jan 2002
Just did a fresh install on 3.8.5, and this plugin, and it simply doesn't load. The page loads, but it is not being ajaxy .. so to speak. It's just sitting htere, not updating, a manual refresh shows older threads too, kinda weird. :/
__________________
My community; http://wetalknation.net
Reply With Quote
  #850  
Old 19 May 2010, 12:43
Iguana Goddess's Avatar
Iguana Goddess Iguana Goddess is offline
 
Join Date: Sep 2009
Real name: Jennifer
This is great and was so easy to install thanks for the great hack!
__________________
www.rejecthaven.com
Reply With Quote
  #851  
Old 24 May 2010, 18:53
nerbert nerbert is offline
 
Join Date: May 2008
I used this on vB 3.7.3 but decided to simplify it and embed it as an iframe on SHOWTHREAD. I used a meta refresh in the head instead of ajax so all you need is one php file.

Features:
  • Lists 20 latest posts. Scrolls side to side.
  • 112 pixels tall.
  • Visited titles turn purple.
  • Hover for forum name, views and replies.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just paste it in as vaispy.php under forum.

To change refresh rate change this to the number of seconds you want:
<META HTTP-EQUIV="refresh" CONTENT="120;url=/forum/vaispy.php"></META>
To change the number of posts shown change these lines:
$limitq = ( isset($_REQUEST['do']) ? "20" : "0,20" );
and
<td class="tcat">

Latest Twenty Posts
</td>
To embed it as an iframe, paste this under $navbar in SHOWTHREAD template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I've left in some odds and ends that could probably be left out, specifically
/*$navbits =.....*/


/*eval('$footer =......*/
One last thing: One of our members was very suspicious when his browser was loading a file called vaispy!
Attached Images
File Type: jpg vaispy.jpg (92.7 KB, 44 views)

Last edited by nerbert; 27 May 2010 at 03:23. Reason: slight change to iframe html
Reply With Quote
  #852  
Old 24 May 2010, 22:02
grey_goose grey_goose is offline
 
Join Date: Jun 2009
I get an error on line 254
Reply With Quote
  #853  
Old 24 May 2010, 22:22
nerbert nerbert is offline
 
Join Date: May 2008
That's exactly as I have it on my forum and it works. What does the error text say and do you know which is line 254?

EDIT: Is the error in vaispy or showthread? If in showthread do you already have the original version of vaispy working? If so rename the original one "vaispy_original.php"

EDIT 2: I put this in notepad and found line 254:


header( 'Content-Type: text/xml' . ($stylevar['charset'] != '' ? '; charset=' . $stylevar['charset'] : '') );

Maybe a real coder can help.

Last edited by nerbert; 24 May 2010 at 23:40.
Reply With Quote
  #854  
Old 25 May 2010, 04:50
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Real name: Eric
Originally Posted by nerbert View Post
That's exactly as I have it on my forum and it works. What does the error text say and do you know which is line 254?

EDIT: Is the error in vaispy or showthread? If in showthread do you already have the original version of vaispy working? If so rename the original one "vaispy_original.php"

EDIT 2: I put this in notepad and found line 254:


header( 'Content-Type: text/xml' . ($stylevar['charset'] != '' ? '; charset=' . $stylevar['charset'] : '') );

Maybe a real coder can help.
There are no errors in the file.
__________________
My modifications

Please do not contact me for support via PM or E-Mail unless I've asked you to do so. Otherwise, your message will be ignored/deleted.
Reply With Quote
  #855  
Old 27 May 2010, 03:36
nerbert nerbert is offline
 
Join Date: May 2008
I edited my version of vaispy to fix some things that one of my forum members pointed out. If you have already copied the file make the following edits:

find:
<div class = "tborder" style="overflow:auto; border-top-width:0px;" width="100%;">
and remove the ";"

find:
<body style="margin:0px;" onload="spyinit();">
and remove "onload="spyinit();""

The latter may cause problems in older versions of IE
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 17:09.

Layout Options | Width: Wide Color: