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

Reply
 
Thread Tools
vBISpy module - live AJAX feed of new threads - for vBAdvanced CMPS Details »»
vBISpy module - live AJAX feed of new threads - for vBAdvanced CMPS
Version: 1.01, by MPDev MPDev is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Category: Portal Software - Version: 3.6.0 Rating:
Released: 09-11-2006 Last Update: 09-27-2006 Installs: 110
Template Edits
 
No support by the author.

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:

Code:
var vburl = '';
and change this to read:

Code:
var vburl = '/forum/';
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:

Code:
$headinclude
Add after:

Code:
<script language="javascript" src="{$vbulletin->options['bburl']}/clientscript/va_prototype.js"></script>
<script language="javascript" src="{$vbulletin->options['bburl']}/clientscript/va_effects.js"></script>
<script language="javascript" src="{$vbulletin->options['bburl']}/clientscript/va_spy.js"></script>
<script language="javascript">
    spymax = 10;
    highestid = 0;
</script>
################################################## ################################

Find:

Code:
$footer
Add after:

Code:
<script language="javascript">
    spyinit();
</script>
################################################## ################################

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).

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 05-23-2007, 04:55 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try to take a look; I wasn't aware there was an update.
Reply With Quote
  #183  
Old 05-23-2007, 09:36 PM
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting this error when I try to upload the module:

Quote:
Database error in vBulletin 3.6.7:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO forumadv_modules
(`0`, `active`, `userperms`)
VALUES
('', '1', '4,6,7,2,9,5,1,3');

MySQL Error : Unknown column '0' in 'field list'
Error Number : 1054
Date : Wednesday, May 23rd 2007 @ 10:33:14 PM
Script : http://www.***********.net/admincp/v...o=uploadmodule
Referrer : http://www..***********.net/admincp/...hp?do=download
IP Address : **.***.**.***
Username : Red Blaze
Classname : vb_database
This is what I'm gettin. Stud did point out that this would need to be updated. I would love this. I'm using vBadvanced CMPS v3.0 RC1.

EDIT: Welp, I got it to work manually. Opened the module file in a txt file and just copy pasted the template code. Good stuff. Thanks. ^_^
Reply With Quote
  #184  
Old 05-24-2007, 01:43 PM
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Red Blaze View Post
I'm getting this error when I try to upload the module:



This is what I'm gettin. Stud did point out that this would need to be updated. I would love this. I'm using vBadvanced CMPS v3.0 RC1.

EDIT: Welp, I got it to work manually. Opened the module file in a txt file and just copy pasted the template code. Good stuff. Thanks. ^_^
Same by me
Quote:
Database error in vBulletin 3.6.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO vbadv_modules
(`0`, `active`, `userperms`)
VALUES
('', '1', '4,6,7,5,1,3,2,13,15,18,17,14,16,19');

MySQL Error : Unknown column '0' in 'field list'
Error Number : 1054
Reply With Quote
  #185  
Old 05-24-2007, 02:23 PM
stud stud is offline
 
Join Date: May 2004
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MPDev View Post
I will try to take a look; I wasn't aware there was an update.
Thanks MPDev... sorry that we all seem so impatient.. as I've indicated before, this could easily be one of the single most popular and important mods for a website running CMPS - as it's FAR superior to the "Recent Threads" Module.

If you are going to go into development to update the functionality of this module, may I re-list a few suggestions people here have made that I don't think ever made it into this version?

a. The ability update without duplication? Currently, if someone makes two posts in a single thread, it will list that thread topic twice rather then just represent the most recent thread. Similar to how the "Recent Threads" module bolds and brings to the top of the list, if the vBIspy module had a way of preventing duplicates, it would be AMAZING.

b. On that same notion, to bold and unbold topics as their status changes from Unread to Read.

c. the ability to minimize it using the #top feature that many other modules use. (this may have been added since the request, it hasen't worked for me since I upgraded to 3.6 so i'm not sure)



Thanks again for your attention on this MPDev.
Reply With Quote
  #186  
Old 05-27-2007, 03:55 PM
BozzaJos BozzaJos is offline
 
Join Date: Feb 2006
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the new added module file did work and I've got it on my forum now. One thing tho, is it possible to add a scrollbar to the box so that it only shows the first 5 or so and to see the other 15 you'll have to scroll. I would like to have a scrollbar coz now it makes my forum twice the size as that it is at the moment.

Can you please help me with this? Many thanks in advance.
Reply With Quote
  #187  
Old 05-29-2007, 12:36 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, there is not a scrollbar feature available with how this updates HTML tables (not that I know of anyways).
Reply With Quote
  #188  
Old 05-30-2007, 09:59 AM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this not work with vbAdvanced 3.0?
Reply With Quote
  #189  
Old 06-09-2007, 02:27 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MPDev View Post
Sorry guys, I've tried to be as helpful as I can not knowing vBadvanced that well. I had it working on my site and exported the module, but that was the extent of my ability to make it work. The code itself should work just fine, I just dont know how to wrap it up as a module for it to be imported.

I did another export of the file from my current setup which you can try; it works on my current setup with 3.6.4 and vBadvanced. You may need to change the path in the file if you don't use "/forum/vaispy.php"; otherwise the instructions in the original post apply.
I have the module [quoted in this post] working with an exception - I had to add
Code:
<script language="javascript" src="clientscript/va_prototype.js"></script>
<script language="javascript" src="clientscript/va_effects.js"></script>
<script language="javascript" src="clientscript/va_spy.js"></script>
<script language="javascript">
    spymax = 10;
    highestid = 0;
</script>
to the top of the template in order for anything to display. Once done, it worked as described

Secondly, there is a missing tag in the first half of the template
Code:
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<tr><td colspan="4" class="tcat smallfont" align="left"  style="height:25px;"><strong>&raquo; <a href="/forum/vaispy.php">Live Forum Updates</a></strong></td></tr>
<tr><td width="20" class="tcat" nowrap="nowrap" style="height:25px;">&nbsp;</td>
<td class="tcat" width="190" nowrap="nowrap" style="height:20px;">By</td>
<td class="tcat" width="80%" style="height:20px;">Thread/Post</td>
<td class="tcat" width="200" nowrap="nowrap" style="height:20px;">Forum
</tr>
...
after Forum there is no closing </td> tag. I don't use Opera, so I don't know if it actually hurts anything or not, but I thought I would add that.
Reply With Quote
  #190  
Old 06-10-2007, 07:25 PM
stud stud is offline
 
Join Date: May 2004
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interesting... thanks for the update David... i'm going to give your suggestions a go tomorrow when i get a minute
Reply With Quote
  #191  
Old 06-10-2007, 10:00 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't the head code part of Step 2?
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 01:33 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.05093 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete