Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBISpy module - live AJAX feed of new threads - for vBAdvanced CMPS Details »
vBISpy module - live AJAX feed of new threads - for vBAdvanced CMPS
Mod Version: 1.01, 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.0 Rating: (3 votes - 5.00 average) Installs: 108
Released: 12 Sep 2006 Last Update: 28 Sep 2006 Downloads: 763
Not Supported Template Edits  

This is my first module for vBAdvanced, but its a simple one, so I don't expect any installation problems.

You can see an example of this working on:

ViperAlley.Com

You must already have a working copy of the vBIspy client v1.0.7 or better in place. (vB 3.5 users need v1.06 or better)

INSTALLATION

Add the vbispyblock.module to your vBAdvance portal - keep in mind the size of the block when you choose it's placement - if you use three columns, then really only the center column will work.

To install you should have a working copy of the VBIspy client already working on your system. Once you have one of the clients working adding vBIspy blocks to other pages becomes easier.

################################################################################ ##
################################################################################ ##

STEP 1

Because vBAdvanced CMPM usually resides outside of the forum directory, you will need to make one change to the clientscript/va_spy.js script that comes with vBIspy.

In va_spy.js, find:


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

and change this to read:


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

using the name of the directory your forums are in in place of "forum". This is important as otherwise the links from the vBIspy block will not resolve to the forum directory.

################################################################################ ##
################################################################################ ##

STEP 2

You will need to modify the 'adv_portal' template to add a few lines:

################################################################################ ##

Find:


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

Add after:


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

################################################################################ ##

Find:


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

Add after:


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

################################################################################ ##

You are done. Activate the module and you should start seeing a live feed of threads on your portal page.

If you do not see an updating list of threads:

1) Double check that your vBIspy.php script is working properly!
2) Make sure you followed the above instructions.
3) If all else fails, open the JavaScript Console in Firefox and see what errors you might be getting.

1.0.1 - 9.28.06
Modified template for module to support 1.0.12 release of vBIspy (you can modify your template manually from this post; but you also need to note the changes to the spymax and addition of the highestid variable to be changed in your adv_portal template).

Download Now

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

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
Add-On Releases vBISpy - AJAX real-time feed of new posts/threads MPDev vBulletin 3.6 Add-ons 914 17 Jun 2015 12:45
vBISpy - AJAX real-time feed of new posts/threads (for vB3.5) MPDev vBulletin 3.5 Add-ons 127 08 Apr 2008 20:16

  #241  
Old 30 Nov 2011, 23:49
ib-jason ib-jason is offline
 
Join Date: Nov 2011
Fixed a problem! The page had to be manually refreshed until I figured out that this plugin utilizes the Prototype library and my vBulletin template happened to utilize the jQuery library too. These javascript libraries collided, which caused the updates to stop displaying live. I know this is the case because I was getting a javascript error saying the following:

"element.dispatchEvent is not a function"

Further research revealed that this error occurs because Prototype is being called but jQuery is interfering. Maybe because both libraries utilize the $ character.

In my case jQuery was being called from the footer, so I created a custom vBulletin template called footerNoJQuery from which jQuery was removed. In the PHP file, I swapped out the existing PHP call to $footer, replacing it with $footerNoJQuery, and this fixed the problem since jQuery was no longer on the page.

Last edited by ib-jason; 30 Nov 2011 at 23:55.
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 04:19.

Layout Options | Width: Wide Color: