View Full Version : Add-On Releases - vBISpy - AJAX real-time feed of new posts/threads
Julrou
10-18-2008, 09:26 PM
I've just read it and...
it totally works !!!
You're the man ! :up::up::up:
One more question : at this time, it only shows the last post for each thread. Is there a way to show the really last 20 posts, even if some are posts of a same thread ?:)
It does'nt work for me anymore...
:(:(
shahryar_neo
10-24-2008, 06:50 AM
how can i show only some forums ? for example just show forum id 1 , 2 , 3 ?
Thanks
Shahryar
Sarthek
10-27-2008, 08:07 AM
Update of this mod would be great :)
rajrana007
11-06-2008, 01:25 PM
how can we modify this mod to something like this. it would be great if someone could help with this http://www.exbii.com/livenewreply.php?t=344162
i am also willing to pay for the code :( not much tho but i can shell out anywhere between $10-$15
Peejay
11-07-2008, 06:27 PM
Spot on - Installed :D
wmlvb
11-08-2008, 04:23 PM
does this mod take into account user permission?
FoReX
11-11-2008, 04:19 AM
its not working on vb 3.7.4 version. How can i work?
Cagonni
12-09-2008, 05:24 PM
usergroup restriction for more usergroups
File: vaispy.php
Find:
$datecut = "AND thread.lastpost >= " . (TIMENOW - ($daysprune * 86400));
$prefetched = null;
Add Below:
if(is_member_of($vbulletin->userinfo,1, 2, 3, 8))
{
print_no_permission();
}
emath
12-09-2008, 07:57 PM
It will work for 3.7 either ?
Cagonni
12-10-2008, 03:45 AM
It will work for 3.7 either ?
works.
zgrkaralar
12-10-2008, 04:06 AM
It will work for 3.8 either ?
sectomy
12-10-2008, 03:52 PM
ive seen that some forums got for example 10 topics, but only 2 are "sliding in"...how can i change that ?
the number of postings that are static and the new ones are updated live ? so for the first visit ?
you know whatta mean ?
Lustikus
12-11-2008, 07:31 AM
in vaispy.php, find
$limitq = ( isset($_REQUEST['do']) ? "20" : "5,20" );
and change 5 to whatever you want to be slided
movslow
12-15-2008, 06:47 PM
Just add a link to the page in your navbar template.
How??
:confused:
ewelin
12-22-2008, 12:44 AM
Great MOD, works well on 3.7.4. One thing i noticed was that the hyperlinks produced by the js don't have the target="_blank" on them where as the php produced ones do. Minor fix for your next release.
Harmachis
12-23-2008, 06:56 AM
this mod track whole forum
but is there any way to make it track just a single thread / or few specific thread only ???
habibie_u2
12-30-2008, 10:22 AM
thanks.... installed :D
compuminus
01-14-2009, 05:51 PM
I've noticed that in the current version if there are multiple new posts in a given thread it only shows the latest post in that thread -- ignoring all others. Does anyone know if there's a way to prevent it from dropping all of these new posts using the
$getthreads = $db->query_read(
portion of the vaispy.php code? Or any other portion of the code, for that matter?
Thanks
PS: otherwise it works fine on vB 3.8.0 gold
ewelin
01-16-2009, 12:06 PM
I've noticed that in the current version if there are multiple new posts in a given thread it only shows the latest post in that thread -- ignoring all others. Does anyone know if there's a way to prevent it from dropping all of these new posts using the
$getthreads = $db->query_read(
portion of the vaispy.php code? Or any other portion of the code, for that matter?
Thanks
PS: otherwise it works fine on vB 3.8.0 goldI noticed this exact same thing this morning. Where you able to figure out a solution?
compuminus
01-16-2009, 02:40 PM
No solution yet. If anyone can help this would be greatly appreciated. It is weird because if you leave the screen open, new posts within a given thread are should individually (as I would like). However, on first load of the page, or whenever you refresh the page, only the latest post within a given thread is shown...
ewelin
01-16-2009, 02:58 PM
I just re-read the entire thread and there were a couple other posts of users who noticed this as well, but no solution.
rajrana007
01-19-2009, 06:28 AM
this mod track whole forum
but is there any way to make it track just a single thread / or few specific thread only ???
thats wht even i asked :( but no body helped
Alfa1
01-19-2009, 01:40 PM
If anyone has this working on vb 3.8, can you please share a link?
itsbobtista
01-26-2009, 07:54 PM
http://www.atxscene.com/forums/vaispy.php
Broken navbar images. If you right click on the broken images, it points to this directory, looking for images: http://www.atxscene.com/forums/%7BIF%7D/
I created that directory, put the images inside, does not work.
Cannot find where in the code it gets that directory (to change it). Any help?
bigtime
01-26-2009, 08:12 PM
How can I use this as an include on a non-VB page? I get this error when including it:
Unable to add cookies, header already sent.
Thanks,
Tim
itsbobtista
01-26-2009, 08:48 PM
I have removed vBISpy until I can figure out why the images were broken.
Looks like the source code for the webpage was looking for {IF}/usercp.png.
Not sure where to define {IF}.
Firestar.chkn
02-11-2009, 06:17 PM
Works 100% in 3.8.1.
I'm not seeing images on the left. Not sure if there's supposed to be images, but it doesn't look bad without them, so I'm keeping it.
Here's a link (http://forums.prophecy.co.za/vaispy.php) if anyone wants to check it out. I'll work on the images tomorrow, and see if I can get them working.
EDIT:
I see that the only images is the play and pause images. those are showing up for me, so there's no problems on 3.8.1. I did a stock standard upload, and it worked fine. Impressive addon.
Alfa1
02-12-2009, 07:03 AM
Many thanks for the info, Firestar!
Does anyone know if it is possible to use this modification to create an AJAX real-time forumdisplay?
Mr. Baws
02-12-2009, 02:58 PM
how can we modify this mod to something like this. it would be great if someone could help with this http://www.exbii.com/livenewreply.php?t=344162
i am also willing to pay for the code :( not much tho but i can shell out anywhere between $10-$15
same question here
Hornstar
02-27-2009, 07:17 AM
this is great! but I have a slight problem:
The built in default vb notices do not show except for the heading.
Harmachis
03-03-2009, 08:31 AM
generally it shows 20 new posts/threads (or little more)......but i want it to show only 5 new post/threads
how can i do it ?
Deyth
03-06-2009, 01:17 AM
Parse error: syntax error, unexpected T_STRING in /home/unmodera/public_html/forums/vaispy.php(337) : eval()'d code on line 1
I didn't modify your product. The headerinclude template is stock 3.8.0. I saw someone else in this thread had the same problem but I didn't see a solution for it. You can see it live here. (http://unmoderated.info/forums/vaispy.php)
Phrost
03-09-2009, 07:08 PM
Yes it is possible. See it here https://vborg.vbsupport.ru/showthread.php?p=1316415#post1316415
if ($vbulletin->userinfo[usergroupid] == 1,2,3,4,8)
{
print_no_permission();
}
Numbers are the usergroups ID of non-mods or non-admins groups.
Is there a way to give permission by usergroup instead of deny it? Something like?
if ($vbulletin->userinfo[usergroupid] == 1,2,3,4,8)
else{
print_no_permission();
}
For example?
Crrrazzzy
03-29-2009, 09:48 PM
Unable to get this plugin to work with vB 3.8.1.
http://www.totalgamingnetwork.com/main/vaispy.php
If you manually hit refresh, it will update and show the latest posts. Just unable to get it to update automatically like it's supposed to. We had this working once on our site, but the recent couple of versions for vB broke it.
Any ideas?
Sushubh
04-02-2009, 01:52 PM
it seems to clash with the vbseo live stat plugin.
glennybee
04-13-2009, 09:17 PM
it seems to clash with the vbseo live stat plugin.
Ah...so it does...how unfortunate!
nininails
04-28-2009, 08:22 PM
please help me )))
I am a french beginner !
I have put all .js in the "clientscript" files in my "fna" file on my cyberduck
I have put all .gif in the " misc" file in my "images" files in my "fna" file on my cyberduck
I have put the .php in the "fna" files on my cyberduck
And I have 404 not found (((((
http://www.nailartandco.fr/fna/vaispy.php
I really begin my licence is 3.8.2
Please please help ))))
Best regards
Eagle Eyes
04-29-2009, 01:38 AM
it seems to clash with the vbseo live stat plugin.
What is live stat plugin?
Eagle Eyes
04-29-2009, 01:39 AM
Is this working for anyone on 3.8.2?
..
nininails
04-30-2009, 05:13 PM
Hy
It's ok now ))
thank's
ctimes
05-01-2009, 04:52 AM
I would also love to see this ported to vba, I am currently using MGC chatbox to show real time updates of threads but this would look much better.
Mr.KaptaN
05-01-2009, 08:48 PM
help me!
It's not working vb 3.8.2. I don't see new posts and threads.
Do you have new version for vb 3.8.2?
Carnage
05-04-2009, 10:09 AM
works fine for me on 3.8.2
Wonksta
05-10-2009, 03:39 AM
Anyone know how to add Prefixes to titles in vaispy I am trying to make the prefix appear right next to the Title. Here is how I have it across the forum:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>> $thread[prefix_rich] $thread[threadtitle]</a>
IN BOLD
Can't figure out how to make the same in vaispy!
New Joe
06-03-2009, 12:27 PM
Installed.
Calystos
06-05-2009, 09:35 PM
I must be doing something wrong, or another addon I've got is causing it not to work. I've read that certain addons such as vbseo live stat cause it not to work. But I'm not using that, so not sure whats stopping it from working for me. And yeah I'm also on 3.8.2. And my forums open (mostly).
Any ideas?
New Joe
07-13-2009, 09:07 AM
Problem sorted.
my_aly
07-16-2009, 03:47 PM
Thank you
multiplex
07-16-2009, 06:40 PM
great mod but are there any instructions on how to add a link in my navbar to it?
Alfa1
07-18-2009, 01:15 AM
Just edit your navbar and add the url
http://www.yourforum.com/forum/vaispy.php
(change yourforum.com to the real url)
Take a look at your navbar template. I would put it under 'Quick links' If you do nto know how to edit your navbar, then read up on this. There are plenty of navbar template modifications here.
nhlchuck68
07-20-2009, 01:37 AM
I must be doing something wrong, or another addon I've got is causing it not to work. I've read that certain addons such as vbseo live stat cause it not to work. But I'm not using that, so not sure whats stopping it from working for me. And yeah I'm also on 3.8.2. And my forums open (mostly).
Any ideas?
Any luck with yours? Mine was working for months and just stopped with 3.8.2 as well.
multiplex
07-24-2009, 01:06 AM
this works great on 3.8.3
i also have usergroups restrictions working
there are many suggestions in this thread to make that work but this is the only one that worked for me
find:
$datecut = "AND thread.lastpost >= " . (TIMENOW - ($daysprune * 86400));
$prefetched = null;
add below it:
if(is_member_of($vbulletin->userinfo,1, 2, 3, 8))
{
print_no_permission();
}
brandon515
07-27-2009, 11:14 PM
I am running 3.8.3 and it is updating, but only when you manually refresh the page. The ajax portion doesn't seem to work anymore since I upgraded to 3.8.3....any ideas?
Thanks,
Brandon
Electronic Punk
07-31-2009, 12:08 AM
Also seem to be having issues with it since I moved my forums from up a level ;s
Wonksta
08-20-2009, 01:35 AM
Can anyoen explain why so many guests are trying to view my vbispy.php???
https://vborg.vbsupport.ru/external/2009/08/47.jpg
jonty
08-20-2009, 07:31 PM
It would be really cool if it could scan social groups (permission based, naturally) as well:cool:
realdx
09-30-2009, 11:28 PM
seems working gr8 on my 3.8.4! Thanks for the work!!
trotskid
10-02-2009, 12:06 AM
I have seen this page (http://forums.digitalpoint.com/spy.php) from Digital Point with a similar vBSpy and I wondering if it's the same or another one.
This one looks better.. :rolleyes:
kmike
10-03-2009, 05:04 AM
Digital Point's mod was the first. Arguably, this mod is a rip off from Digitalpoint's Spy, or at the very least inspired by it:
http://forums.digitalpoint.com/showthread.php?p=1384601#post1384601
The only thing that is unique to this mod is the server-side script, since obviously it couldn't be copied from Digitalpoint.
trotskid
10-03-2009, 01:41 PM
Thank you for the info kmike :up:
blackberry
10-18-2009, 06:28 PM
I am running 3.8.3 and it is updating, but only when you manually refresh the page. The ajax portion doesn't seem to work anymore since I upgraded to 3.8.3....any ideas?
Thanks,
Brandon
yep same problem with me :(
any update for 3.8 plz?
MPDev
11-05-2009, 11:40 PM
Digital Point's mod was the first. Arguably, this mod is a rip off from Digitalpoint's Spy, or at the very least inspired by it:
http://forums.digitalpoint.com/showthread.php?p=1384601#post1384601
The only thing that is unique to this mod is the server-side script, since obviously it couldn't be copied from Digitalpoint.
The mod was inspired by DIGG, not DP. Although we both ended up using the same client-side open source. Only DP removed the required copyrights and attempted to claim credit for work he didn't do and refused to put the credits back in place. I left them in tact and claimed no credit for that work; feel free to read the exchange - https://vborg.vbsupport.ru/showthread.php?t=125947&page=8
Neither of these mods were particularly difficult once the hard part was done by someone else.
MPDev
11-05-2009, 11:41 PM
yep same problem with me :(
any update for 3.8 plz?
I'm not aware of any issues with 3.8 and have many sites running it; I am not sure where to point to you resolve the conflict.
Tyran1
11-07-2009, 04:30 PM
What is with Group Posts?
intruder
11-08-2009, 03:13 PM
<a href="https://tinyurl.com/vaispy" target="_blank">http://tinyurl.com/vaispy</a> How can I remove the banner from ispy?
I only have the banner added to the navbar template and vaipsy is the only script that shows the banner twice.
Thanks
Quantnet
11-12-2009, 11:46 PM
Great mod. I'm thinking of replacing Cybtec - Latest Reply Ajax mod with this one.
Can anyone show me how to put this box on Forum Home, under Navbar like what they have here
http://www.city-data.com/forum/
Thanks
m_gamini
12-02-2009, 07:17 AM
HI Dear Developer and Other Friends,
This Is Very Nice Mod, but i have some problem.
it's work fine on Firefox but when i use IE8 or previous it doesn't work. check this!
http://forum.forex.ir/vaispy.php (http://forum.forex.ir/vaispy.php)
it is fix all the time!
could you please help me to fix this?
thank you!
General Ray
12-17-2009, 09:43 PM
Great mod. I'm thinking of replacing Cybtec - Latest Reply Ajax mod with this one.
Can anyone show me how to put this box on Forum Home, under Navbar like what they have here
http://www.city-data.com/forum/
ThanksSimple. In the common templates, display the file in an iframe.
Great hack, by the way.
ManagerJosh
12-18-2009, 11:18 PM
Any plans to upgrade for vB4? I'd love to add this back to my community :)
Quantnet
12-19-2009, 12:29 PM
Simple. In the common templates, display the file in an iframe.
Great hack, by the way.
Thanks, is that how city-data does it?
I think they do a bit more than that as it will automatically pause after some idle time.
Sushubh
12-22-2009, 02:35 AM
alrighty. this is one mod i seriously want for vb4. please help!
I've attached an image of what I've been able to accomplish so far... as you can see, style needs a lot of work. If I can get this working right, I'll send my mods to the author.
Sushubh
12-28-2009, 07:15 AM
i think we can use this page even without the regular vb styling. just a page that can show the latest post data in visually usable format. :)
cannot wait to use it with vb4. i am tired of pressing what's new to get access to the latest posts. :D
Alien
01-09-2010, 12:02 AM
This is one of the features my members miss the most. I hope it's something that can be worked out for vB 4. I'm using it on vB 3.8 on about 5 forums and we love it!
Sushubh
01-09-2010, 03:47 AM
the developer seems to be missing from action... i am still waiting for this plugin to work with vb4. :)
I've attached an image of what I've been able to accomplish so far... as you can see, style needs a lot of work. If I can get this working right, I'll send my mods to the author.
Hi,
please share this
Sushubh
01-10-2010, 05:26 AM
yeap. as long as it works... interface does not really matter much to me for now :)
Dr.LoVe
01-13-2010, 08:32 PM
Is it possible to install it on 3.8.3 ??
Are there any updates for 3.8 ??
Sushubh
01-13-2010, 09:03 PM
i ran this addon on all the recent versions of 3.8.x and it worked great for me. but it stopped working the day i updated to 4.x.x...
dieKetzer
01-16-2010, 12:20 AM
one of the IB boards is running an ispy on v4
http://www.bikeforums.net/vaispy.php
i wish theyd share
Sushubh
01-16-2010, 12:23 AM
oh boy that looks perfect!
Quantnet
01-16-2010, 12:44 AM
you guys should see this
http://www.city-data.com/forum/
look at the bottom
Sushubh
01-16-2010, 12:51 AM
that is sweet!
MagicThemeParks
01-17-2010, 10:17 PM
Can anyone show me how to put this box on Forum Home, under Navbar like what they have here
http://www.city-data.com/forum/
Thanks
Wow, that looks beautifully done. :up:
Simple. In the common templates, display the file in an iframe.
Anyone have an example of how to get it coded into the template?
MPDev
01-18-2010, 06:56 PM
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.
Sushubh
01-18-2010, 07:20 PM
they are still running vb 3.7.6 i see...
but the other example mentioned here was running vb4...
that is the things. someone has modified vbispy to run on vb4 but its not available here :(
MPDev
01-18-2010, 07:29 PM
There's only a couple queries in the main pull; I assume they just modified the queries. Not sure how much vB4 changes the db structure, but I am not running it so cant tell you.
Sushubh
01-18-2010, 07:32 PM
still hoping some dev around here would fix it for vb4. :) a lot of guys are waiting.
bigtime
01-18-2010, 08:11 PM
I too would love to see this for V4
3DUInc
01-18-2010, 10:30 PM
I would love this for vb4 as well :)
Quantnet
01-19-2010, 02:36 AM
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.
MPDev
01-19-2010, 02:33 PM
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).
Frank Sinatra
01-21-2010, 12:56 AM
thanksss works perfect on 3.8.4
MPDev has given me permission (via PM) to port this to vB4 - I will try to get it released by next week.
dieKetzer
01-21-2010, 01:57 AM
please integrate 'ignored users' into ispy4!
:up:MPDev has given me permission (via PM) to port this to vB4 - I will try to get it released by next week.
and... vBulletin4 https://vborg.vbsupport.ru/showthread.php?t=233759
grey_goose
01-21-2010, 08:17 PM
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!!!
Floris
05-17-2010, 06:06 PM
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. :/
Iguana Goddess
05-19-2010, 11:43 AM
This is great and was so easy to install thanks for the great hack!
nerbert
05-24-2010, 05:53 PM
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.
<?php
//################################################## ##############################//
// MOD NAME: VBISpy #//
//################################################## ##############################//
// DESCRIPTION: This modification for vBulletin adds a "live" scrolling #//
// update of new posts to the forum #//
//################################################## ##############################//
// BY: MPDev #//
// DATE: 9.26.06 #//
// VERSION: 1.0.12 #//
//################################################## ##############################//
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'vaispy');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array();
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ######################### CONFIG VARS ############################
// The number of days to scan the table for .. (86400 represents the number of seconds in 24 hours)
$daysprune = 1;
// Do not list these forums even if they have permissions (test categories, etc)
$blockforums = "";
// ######################### CONFIG VARS ############################
$forumperms = array();
$lastpostid = (int)$_REQUEST['last'];
$subscribe = (int)$_REQUEST['subscribe'];
foreach($vbulletin->forumcache AS $forum) {
$forumid = $forum['forumid'];
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"];
if (!isset($vbulletin->forumcache["$forumid"]) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) OR !verify_forum_password($forumid, $vbulletin->forumcache["$forumid"]['password'], false))
{
$blockforums .= ','.$forum['forumid'];
}
}
unset($forum);
$datecut = "AND thread.lastpost >= " . (TIMENOW - ($daysprune * 86400));
$prefetched = null;
################################################## ##########################
// Get Threads I've Posted In
require_once(DIR . '/includes/functions_forumdisplay.php');
$result = $db->query_read("
SELECT threadid
FROM " . TABLE_PREFIX . "thread as thread
WHERE thread.forumid NOT IN (0$blockforums) and
thread.visible = 1 and
thread.open <> 10 and
thread.lastpostid > $lastpostid
$datecut
");
$idsArray = array();
while ($id = $db->fetch_array($result))
{
$idsArray[] = $id['threadid'];
}
$dotthreads = fetch_dot_threads_array(implode(',', $idsArray));
################################################## ##########################
// Get Threads
// Do not set to more than 20 unless you know how to modify the html at the bottom of the page (and at line 291)
$limitq = ( isset($_REQUEST['do']) ? "20" : "0,20" );
$getthreads = $db->query_read("
SELECT thread.forumid,
thread.firstpostid,
thread.lastpost,
thread.lastposter,
thread.lastpostid,
thread.replycount,
thread.threadid,
thread.title,
thread.open,
thread.views,
post.pagetext AS preview,
post.userid AS lastpuserid
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.lastpostid)
WHERE open <> 10
$datecut
AND thread.forumid NOT IN (0$blockforums)
AND thread.visible = '1'
AND thread.lastpostid > $lastpostid
AND post.visible = 1
AND deletionlog.primaryid IS NULL
ORDER BY thread.lastpost DESC LIMIT $limitq
");
$row = $highestid = 1;
$rowcolor = "alt2";
while($thread = $db->fetch_array($getthreads)) {
$thread['title'] = htmlspecialchars_uni(fetch_censored_text(fetch_tri mmed_title(unhtmlspecialchars($thread['title']), 85)));
$thread['date'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], 1);
$thread['time'] = vbdate($vbulletin->options['timeformat'], $thread['lastpost']);
/* Get rid of html and bbcode first
$thread['preview'] = strip_tags(strip_bbcode($thread['preview'], true, true));
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title($thread['preview'], 200));
$thread['preview'] = fetch_censored_text(fetch_word_wrapped_string($thr ead['preview'], 20));*/
$thread['replycount'] = vb_number_format($thread['replycount']);
$thread['views'] = vb_number_format($thread['views']);
$tforumid = $thread['forumid'];
$thread['forum'] = htmlspecialchars_uni($vbulletin->forumcache["$tforumid"]['title']);
// Statusicon
// show dot folder?
if ($vbulletin->userinfo['userid'] AND $vbulletin->options['showdots'] AND $dotthreads["$thread[threadid]"])
{
$thread['statusicon'] .= '_dot';
$thread['dot_count'] = $dotthreads["$thread[threadid]"]['count'];
$thread['dot_lastpost'] = $dotthreads["$thread[threadid]"]['lastpost'];
}
// show hot folder?
if ($vbulletin->options['usehotthreads'] AND (($thread['replycount'] >= $vbulletin->options['hotnumberposts'] AND $vbulletin->options['hotnumberposts'] > 0) OR ($thread['views'] >= $vbulletin->options['hotnumberviews'] AND $vbulletin->options['hotnumberviews'] > 0)))
{
$thread['statusicon'] .= '_hot';
}
// show locked folder?
if (!$thread['open'])
{
$thread['statusicon'] .= '_lock';
}
$thread['statusicon'] = $stylevar['imgdir_statusicon'] . '/thread' . $thread['statusicon'] . '.gif';
if ( $_REQUEST['do'] == "xml" )
{
$output .= <<<VAPRINT
<event>
<id>{$thread['lastpostid']}</id>
<what>$etype</what>
<when>{$thread['date']} {$thread['time']}</when>
<title>{$thread['title']}</title>
<preview>{$thread['preview']}</preview>
<poster>{$thread['lastposter']}</poster>
<threadid>{$thread['threadid']}</threadid>
<postid>{$thread['lastpostid']}</postid>
<lastpost>{$thread['lastpost']}</lastpost>
<userid>{$thread['lastpuserid']}</userid>
<forumid>{$thread['forumid']}</forumid>
<forumname>{$thread['forum']}</forumname>
<views>{$thread['views']}</views>
<replies>{$thread['replycount']}</replies>
<statusicon>{$thread['statusicon']}</statusicon>
</event>
VAPRINT;
}
else
{
/*$rowcolor = ( $rowcolor == "alt1" ? "alt2" : "alt1" );*/
$where = $clip = $poster_clip = $poster = null;
if ( stristr($etype, "thread") )
{
$post_url = "showthread.php?t={$thread['threadid']}";
}
else
{
$post_url = "showthread.php?p={$thread['lastpostid']}#post{$thread['lastpostid']}";
}
if( !$thread['title'] )
{
$clip = "<strong>Unknown</strong>";
}
else
{
$clip = "<strong><img src=\"{$thread['statusicon']}\" alt=\"\" /><a target=\"_parent\" href=\"{$post_url}\" >{$thread['title']}</a></strong>";
}
//$clip .= " ({$thread['views']} views, {$thread['replycount']} replies)";
if ( $thread['lastpuserid'] )
{
$poster_clip = "By <strong>{$thread['lastposter']}</strong>";
}
$poster_clip .= " {$thread['date']} {$thread['time']}";
if ( $thread['forum'] )
{
$where .= "In {$thread['forum']}";
$where .= " ({$thread['views']} views, {$thread['replycount']} replies)";
}
else
{
$where = "";
}
$prefetched .= <<<VAPRINT
<td><div class = "alt1" style="vertical-align:top;"> <div class="smallfont" style="padding: 3px 6px;
vertical-align:top;height:35px;" title = "$where">$clip</div></div><div class= "alt2" style="width:298px;vertical-align:bottom;"><div class ="smallfont" style="padding: 3px 6px;vertical-align:bottom;height:100%;">$poster_clip</div></div></td>\n
VAPRINT;
$row++;
if ( $thread['lastpostid'] > $highestid )
{
$highestid = $thread['lastpostid'];
}
}
}
// memory saving
unset($thread);
$db->free_result($getthreads);
if ( $_REQUEST['do'] == "xml" )
{
header( 'Content-Type: text/xml' . ($stylevar['charset'] != '' ? '; charset=' . $stylevar['charset'] : '') );
echo '<?xml version="1.0" encoding="' . $stylevar['charset'] . '"?>' . "\r\n";
if ( $output )
{
echo "<events>$output</events>";
}
else
{
echo "<events />";
}
exit;
}
/*$navbits = array();
$navbits[$parent] = 'iSpy';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
$navbar = process_replacement_vars($navbar);*/
eval('$headinclude = "' . fetch_template('headinclude') . '";');
$headinclude = process_replacement_vars($headinclude);
/*eval('$footer = "' . fetch_template('footer') . '";');
$footer = process_replacement_vars($footer);*/
echo<<<VAPRINT
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<META HTTP-EQUIV="refresh" CONTENT="120;url=/forum/vaispy.php"></META>
$headinclude
<style type="text/css">
a:link {color:#22229C;} /* unvisited link */
a:visited {color:#8B008B;} /* visited link */
</style>
<title>iSpy</title>
</head>
<body style="margin:0px;" >
$output
<table class = "tborder" cellpadding="6" cellspacing="1" style="border-bottom-width:0px;" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
Latest Twenty Posts
</td>
</tr>
</thead>
</table>
<div class = "tborder" style="overflow:auto; border-top-width:0px;" width="100%">
<table class = "tborder" style="border-top-width:0px; border-left-width:0px; border-right-width:0px; border-bottom-width:1px;" cellspacing="1" cellpadding ="0" align="left" >
<tr>
$prefetched
</tr>
</table>
</div>
VAPRINT;
echo $output;
?>
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:
<if condition="$show['member']">
<iframe src ="/forum/vaispy.php" width="100%" height ="112px" frameborder="0" >
<p>Your browser does not support iframes.</p>
</iframe>
</if><br /><br />
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!
grey_goose
05-24-2010, 09:02 PM
I get an error on line 254
nerbert
05-24-2010, 09:22 PM
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.
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.
nerbert
05-27-2010, 02:36 AM
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
mavherzog
06-06-2010, 02:10 AM
I use this with 3.8.5 and it works great. However, I have an issue with a wiki mod I have in place.
In a nutshell, I need to add "&do=comments" to the showthread link that is generated. I edited the script, changing the $post_url definition appropriately. This works for the initial "static" entries that show up when the script is first loaded, but the subsequent entries that load from the top don't seem to be generated from the $post_url variable.
I'm at a loss as to where to fix this.
EDIT: Just found where to edit it in va_spy.js :)
Floris
06-06-2010, 08:59 PM
<div class = "tborder" style="overflow:auto; border-top-width:0px;" width="100%;">
and remove the ";"
The ; is optional, and doens't fix an issue, it's non exist.
It works with and without the last ;
style="this:that"
or
style="this:that;"
the ; is there by default, and without it, is just more short hand.
the ; must actually be there, if you add more ..
style="this:that; another:one;"
is the same as
style="this:that; another:one"
:) Just saying :)
It doesn't cause bugs, nor fix them.
Zylantex
06-14-2010, 04:32 AM
Just installed this mod in 3.8.4 and it worked first time. Simplest install ever. Thanks OP very nice mod.
DieselMinded
07-15-2010, 11:17 PM
Working on 3.8.6
http://www.dieselbombers.com/vaispy.php
I added my chatroom and some google ads
Anyone know how to make it parse smilies and show avatars?
Taurus1
07-16-2010, 12:14 AM
Same here, works great on 3.8.6
Have been using it for a very long time. Can't go without it....lol
I have one question though, it does not seem to work with LiteSpeed. Does anyone have a fix for that. Thanks!
Taurus1
07-21-2010, 02:52 AM
Is there any kindhearted person out there that can help me to get this to work with LiteSpeed?? Please!!
BirdOPrey5
11-15-2010, 10:48 PM
Does anyone know what the issue is with Litespeed servers?
Also I notice that forums with ampersand (&) in the title show up with the HTML & code instead.
viper357
11-20-2010, 07:32 AM
Diesel, are you on VPS or Dedicated, did you notice any increase in server load with the live feed? Thanks.
Working on 3.8.6
http://www.dieselbombers.com/vaispy.php
I added my chatroom and some google ads
Anyone know how to make it parse smilies and show avatars?
viper357
11-20-2010, 07:51 AM
Does anybody know how to get this to stop refreshing after a certain period for idle users, to try and reduce server load?
BirdOPrey5
11-20-2010, 01:18 PM
You could probably put a META REFRESH tag in the header to forward the user to the main forum index after 5 minutes or so.
<meta http-equiv="refresh" content="300;url=http://www.yoursite.com/forums/" />
300 is 5 minutes in seconds.
SammoLove
11-22-2010, 12:46 AM
Not work :(
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4007
Parse error: syntax error, unexpected T_STRING in /var/www/forumkiev/data/www/forum.kiev.ua/vaispy.php(334) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: headinclude in [path]/includes/functions.php on line 4007
Parse error: syntax error, unexpected T_STRING in /var/www/sitecom/data/www/site.com/vaispy.php(337) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: footer in [path]/includes/functions.php on line 4007
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/sitecom/data/www/site.com/vaispy.php(340) : eval()'d code on line 1
BirdOPrey5
11-22-2010, 12:52 AM
Not work :(
You have vBulletin 4.x, this mod is only for 3.x... There is a similar mod for VB4 by a different author... Search for "spy" in VB4 mods...
here: https://vborg.vbsupport.ru/showthread.php?t=243429
viper357
11-22-2010, 05:49 AM
You could probably put a META REFRESH tag in the header to forward the user to the main forum index after 5 minutes or so.
<meta http-equiv="refresh" content="300;url=http://www.yoursite.com/forums/" />
300 is 5 minutes in seconds.
Thanks, I'll give it a try. :up:
grey_goose
11-24-2010, 08:19 PM
Anyone want to tell me how to shove this into a Ultimate Side Column? :D
viper357
12-03-2010, 06:16 AM
Does anyone know what the issue is with Litespeed servers?
I've just changed to a hosting company that is using litespeed and this hack is working fine on 3.8.5
BirdOPrey5
12-03-2010, 03:16 PM
Really? I installed it fine and the page displays but I don't get any new/live updates of new threads. :( You mind if I ask what host?
viper357
12-03-2010, 06:09 PM
Really? I installed it fine and the page displays but I don't get any new/live updates of new threads. :( You mind if I ask what host?
Yip, working 100%. I'm with urljet.com
BirdOPrey5
12-03-2010, 07:14 PM
Yip, working 100%. I'm with urljet.com
That's my host too. I guess I should try it again. Thanks.
viper357
12-03-2010, 08:05 PM
That's my host too. I guess I should try it again. Thanks.
I've been watching it on your site and it's working fine for me.
BirdOPrey5
12-03-2010, 08:39 PM
Really? I have to try another computer then- for me it doesn't update at all and it doesn't even show my newest posts when I refresh, it's like 20 minutes behind... But thank you I'll keep playing with this.
viper357
12-04-2010, 05:55 AM
Ok, something weird going on with yours, when viewing your board as a guest it seems to work fine, it updates and the faded posts are there at the bottom but it does seem to be a bit behind by about 2 hours I think it was, but then I registered and viewed it again and it didn't work at all, just keeps showing the same posts. Maybe a conflict with another add-on?
BirdOPrey5
12-04-2010, 02:00 PM
Thanks, I'll check as a guest...I registered on your site to see it and it was indeed working fine for me so it's not my browser.
One thing different through... when I look up what type of server you are running at:
http://whois.domaintools.com/ for your domain, under server stats it lists:
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
For my domain (http://whois.domaintools.com/juot.net) it lists simply:
litespeed
So maybe our servers are configured differently.
BirdOPrey5
12-04-2010, 02:31 PM
I found the conflict, it was: Cyb Tic-Tac-Toe (https://vborg.vbsupport.ru/showthread.php?t=20129).
I have no clue why this would cause a problem honestly but when disabled vbISpy works as expected.
My solution was to modify the main Tic Tac Toe "GS" plugin and edit the code, replace the first line (the if statement) with this:
if ($vbulletin->options['cybttt_enable'] AND THIS_SCRIPT != 'vaispy')
Now it's working for registered users. :up: Thank you viper!
-Edited Jan 15, 2011- I had the wrong code posted before.
EddyMaxx
12-04-2010, 03:22 PM
Thanks for the update Joe. Working well with 3.8.6
viper357
12-04-2010, 05:01 PM
One thing different through... when I look up what type of server you are running at:
http://whois.domaintools.com/ for your domain, under server stats it lists:
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
For my domain (http://whois.domaintools.com/juot.net) it lists simply:
litespeed
So maybe our servers are configured differently.
That's odd, although in my admincp it says Litespeed instead of Apache, they must be conning me :p oh well, at least my site is working and it's fast I'm not going to complain, lol. ;)
Anyway, glad you figured it out. :up:
Now it's your turn to help me again please :p
You could probably put a META REFRESH tag in the header to forward the user to the main forum index after 5 minutes or so.
<meta http-equiv="refresh" content="300;url=http://www.yoursite.com/forums/" />
300 is 5 minutes in seconds.
When you say "header" do you mean the actual main forum header? If so then does that mean that any page a member is on will forward the user to index or whatever, after the set time period?
BirdOPrey5
12-04-2010, 05:29 PM
Actually I just added this to my own and confirmed its working.
Add that line above the <title> tag in vaispy.php file. - Line 416.
viper357
12-04-2010, 05:47 PM
Awesome, just tested it and it works like a charm, thanks for the help. :up:
BirdOPrey5
12-04-2010, 07:01 PM
No prob. :up:
need2fart
12-11-2010, 02:40 AM
It's not working for me. The problem is it's not accessing the javascript and I don't know why.
I'm not using any fancy /forum/ I'm using the same /index.php directory.
Why won't it access the javascript?
BirdOPrey5
12-11-2010, 02:46 AM
Did you rename the .php file? If you rename it you have to change a filename in the javascript file too.
need2fart
12-11-2010, 02:52 AM
Did you rename the .php file? If you rename it you have to change a filename in the javascript file too.
Ah I did rename it. I called it live.php.
Thanks for the fast reply btw lol
need2fart
12-11-2010, 03:12 AM
I changed the filename in the javascript file and still no luck. I decided to try uploading the whole thing no edits and it's still not working for me:\
Any idea what could be wrong? Javascript works on my site and so does jquery.
BirdOPrey5
12-11-2010, 03:29 AM
What exactly happens when you go to the page? Do you see the list of threads at all but it just doesn't update? Can you give a link here (or by PM)?
mojoreef
01-17-2011, 04:29 PM
Wow I cant get this to run. I had to unzip it on my desktop and then upload it using ftp. can you tell me the exact path to upload it to??
thanks
Mike
BirdOPrey5
01-17-2011, 05:25 PM
Don't upload the vaSpy directory, open that directory so you see vaispy.php and two folders.
On the FTP program go to your forum root folder (the one that has showthread.php and forumdisplay.php in it)
Now upload the vaispy.php file and both folders to your forum root directory.
viper357
01-17-2011, 05:45 PM
Wow I cant get this to run. I had to unzip it on my desktop and then upload it using ftp. can you tell me the exact path to upload it to??
thanks
Mike
Mike, this thread is for vb3, not sure if it works on vb4 but if you're trying to use it for reeffrontiers then try the vb4 version - https://vborg.vbsupport.ru/showthread.php?t=243429
mojoreef
01-17-2011, 07:12 PM
Thanks for the help birdofprey.
Hey viper good to see your keeping an eye on me, lol
thanks gain
Mojo
Exel man // installed ...
ESKORPION
03-09-2011, 01:25 PM
I have a problem. I want edit colores of Spy but i don't know how...¿Somebody know how have i do?
Thanks!
BirdOPrey5
03-09-2011, 02:00 PM
It should just take the colors of your vBulletin style.
MissKalunji
05-10-2011, 12:49 PM
Never Mind I Answered my own question :)
powerobject
05-31-2011, 04:36 PM
Is this the same as as one found on http://www.city-data.com/forum/ ??
Does this work on vB 4.1.3?
BirdOPrey5
05-31-2011, 07:01 PM
This does not work on 4.x, there is a mod very much like this for 4.x though. No I don't have a link but I've seen it, I suggest searching for it or reading this thread, it may have been mentioned at some point.
As for citi-data, it's possible they modified this mod for use on their forum index but it doesn't work like that out of the box.
Hi, I write because I have a compatibility issue I believe, tengoinstalado the jQuery Spoiler: https://vborg.vbsupport.ru/showthread.php?t=256107 Spy and this mod, but since I put the spoiler works I Spy, Bird I could say that I do?, change any number of execution or something?
THX :D
BirdOPrey5
03-07-2012, 04:42 PM
If that is directed at me I don't understand the question- could you rephrase it?
If you feel it's an execution order issue then simply go to plugin manager and change the execution orders from the default of 5... You can change them for either mod- try a lower number and if that doesn't work try a higher number.
Thanks Bird.
restated:
I have two programs that use jQuery.
One is the Spoiler and the other is the VaiSpy.
Since I put the script in the Spoiler at the head of the forum Vaispy stopped working, maybe it's the place where I put the path to the script and simply a problem of execution.
Not change the order of execution, Vaispy file is a PHP installation does not lead directly and only have a file Spoiler Jquery.
BirdOPrey5
03-09-2012, 07:30 PM
do you need the spoiler on the vaispy page? If not you can probably easily stop it from loading on vaispy with an edit to a plugin.
do you need the spoiler on the vaispy page? If not you can probably easily stop it from loading on vaispy with an edit to a plugin.
I think we are confusing.
There is a part of the spoiler. Not if the jquery or this line:
<script type="text/javascript" src="http://www.play4trophies.com/scripts/spoiler.min.js"></script> are those which cause the Vaispy inoperable.
BirdOPrey5
03-10-2012, 02:58 PM
Might be some sort of conflict in the javascript files... You could go manually checking each file to see if they both use the name variable name soemwhere or such...
But I would suggest simply disabling the spoiler mod on the vaispy page, this way you don't need to put the spoiler javascript on the vaispy page.
If so disable the automatic update Vaispy works?
and as off?
BirdOPrey5
03-11-2012, 05:27 PM
I'm sorry I don't understand your English and I don't use the jquery mod so I have no further advice.
home9000
05-04-2012, 02:57 AM
Is there a way just to display specific thread only ?
blackberry
09-17-2012, 11:26 AM
Vaispy is not working since 2 days.. its not updating any replies... i need to refresh it every time to look for replies/threads posted. Can you please check what is the problem?
Lexserv
12-29-2012, 04:48 AM
This thing stopped working with the latest vB 3.8.7 PL3.
What gives?
ravenscape
01-03-2013, 04:41 PM
We upgraded our php version yesterday and vaispy started throwing deprecation errors.
Changing one line of code fixed the problem.
in vaispy.php change
error_reporting(E_ALL & ~E_NOTICE);
to
error_reporting(E_ALL & ~E_NOTICE & ~8192);
blackberry
01-13-2013, 02:11 PM
We upgraded our php version yesterday and vaispy started throwing deprecation errors.
Changing one line of code fixed the problem.
in vaispy.php change
error_reporting(E_ALL & ~E_NOTICE);to
error_reporting(E_ALL & ~E_NOTICE & ~8192);
still not working :-s
we have php 5.2.17
vsforums
11-20-2013, 03:55 PM
By any chance, does anyone know why it's not updating when using IE to view the site? It seems to work fine with FireFox and Chrome.
viper357
11-21-2013, 03:33 PM
By any chance, does anyone know why it's not updating when using IE to view the site? It seems to work fine with FireFox and Chrome.Working fine for me on 3.8.5 and IE 10.
SuperJETT
12-19-2013, 05:08 PM
I use it on 4.2 just fine and way back before that as well.
jagtpf
06-17-2015, 09:45 AM
It's working on 4.2.3 (carried over on upgrade from 3.8.7); but the layout is to pieces ....
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.