View Full Version : Add-On Releases - vBISpy - AJAX real-time feed of new posts/threads
jackceltic1888
09-19-2006, 05:02 PM
Installed :D
Lionel
09-19-2006, 05:15 PM
thanks for trying... I give up...
Might be because the code puts DIVS inside the table cells, which are overriding the table cell alignment. Vertical-align can't be applied to divs in that manner. Try this (untested, rough guess):
Add to your CSS:
.top span {
vertical-align:top;
}
Then change the code to (Presumably the innerHTML divs, since you're trying to apply it to a table cell):
<div class="top">
<span style="inline-block">What you want aligned to the top</span>
</div>
MPDev
09-20-2006, 11:35 AM
I'll give it a try and see if I can get it to align at the top.
MPDev
09-20-2006, 07:17 PM
Lionel,
I was able to get this to work easily enough editing the va_spy.js file, at line 272:
text = '<td class="alt1 smallfont" align="center" valign="top">' + what + '</td><td class="alt2 smallfont" valign="top">' + poster_clip + '</td><td class="alt1Active smallfont">' + clip + '</td><td align="center" class="alt1 smallfont" valign="top">' + where + '</td>';
I just put the valigns in there and they popped to the top of the cell.
Spikeman
09-21-2006, 07:21 AM
Installed thanks :)
MPDev
09-22-2006, 01:06 AM
Sure thing, Spikeman; mind if I ask that you click INSTALL? ;)
Skedoozy
09-22-2006, 08:57 AM
Installed. I love it. Works great. I'm only going to tell select users about it though. ;)
Lionel
09-22-2006, 12:47 PM
Lionel,
I was able to get this to work easily enough editing the va_spy.js file, at line 272:
text = '<td class="alt1 smallfont" align="center" valign="top">' + what + '</td><td class="alt2 smallfont" valign="top">' + poster_clip + '</td><td class="alt1Active smallfont">' + clip + '</td><td align="center" class="alt1 smallfont" valign="top">' + where + '</td>';
I just put the valigns in there and they popped to the top of the cell.
In firefox, yes, but not IE
bashy
09-22-2006, 04:05 PM
Where 2 or 3 rss feeds are posted, this can mess things up a bit
New Thread Bashy
9 Minutes Ago 05:52 PM Bush 'unaware' of Pakistan threat
President Bush says he was "taken aback" by reports that the US threatened to bomb Pakistan in 2001. More... (0 views, 0 replies) RSS News
New Thread Bashy
9 Minutes Ago 05:52 PM Bush 'unaware' of Pakistan threat
A magnetic levitation train crashes at high speed in northern Germany, killing at least 15 people. More... (0 views, 0 replies) RSS News
New Thread Bashy
9 Minutes Ago 05:52 PM German monorail accident kills 15
President Bush says he was "taken aback" by reports that the US threatened to bomb Pakistan in 2001. More... (0 views, 0 replies) RSS News
New Thread Bashy
9 Minutes Ago 05:52 PM German monorail accident kills 15
A magnetic levitation train crashes at high speed in northern Germany, killing at least 15 people. More... (0 views, 0 replies) RSS News
This is exactly how it looks in the spy page, well with better formatting lol
But you can see that its repeated and also titles messed up with the descriptions!
MPDev
09-22-2006, 04:25 PM
What do you mean "where 2 or 3 rss feeds are posted"? The query is pretty straightforward; not sure why it would be mixing up titles and descriptions - I wonder is this applies only to rss posts?
bashy
09-22-2006, 04:49 PM
I meant "when" sorry...
Also i have the AI bot installed as well, and hwen that posts it sometimes messes up, So i am thinking that when the rss and bot posts, they post at the speed of light (so to speak) and it looks like the spy cannot keep up with it, thats what it looks like, I know the bot aint your problem and is hopefully being resolved (slow him posting) so its just the rss feeds..
If one rss is posted its ok, but if theres 2 or more thats when it messes up.
I think the rss feeds posts at virtually the same time, therefore if a smal 1 or 2 second delay can be implemented between posts thats should help
Does this make any sense to you lol
Timan
09-22-2006, 05:52 PM
Quick question about modifying the look of the threadbits...
Is there a way to make the bg color of each table row alternate from class="alt1" to class="alt2"?
kushal
09-22-2006, 07:40 PM
This is a great mod, allmost making board live of content.
Adrian Schneider
09-22-2006, 09:13 PM
I made some major adjustments to mine, take a looksie... The only one not visible here is a 10 minute refresh, to check for new private messages and to update any posts I've read.
Cool New Features (http://www.siradrian.com/images/screenshots/spy.jpg)
bashy
09-22-2006, 10:15 PM
Any chance of your modification Adrian please? :)
Adrian Schneider
09-22-2006, 10:33 PM
Mine also has vBSEO rewritten URLs, so it's a bit diff. I may post it later when I clean it up some more.
BTW if anyone wants alternating rows, here is an easy way to accomplish it.
--
In va_spy.js find
function spyinit() {Above it, add var rowClass = 'alt2';Findhighestid = Math.max(parseInt(spyid), highestid);above it, addrowClass = rowClass == 'alt2' ? 'alt1' : 'alt2';Findtext = '
For every <td> (with or without a class="alt1" or "alt2") make it<td class="' + rowClass + '">Remember that some of the cells have alignment set, so be sure to keep that intact.
MPDev
09-22-2006, 10:38 PM
Thanks, Adrian!
I'm going to add PhotoPost thumbnails here shortly for new photos added to the gallery.
warnmar10
09-24-2006, 02:33 PM
Other than that one, minor annoyance this is a nice add.
On my site, in Firefox or IE, it only works for guest.
If I log in and run vaispy.php?do=xml under Firefox, everything looks to be in order, I see exactly what I would expect to see but it doesn't display anything on the vaispy.php page.
If I log out in Firefox, browse to vaispy.php it works.
If I open a new tab and log in, it continues to work in the 1st tab.
If while I'm logged in on the 2nd tab I refresh the first tab it continues to work but it doesn't show me as logged in.
If I log in to the working instance on tab 1 it stops working.
I read all 5 pages and saw this problem mentioned 4 or 5 times, did I read past the answer somewhere?
Very cool for my guests though.
It is still no work for me only guests can view, it correctly pulls posts only from forums with guest permission but pulls nothing for logged in users.
MPDev
09-25-2006, 05:44 PM
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).
firstrebel
09-25-2006, 06:14 PM
Something is not right, look at http://www.volvoclub.org.uk/forum/vaispy.php.
There are different fonts in the first column Event.
Bob
MPDev
09-25-2006, 06:22 PM
Yeah, something is off on IE; checking now.
MPDev
09-25-2006, 06:50 PM
OKay, I've updated the build with a fix and included some new code I was working on to select only subscribed threads while viewing.
Adrian Schneider
09-25-2006, 06:53 PM
I added one more thing to mine - ability to filter forums via query string (?forumids=x,y,z) as well as the option to not check child forums for the forums you specify (&noChildren=1). I'll share them later tonight if I get some time.
MPDev
09-25-2006, 07:12 PM
I just modified it again to put the alignment for IE back into place; I don't have any subscribed threads, so if anyone can test that out and let me know if it worked that would be nice.
Thanks, SirAdrian; look forward to adding more.
firstrebel
09-25-2006, 07:15 PM
OKay, I've updated the build with a fix and included some new code I was working on to select only subscribed threads while viewing.
Much better, thanks.
Bob
MPDev
09-25-2006, 07:25 PM
You'll notice that I've pulled some code form the va_spy.js that was only for IE and redone some of the html in the vaispy.php to pre-populate those rows; this leaves 5 rows that will be scrolled with the last 5 posts (and with the "fade"), but removes all the empty rows problems of IE that we had before.
If you modified the code in the past to change the number of rows, you'll have an easier time adjusting this code; as all the changes will be in the vaispy.php script.
Except for changing some variables in the va_spy.js script; you shouldn't need to change much else in the file.
Kaleem
09-25-2006, 07:44 PM
Thanks for update working fine :)
http://www.friendskorner.com/forum/vaispy.php
Chadi
09-25-2006, 07:47 PM
Suggestions:
- add refresh button (ajax style perhaps)
- new version seems to instantly load about 15 threads without scrolling nicely like the old version
MPDev
09-25-2006, 08:30 PM
Not sure what a refresh would accomplish since it's already on a polling cycle.
Yes, the new version preloads the rows with 15 items and scrolls 5, as per the version updates.
G_Man
09-26-2006, 01:02 AM
You'll notice that I've pulled some code form the va_spy.js that was only for IE and redone some of the html in the vaispy.php to pre-populate those rows; this leaves 5 rows that will be scrolled with the last 5 posts (and with the "fade"), but removes all the empty rows problems of IE that we had before.
If you modified the code in the past to change the number of rows, you'll have an easier time adjusting this code; as all the changes will be in the vaispy.php script.
Except for changing some variables in the va_spy.js script; you shouldn't need to change much else in the file.
I went back in the change the URL for CMPS in va_spy.js, but it isn't showing on my CMPS ??
In the past, that was all I had to change when updating. Ideas?
MPDev
09-26-2006, 01:34 AM
Are you referring to the CMPS mod?
G_Man
09-26-2006, 01:42 AM
Are you referring to the CMPS mod?
Yes. In fact, I had to re-upload the va_spy.js file with NO changes to get it to work on its own.
MPDev
09-26-2006, 01:59 AM
<See the module thread. />
G_Man
09-26-2006, 02:18 AM
I am not seeing a </ if> anywhere....
Also, noticed that first 15 posts that show up immediately do not parse the html in the forum column...
thisgeek
09-26-2006, 05:51 AM
This is awesome. Thanks.
MPDev
09-26-2006, 11:17 AM
G_Man, are you talking about the vBAdvanced module or just this mod? I'm confused.
firstrebel
09-26-2006, 02:45 PM
I am now lost on what version of 1.11 I have. There was the original and then 2 (?) changes and still on v1.11.
Bob
MPDev
09-26-2006, 03:21 PM
I am now lost on what version of 1.11 I have. There was the original and then 2 (?) changes and still on v1.11.
Bob
There were two mods to the 1.11 within the first hour I posted it; you can always grab the current and upload those two files just to be sure you got all the changes.
The latest version, for some reason doesn't seem to be working for me.
http://www.ureshi-now.com/forums/ispy.php
I have modified vaispy.php to ispy.php but have amended the .js file accordingly. I have not made any other amendments other than the page title.
lexx27
09-26-2006, 04:56 PM
1.11 doesnt work well. Where can I download 1.10?
G_Man
09-26-2006, 06:25 PM
G_Man, are you talking about the vBAdvanced module or just this mod? I'm confused.
I get NO feeds in the Module and on the Normal vaispy.php page it shows all the html in titles of the first 15 posts.
MPDev
09-26-2006, 06:53 PM
The latest version, for some reason doesn't seem to be working for me.
http://www.ureshi-now.com/forums/ispy.php
I have modified vaispy.php to ispy.php but have amended the .js file accordingly. I have not made any other amendments other than the page title.
Did you change the number of rows being pulled? Because your html is missing more than a few of the row id's in the table.
row14
and then
row21
where is row 15-20?
MPDev
09-26-2006, 06:55 PM
I get NO feeds in the Module and on the Normal vaispy.php page it shows all the html in titles of the first 15 posts.
How about a link so I can see what you are talking about?
MPDev
09-26-2006, 07:01 PM
I've modified the vaispy.php application in the download to include new code to add empty rows when the initial pull yields less than 20 rows.
This should fix the display issues.
G_Man
09-26-2006, 07:53 PM
How about a link so I can see what you are talking about?
My Sig is my CMPS Page... www.afterseppuku.com
and
http://www.afterseppuku.com/theforum/vaispy.php is the main screen.
Did you change the number of rows being pulled? Because your html is missing more than a few of the row id's in the table.
row14
and then
row21
where is row 15-20?
I didn't change anything but the revised file seems to work fine now.
thisgeek
09-27-2006, 08:05 AM
I'm using the latest download (just re-grabbed it) - and I'm having an issue with the $blockforums facility.
If I add more than three exclusions, then the display of vBISpy breaks. Some blank rows are appended to the bottom of the list. Sometimes the most recent entry at the top blanks out after a few seconds, although the links in it are still active if you move your mouse over the area. It also appears that the script stops working properly - ie, no new posts appear.
MPDev
09-27-2006, 11:08 AM
G_Man, you have an error in your header:
Expected ',' or '{' but found '/'. on line 385.
Just thought you might want to chekc that out.
You've also set your var vbforum variable wrong, look at the example it should be:
var vburl = '/theforum/';
not:
var vburl = 'theforum';
MPDev
09-27-2006, 11:08 AM
I'm using the latest download (just re-grabbed it) - and I'm having an issue with the $blockforums facility.
If I add more than three exclusions, then the display of vBISpy breaks. Some blank rows are appended to the bottom of the list. Sometimes the most recent entry at the top blanks out after a few seconds, although the links in it are still active if you move your mouse over the area. It also appears that the script stops working properly - ie, no new posts appear.
Link?
G_Man
09-27-2006, 11:18 AM
G_Man, you have an error in your header:
Expected ',' or '{' but found '/'. on line 385.
Just thought you might want to chekc that out.
You've also set your var vbforum variable wrong, look at the example it should be:
var vburl = '/theforum/';
not:
var vburl = 'theforum';
oh... I've edited it soooo many times, just making mistakes now....
Question that I've always wondered... how do I find a line, like like line 385... surely you don't count.
Amenadiel
09-27-2006, 11:36 AM
Greetings MPDev, and congratz for the great work.
I'm trying to display the last posts in my site frontend wich runs on Postnuke... but I just cannot make vaispy.php display anything if ran or called from outside the forum path.
I tried copying it to the site root (modifying the "require once" command to adress the full path of global.php), tried an iframe, calling if with an include, with a require, etc and nothing seems to work, it just displays a blank page.
EDIT: finally, it was simpler than I though. I just added a full path call in my frontend in the form of:
require_once('http://www.site.com/forum/vaispy.php');
MPDev
09-27-2006, 12:23 PM
oh... I've edited it soooo many times, just making mistakes now....
Question that I've always wondered... how do I find a line, like like line 385... surely you don't count.
I edit my files with UltraEdit-32; you might want to look at a decent editor that gives you line numbers. As for the error, the line number came up in the JavaScript Console error dialog in FireFox.
MPDev
09-27-2006, 12:27 PM
Greetings MPDev, and congratz for the great work.
Be sure to click install! :)
Cheertobi
09-27-2006, 01:31 PM
I'm going to add PhotoPost thumbnails here shortly for new photos added to the gallery.
Can you do this also for Photopost vBGallery 2.0?
Tobi
G_Man
09-27-2006, 07:58 PM
I edit my files with UltraEdit-32; you might want to look at a decent editor that gives you line numbers. As for the error, the line number came up in the JavaScript Console error dialog in FireFox.
Cheers!! I knew you guys were bright, but sheesh!! Line 385!! LOL I'll look into that.. found it using FF and took out a rogue */ Thanks.
MPDev
09-28-2006, 11:38 AM
Excellent.
I am making one change the to va_spy.js file in the current build as a couple users complained about not wanting the "subscribed threads only" option. (By the way, anyone tested this to make sure my query is right?)
At line 64 in va_spy.js, I added a condition:
if (document.getElementById("subscribe")) {
if (document.getElementById("subscribe").checked) { querystring = querystring + "&subscribe=1"; }
}
So that the subscribe option does not have to be displayed if you do not want to display it. You can remove the checkbox option from any template and this will prevent a JavaScript error.
G_Man
09-28-2006, 01:39 PM
Have you looked at my main vaispy page (http://www.afterseppuku.com/theforum/vaispy.php)?
The first clips still display the HTML.... Not a big deal, but sure clutters up such a pretty Mod....
MPDev
09-28-2006, 01:42 PM
What do you mean still displays the HTML? The page looks good to me.
G_Man
09-28-2006, 01:49 PM
What do you mean still displays the HTML? The page looks good to me.
REALLY??!!
You need to scroll down a bit and the G-Buddy Forum is invisible to non-staff....
Here is a screenshot.
MPDev
09-28-2006, 03:37 PM
I take it you use html in your Forum titles?
G_Man
09-28-2006, 03:45 PM
I take it you use html in your Forum titles?
Some. Makes them all colorful and pretty... and from the sound of it a pain the arse!! LOL
Actually though, it works GREAT with your hack. Like all my Staff forum titles are read, so they really stand out when they pop-up on ispy!!
Its only since you changed it and had first threads pop up instantly that there is a problem. As the feed one at a time they look as they should.
MPDev
09-28-2006, 04:21 PM
In vaispy.php, line 166, change:
$thread['forum'] = htmlspecialchars_uni($vbulletin->forumcache["$tforumid"]['title']);
to:
$thread['forum'] = $vbulletin->forumcache["$tforumid"]['title'];
Daruka
09-28-2006, 04:28 PM
Hi MPDev, I gotta say that your mod is incredible. We run a very busy forum (132,000+ members, 1.5+ million posts) and this is a real life saver for our moderator. Thanks for sharing it with the rest of us!
My only question: Is it possible to support colored user names? We have it set up so our staff members show up in a bright blue color so people can quickly distinguish them from normal users. We are using the "Username HTML Markup" fields in the Usergroup Manager to apply the color. If not, no big deal, but it would help to see that info.
Thanks again,
-Daruka
MPDev
09-28-2006, 05:26 PM
I assume the query would have to be modified to pull in the user table properties of the lastposter (lastposterid) and then fetch_musername() would have to be called; but I don't have the time to write it out just now.
nymyth
09-28-2006, 06:55 PM
^^i have a question MPDev. Is there anyway that posts from a particular forum NOT show up. I have one area where people posts links to their OWN MUSIC. It's a forum cat. whereby you need to be added to a usergroup that allows you to see it.
Right now, that forum and its post contents are visible. Can this be done?
Thank.s
MPDev
09-28-2006, 07:17 PM
Sure, look in the vaispy.php script in the configuration area at the $blockforums variable; just put forum ids sperated by commas in that variable.
G_Man
09-28-2006, 09:38 PM
In vaispy.php, line 166, change:
$thread['forum'] = htmlspecialchars_uni($vbulletin->forumcache["$tforumid"]['title']);
to:
$thread['forum'] = $vbulletin->forumcache["$tforumid"]['title'];
Works... but...
After the change the CMPS module quit working.
Changed it back and CMPS module started working again.
MPDev
09-28-2006, 11:22 PM
Well, how about:
$thread['forum'] = htmlspecialchars_uni(strip_tags($vbulletin->forumcache["$tforumid"]['title']));
until I can look at it closer.
G_Man
09-28-2006, 11:25 PM
Well, how about:
$thread['forum'] = htmlspecialchars_uni(strip_tags($vbulletin->forumcache["$tforumid"]['title']));
until I can look at it closer.
You Rock. That seems to be working just fine on both CMPS and the ispy.php page. :D
Firestar.chkn
09-29-2006, 02:04 PM
Any idea why mine won't pick up new posts? I have to refresh the page for it to be picked up. It worked previously, but for some weird reason it won't work now.
Here it is (http://forums.prophecy.co.za/vaispy.php).
Any help would be appreciated.
nymyth
09-29-2006, 02:18 PM
Sure, look in the vaispy.php script in the configuration area at the $blockforums variable; just put forum ids sperated by commas in that variable.
So change this:
$blockforums .= ','.$forum['forumid'];
To this?
$blockforums .= '7,'.$forum['forumid'];
Thank.
MPDev
09-29-2006, 04:30 PM
No, the first $blockforum = ''; at line 40.
Make it:
$blockforums = "7";
MPDev
09-29-2006, 04:34 PM
Any idea why mine won't pick up new posts? I have to refresh the page for it to be picked up. It worked previously, but for some weird reason it won't work now.
Here it is (http://forums.prophecy.co.za/vaispy.php).
Any help would be appreciated.
I suspect your countdown time may be causing a problem; since we use setTimeout() as well, I'm not sure you can have multiple timeout's running on the same page.
Also, in your vaispy.php script, replace the two commas with one.
.spyfade1 div, .spyfade1 span,, .spyfade1 td, .spyfade1 img {
G_Man
09-29-2006, 07:24 PM
This will probably send you through the roof, but...
any chance you have a copy of version 1.0.10 lying around? I still have status icons cluttering my feed after the first 15 go up. Also, you did help me get the showing of the HTML in the forum titles off, but there is no html at all now...
Almost all the issues I have came after adding icons and that initial bunch of threads.
I am not ungrateful, despite the sound of this... just liked the earlier version much better. :D
MPDev
09-29-2006, 08:34 PM
You need to modify the va_spy.js script as I outlined before to remove the statusicon img src reference from the code (you removed it from the vaispy.php); once you do that, it will no longer be in the new items.
I'll check into the html issue; but, no, I don't have a 1.10 version anymore.
Firestar.chkn
09-30-2006, 07:42 AM
Thanks! It was the timer thing that was the problem. I disabled that plugin and now it works!
Thanks for your help. Is there some sort of a conditional that I can use to disable the timer for your page?
Otherwise, just one last question. I've got the microstats hack installed, but it's not showing up on your page. Any idea why not?
Thanks again!
Firestar
G_Man
09-30-2006, 01:43 PM
Thanks! It was the timer thing that was the problem. I disabled that plugin and now it works!
Thanks for your help. Is there some sort of a conditional that I can use to disable the timer for your page?
Otherwise, just one last question. I've got the microstats hack installed, but it's not showing up on your page. Any idea why not?
Thanks again!
Firestar
I've noticed that and also this:
Database error in vBulletin :
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User
aftersep_afterse has already more than 'max_user_connections' active connections
/home/aftersep/public_html/theforum/includes/class_core.php on line 271
MySQL Error :
Error Number :
Date : Saturday, September 30th 2006 @ 10:01:50 AM
Script :
http://www.afterseppuku.com/theforum/vaispy.php?do=xml&last=99105&r=0.8253972146357883&_=
Referrer :
IP Address : 67.185.88.39
Username :
Classname : vb_database
Been getting this email while I let Ispy run. Doesn't seem to really affect the board that I know of, but I am thinking this might need fixing.
What do you think MPDev? Is this just Ispy or a combination of Ispy and something else?
ForumDog
10-01-2006, 04:29 PM
<Nevermind>
TheBlackPoet
10-02-2006, 02:28 AM
works fine for me... this is really nice.. now i just have to make a button for the members... and they will be able to see real time changes...
installed.
thisgeek
10-02-2006, 04:25 AM
I'm using the latest download (just re-grabbed it) - and I'm having an issue with the $blockforums facility.
Hmm... this latest version seems to have fixed it at first glance. I'll keep an eye on it. ;)
MPDev
10-03-2006, 01:38 PM
What do you think MPDev? Is this just Ispy or a combination of Ispy and something else?
It looks like an ISP issue; try changing the timeout to something longer to prevent frequent refreshes.
G_Man
10-03-2006, 07:56 PM
It looks like an ISP issue; try changing the timeout to something longer to prevent frequent refreshes.
Had the problem again, with this disabled. AND having issues with my ISP... AND my server is doing maintanaince....
*good grief*
Going to have this back up soon and see if it persists, but I am convinced it is NOT this mod in any way shape or form.
Cheers.
Ejecutor Hanzo
10-04-2006, 03:09 AM
so pretty mod, congrats ;)
pickles21
10-06-2006, 12:42 AM
How do I create a button for the members to see?
MPDev
10-06-2006, 04:53 PM
A button? Or a text link in your navbar?
bashy
10-07-2006, 07:24 PM
Hi peeps, please see http://www.bashys-place.com/forums/vaispy.php
I just upgraded to the latest and thats how it looks now :(
da420
10-07-2006, 08:08 PM
Mines doing the same bashy.
bashy
10-07-2006, 09:03 PM
Thanks god (didnt mean it like that though) thought i had bust sommat lol
rinkrat
10-07-2006, 11:10 PM
I'd like to have it display each new ENTIRE message as they are added. How can I expand the number of words it shows in each message?
MPDev
10-09-2006, 12:35 PM
Hi peeps, please see http://www.bashys-place.com/forums/vaispy.php
I just upgraded to the latest and thats how it looks now :(
It looks okay to me using Firefox; what am I missing?
bashy
10-09-2006, 03:07 PM
Yeah its ok now m8 thats strange, i come back form work and its now fine lol
There was loads of cells on the right hand side and the opacity was not working
Oh well, thanks anyway!! :)
da420
10-09-2006, 03:20 PM
Yeah, I noticed that when installing it, but after a few threads were made I realized it was filling up... so it looks good now on my end as well. :D
MPDev
10-10-2006, 07:38 PM
Yeah its ok now m8 thats strange, i come back form work and its now fine lol
There was loads of cells on the right hand side and the opacity was not working
Oh well, thanks anyway!! :)
Go figure; my car is like that when I take it to the shop!
ForumDog
10-11-2006, 09:52 AM
Finally (don't you just love updates to custom jobs! :p) got my little changed version of your mod going. Works like a charm, looks great. Thanks for your work!
theChronic
10-12-2006, 10:05 AM
For some reason mine doesn't seem to be doing the whole live thing. When I'm on the page, it just stays how it is regardless of new posts until i refresh it. And when I refresh it, it doesn't do the one by one adding thing that looks all fancy, its just like an updated static page.
Only thing I did was change the name of the file. Any idea whats going on here?
Thanks
john
MPDev
10-12-2006, 11:27 AM
If you changed the name of the file, then you need to update the code to call the new filename; that's covered in the early posts, but you can't change the name and still have it work without changing the code.
theChronic
10-13-2006, 01:32 AM
sweet, I changed up the file and it works :) thanks a lot. awesome product.
Pirate45
10-16-2006, 09:22 AM
Is there any way that someone could use this or something like it to combine content from two or more forums using vBulletin and the RSS feeds it provides?
MPDev
10-16-2006, 12:38 PM
It's possible, but not simple.
I do this for vBIspy.com (http://www.vbispy.com) but had to re-engineer the whole script and support scripts to work with so many different sites.
Pirate45
10-16-2006, 01:58 PM
Yes, I've seen that and that is what I am wanting to do. Not to compete with you, but to be able to do something like that for some small specialty forums.
Cheertobi
10-16-2006, 04:39 PM
Hi,
how can I get SirAdrians vBSeo addon work to rewrite my urls?
Regards,
Tobi
mikeinjersey
10-16-2006, 08:31 PM
Hi,
how can I get SirAdrians vBSeo addon work to rewrite my urls?
Regards,
Tobi
yeah, does anyone know if this works with vbSEO? I have that installed and was just about to install this one..and then read this post.
yeah, does anyone know if this works with vbSEO? I have that installed and was just about to install this one..and then read this post.
Working fine for me, with vBSEO.
Cheertobi
10-17-2006, 03:55 AM
Working fine for me, with vBSEO.
Did vBSEO rewrites yours vbspy.php urls?
Tobi
MPDev
10-17-2006, 11:36 AM
On my site the URLs are not rewritten, I believe because the links are generated for display within the JavaScript code; not within the vB page itself that gets parsed.
I would imagine the SEO code could be used in the vaispy.php application after getting the links written; didn't someone post this info earlier in the thread?
MPDev
10-27-2006, 12:35 PM
Has anyone tried integrating with the vBSEO APIs at all?
rurbaniak
10-27-2006, 03:17 PM
I installed it, but getting nothing at all. Any ideas??
http://firstandinches.com/forums/vaispy.php
MPDev
10-27-2006, 03:31 PM
There is something wrong with your html:
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 20:59, Wed Sep 13th 2006
|| # CVS: $RCSfile: vbulletin_cphome_scripts.js,v $ - $Revision: 1.4 $
|| ################################################## ##################
\*================================================ ======================*/_onreadystatechange);
news.send('./newsproxy.php', '');
}
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 09:07, Wed Oct 4th 2006
|| # CVS: $RCSfile: vbulletin_cphome_scripts.js,v $ - $Revision: 1.6 $
|| ################################################## ##################
\*================================================ ======================*/
which is popping up an error in the line in bold; I'd check your vbulletin_cphome_scripts.js file for any errors; looks like the file is corrupted.
rurbaniak
10-27-2006, 06:43 PM
There is something wrong with your html:
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 20:59, Wed Sep 13th 2006
|| # CVS: $RCSfile: vbulletin_cphome_scripts.js,v $ - $Revision: 1.4 $
|| ################################################## ##################
\*================================================ ======================*/_onreadystatechange);
news.send('./newsproxy.php', '');
}
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 09:07, Wed Oct 4th 2006
|| # CVS: $RCSfile: vbulletin_cphome_scripts.js,v $ - $Revision: 1.6 $
|| ################################################## ##################
\*================================================ ======================*/
which is popping up an error in the line in bold; I'd check your vbulletin_cphome_scripts.js file for any errors; looks like the file is corrupted.
Checked it, re-uploaded it and still nothing.
rezapci
10-28-2006, 11:42 AM
Thanks much
Installed .. here mines http://www.alshiatalk.com/vb/vaispy.php
Invalid ID
10-30-2006, 06:34 AM
It's good, but how can we allow our members to see that?
admin0
10-30-2006, 08:22 AM
Hi,
Is this possible to display in a small box in another website, but in the same server ??
i know you said it checks forum permissions, but how about password protected forums?
In the vaispy.php Look for
// ####################### SET PHP ENVIRONMENT ###########################
REPLACE WITH
// ####################### SET PHP permission ###########################
require_once('./global.php');
if (!($forumperms & $vbulletin->userinfo['userid']))
{
print_no_permission();
}
// ####################### SET PHP ENVIRONMENT ###########################
Thanks much
Installed, great hack >> Click done! :up:
MPDev
10-30-2006, 11:25 AM
It's good, but how can we allow our members to see that?
I would assume that most people put a link to it in their navbar or their portal page.
Viper007Bond
10-30-2006, 02:45 PM
Sweet mod! Got it installed and works great!
However, it's not quite XHTML valid. I had to make about a 1/2 dozen changes to get it to be so. ;)
http://forums.finalgear.com/vaispy.php?styleid=5
kungfujesus
10-30-2006, 09:15 PM
This is a great hack. A nice way to just sit back and watch in real time which threads are most active, and when.
I'm keeping this all for myself... my members would only abuse it as they do with most things.
:D
A couple of questions though:
1. In the "event" box, so far mine is only showing "new post" ... is this supposed to be logging anything else? New thread?
2. Is there any way to show the entire post in the thread/post column? It shows a fair amount but cuts off at a certain point.
MPDev
10-31-2006, 12:56 PM
Hi,
Is this possible to display in a small box in another website, but in the same server ??
Small box? Not that I can think off off-hand; although you could look at the vBadvanced plugin to see if that helps.
MPDev
11-02-2006, 11:23 AM
This is a great hack. A nice way to just sit back and watch in real time which threads are most active, and when.
I'm keeping this all for myself... my members would only abuse it as they do with most things.
:D
A couple of questions though:
1. In the "event" box, so far mine is only showing "new post" ... is this supposed to be logging anything else? New thread?
2. Is there any way to show the entire post in the thread/post column? It shows a fair amount but cuts off at a certain point.
1. It'll say new post or new thread depending on the last posts it grabs; so, yes, it should be posting new threads.
2. You could modify the vbispy.php application to change the string truncation occurring.
One Question:
I can use it to show thread at vbIspy ? and i dont want our user to seeing this page...just wanted to display the thread at vbiSpy Network only..
update every 1.5 hour(dont want to be a reason of heavy server load)
can u provide some tips?
MPDev
11-05-2006, 11:28 AM
I have a module for just that purpose; I should post it here as well. There is no viewing capability (its been stripped out). You just load this on your forums directory and it provides the xml feed.
The file is attached; just upload to your server and run it in a browser window to see if you get the XML data. If you do, then you can submit your site to vBIspy.com (http://www.vbispy.com).
Thankx MpDev...for the last module only for showing therad at vbIspy.com
Do u have any idea how much server laod it may cause?
cpu uses/min or sec?
Lots of install 216 is really grate..
am really curious about users server laod?
ANd this 2nd module will not be a reason of server load?
We are trebille suffering with that server load..
firefox100
11-05-2006, 03:11 PM
I am very concerned with the server load, I have seen that my usage has ascended from 0.5 to 1.5 and 2 in high hours. Could they tell us as avoiding this high usage?
The hack is wonderful, the best in the year, sincerely. ;)
MPDev
11-05-2006, 04:15 PM
You can increase the time of delay to reduce the load if you have many users.
Using the module without the user interface will not increase your server load as the vaispy.php is only called every so often by vbispy.com and not every few seconds like when watching a live feed that polls every few seconds.
mikeylikesitz
11-05-2006, 04:34 PM
great mod, works like a champ
firefox100
11-05-2006, 10:06 PM
You can increase the time of delay to reduce the load if you have many usersWhere I change that parameter?
MPDev
11-06-2006, 02:35 PM
See the second post in this thread.
buro9
11-09-2006, 07:30 AM
Is it possible to put in a feature request:
Option to exclude posts and threads from ignored users from appearing on Spy.
kalleball
11-10-2006, 06:18 AM
there's no ending body/html tags on my page, not sure why that is...as it's fine on all other pages...
buro9
11-10-2006, 07:03 AM
there's no ending body/html tags on my page, not sure why that is...as it's fine on all other pages...
Good spot!
It's because Spy doesn't use the vBulletin template system and the hard-coded HTML within the .php file of the hack does not include those tags after it pulls in the $footer.
Look at the bottom of the .php file and you will see the place I mean, you'll be able to put in the closing BODY and HTML tags there.
kalleball
11-10-2006, 09:59 AM
Good spot!
It's because Spy doesn't use the vBulletin template system and the hard-coded HTML within the .php file of the hack does not include those tags after it pulls in the $footer.
Look at the bottom of the .php file and you will see the place I mean, you'll be able to put in the closing BODY and HTML tags there.
yeah, i saw...but i assumed it was some template thing ++++ing up...guess i'll just add it then ;)
aquariumpros
11-11-2006, 10:36 AM
Awesome Hack (Thank you) - my Mods, Admins and I are loving it!!!
One strange thing on mine...
I have a few forums with HTML color tags in the forum name - obviously causing those forum links to appear in a different color.
Sometimes vBISpy parses the HTML and displays the changed color - and in the next line - is displays the unparsed code.
Anyone with any ideas as to what's up with this??
See:
https://vborg.vbsupport.ru/external/2006/11/8.gif
Thanks in advance for any help or explanation...
exilera
11-14-2006, 11:25 AM
Great addon! I just have one problem.
When I go to the vaispy.php in the browser, it logs me out of the forum. Or at least, it shows me as not logged in, then when I go back to the index I'm logged in again. Is there any way I can stay logged in when I go to jabber-box.com/jabber/vaispy.php?
Thanks!
MPDev
11-15-2006, 05:22 PM
It's possible that the two apps cant run on the same page because of how they work. If the other app uses settimeout - then the two are conflicting as you cant have two timers going.
exilera
11-15-2006, 05:40 PM
It's possible that the two apps cant run on the same page because of how they work. If the other app uses settimeout - then the two are conflicting as you cant have two timers going.
Do you know of a way around that?
Trana
11-16-2006, 02:05 AM
It's possible that the two apps cant run on the same page because of how they work. If the other app uses settimeout - then the two are conflicting as you cant have two timers going.
Wow, thats a great point. I bet I know which module is causing it too! Is there anything I can do if both of them need to use it?
hello...
those who are interesyed to show only thread/topic at vbispy
vbispy now support Vbulletins defult RSS..
http://vbispy.com/showthread.php?t=2
i gez it wont be reason of server load....
MPDev
11-17-2006, 11:51 AM
Right you are, Zia; you can use the internal vB RSS generator to feed threads/posts to vbispy.com; this vBIspy just gives more robust links.
Trana, I do not know how to get two timers from two products to work on one page, sorry.
sduckie2k5
11-18-2006, 12:14 AM
Great mod, got it working, after reading about the confliction with the Cyb forum online count up mod. Is there possibly a work around for this so I can re-enable that mod as well for them both to work at once? Thanks in advance! ~D
wahhsabee
11-18-2006, 05:16 PM
Holy crap, I love this!
Dennis B
11-18-2006, 10:17 PM
MPDev this hack rules!
MPDev
11-19-2006, 02:42 PM
Thank you.
Like I said, sducky, I don't know of any way to have two timers running on the same page without merging the two codebases in some way.
MPDev - you mentioned the two AJAX timer conflict. Does this apply to using the iSpy CMPS Module on the same CMPS page as a Shoutbox Module? I haven't attempted this yet but wonder if this is a known conflict that I guess i'll have to avoid.
MPDev
11-20-2006, 06:07 PM
I'm not familiar with the shoutbox modules; so I can't tell you one way or the other.
Great script, a must for moderators!
Installed!
I tried to make this script available ony to certain usergroups by trying this code:
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
if ( !$vbulletin->userinfo['userid'] )
{
print_no_permission();
}
if ( !$vbulletin->bbuserinfo['2'] )
{
print_no_permission();
}
but it did not seem to work. The code to prevent guests from viewing works fine, but the part for excluding only permitted user groups needs editing I guess.
Any ideas?
heynurse
11-22-2006, 02:35 PM
This is an awesome mod! Except, I got a problem, the page loads but it does not update with live results? I have to refresh to get updates :)
any ideas?
Is there a list of other hacks or settings that might conflict with this hack? thanks
UPDATE: I just removed my header and footer from the vaispy.php code and it's working fine, must of had some conflict :) Thanks for the rockin hack!
MPDev
11-24-2006, 11:59 AM
No, I don't have any kind of "list" going; sorry.
ubblite
12-01-2006, 02:53 AM
I have one request.
Since the cmps module for this hack is having problems, I think it would be very nice to have an option to display vbispy on the forumhome page.
SaN-DeeP
12-02-2006, 05:40 PM
Hello MPDev,
thanks for a very nice addon, I need to implement few changes listed below, if you can help me out.
Script is installed here http://forums.techarena.in/vaispy.php
1. How can i remove By column (which describes usernames)
2. Is there a way to link to /showthread.php?t=634312 instead of linking to showthread.php?p=2368180#post2368180 ?
(linking to original thread instead of postid)
3. A small bug if there is & in forum name
Example: Overclocking & Computer Modification (http://forums.techarena.in/forumdisplay.php?f=34)
this name appears as Overclocking & Computer Modification.
Thanks again.
This is an excellent modification, thank you.
Does anyone know what sort of affect this has on server load? I've got 11 copies of it open between 2 computers right now, and my load is still well under 1 (it's at .2 right now), but we've been having spikes of traffic lately that seem to make the load jump, and I don't want the spy to make it worse.
Dankness
12-05-2006, 07:15 PM
This is a execellent mod but lately iv been getting some weird DB errors maild to me from using this? Does anyone know why these errors are appearing all of a sudden?
Im usign VB 3.6.4 also
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT thread.*, post.pagetext AS preview, post.userid AS lastpuserid
FROM vb3thread AS thread
LEFT JOIN vb3deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN vb3post AS post ON(post.postid = thread.lastpostid)
WHERE open <> 10 AND thread.lastpostid > 43469
AND forumid NOT IN (0,49,50,51,22,40,136,163,32,23,31,38,43,48,56,112 ,134,113,114,115,116,117,118,119,122,123,124,125,1 26,127,128,129,130,120,131,132,133,)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 10;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND thread.visible = '1'
AND deletionlog.primaryid
Error Number : 1064
Date : Tuesday, December 5th 2006 @ 01:46:44 PM
Script : http://www.villu-reborn.com/vaispy.php?do=xml&last=43469&r=0.0840441166388669&_=
Referrer : http://www.villu-reborn.com/vaispy.php
IP Address : 67.126.202.236
Username : TOB
Classname : vB_Database
================================================== ===
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT *
FROM vb3session
WHERE sessionhash = 'bdce42f7e1d317b047a3dc7e49429ded'
AND lastactivity > 1165344136
AND idhash = '7b36de2b030fce6f3b1a836591791a87';
MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Tuesday, December 5th 2006 @ 01:58:20 PM
Script : http://www.villu-reborn.com/vaispy.php?do=xml&last=43471&r=0.49022190606534977&_=
Referrer : http://www.villu-reborn.com/vaispy.php
IP Address :
Username :
Classname : vB_Database
================================================== ===
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT *
FROM vb3session
WHERE sessionhash = '9d818bc112fde35ebc591b04907f1765'
AND lastactivity > 1165346474
AND idhash = 'ce5f7ee9179f6b9722a5610947e86ed5';
MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Tuesday, December 5th 2006 @ 02:36:33 PM
Script : http://www.villu-reborn.com/vaispy.php?do=xml&last=43474&r=0.8675544199068099&_=
Referrer : http://www.villu-reborn.com/vaispy.php
IP Address :
Username :
Classname : vB_Database
================================================== ===
Thank you for your time.
digital_sc4rz
12-08-2006, 12:35 PM
ThanX:cool:
tendo
12-08-2006, 03:47 PM
dope ! thx
I'm having a problem where my new posts aren't appearing. I've modified my code to only show 10 new items, and it fills it up. The problem is, there's no grabbing of new posts or the fade effect. Any ideas?
MPDev
12-12-2006, 07:46 PM
Did you almost modify the html to only have 10 rows?
WritersBeat
12-13-2006, 07:35 AM
Can anyone code a better way to export this into vbadvanced? The current one isn't working.
Trana
12-14-2006, 04:09 AM
Can anyone code a better way to export this into vbadvanced? The current one isn't working.
I wish. Current one does NOT work.
Expertu
12-15-2006, 06:43 AM
Problem here.
The query is going correctly, it has valid information in it:
http://yourconvo.com/forums/vaispy.php?do=xml
However, The actual page is not filling up with data.
http://www.yourconvo.com/forums/vaispy.php
I have the exact same problem. For the last 20 minutes I'm trying to figure out how to get the ispy.php to display new posts, and to display that fade effect.
Yes, I modified the javascript with the new file.
http://forum.seopedia.ro/ispy.php
The data appears ok : http://forum.seopedia.ro/ispy.php?do=xml but it won't display in the Spy page above.
HOWEVER, if i remove the $header, $navbar and $footer mentions in the PHP file, the Spy page works.
Any fixes ?
MPDev
12-15-2006, 11:07 AM
Without the header and footer in place, I have no way of checking to see what error may be causing the problem. Did you check your JavaScript console (in FF) to see what error might be throw up?
tansu
12-15-2006, 11:43 AM
is there a fix for "Who's Online" page?
Expertu
12-15-2006, 12:12 PM
I have reinserted those three variables.
http://forum.seopedia.ro/ispy.php
No JS errors in Firefox.
Expertu
12-15-2006, 12:13 PM
is there a fix for "Who's Online" page?
The fix is listed in the product's description:
Optional add-ons
Who's Online mod for this: https://vborg.vbsupport.ru/showthread.php?t=126209
MPDev, any ideea about my problem ?
Did you almost modify the html to only have 10 rows?
I edited a line under the grabbing of threads, and it seems to have limited it to only collect 10. I'll try fiddling with it some more and get back to you.
EDIT
No matter what I change, it won't grab any more posts:
http://www.thecarforum.net/forum/ignition.php
Code:
<?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 <> 20 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" : "1,20" );
if ( $subscribe == 1 )
{
$getthreads = $db->query_read("
SELECT subscribethread.subscribethreadid,
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 . "subscribethread AS subscribethread
INNER JOIN " . TABLE_PREFIX . "thread AS thread ON (subscribethread.threadid = thread.threadid)
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 subscribethread.userid = " . $vbulletin->userinfo['userid'] . "
AND thread.forumid NOT IN (0$blockforums)
AND thread.visible = 1
AND subscribethread.canview = 1
AND thread.lastpostid > $lastpostid
AND deletionlog.primaryid IS NULL
$datecut
ORDER BY thread.lastpost DESC LIMIT $limitq
");
}
else
{
$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)) {
$color = $color == 'alt1' ? 'alt2' : 'alt1';
$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']);
if ( $thread['lastpostid'] == $thread['firstpostid'] )
{
$etype = "New Thread";
}
else
{
$etype = "New Post";
}
// 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=\"_blank\" href=\"{$post_url}\">{$thread['title']}</a></strong>";
}
if ( $thread['preview'] )
{
$clip .= "<br />{$thread['preview']}";
}
$clip .= " ({$thread['views']} views, {$thread['replycount']} replies)";
if ( $thread['lastpuserid'] )
{
$poster_clip = "<a target=\"_blank\" href=\"member.php?u={$thread['lastpuserid']}\">{$thread['lastposter']}</a>";
}
$poster_clip .= "<br />{$thread['date']} {$thread['time']}";
if ( $thread['forum'] )
{
$where .= "<strong><a target=\"_blank\" href=\"forumdisplay.php?f={$thread['forumid']}\">{$thread['forum']}</a></strong>";
}
else
{
$where = "";
}
if (is_browser('opera'))
{
$prefetched .= <<<VAPRINT
<div id="row{$row}"><table cellpadding="3" cellspacing="0" border="0" width="100%"><tr><td width="20" class="$rowcolor smallfont" nowrap="nowrap" align="center">$etype</td><td class="$rowcolor smallfont" width="225" nowrap="nowrap" align="left">$poster_clip</td><td class="$rowcolor smallfont" width="80%">$clip</td><td class="$rowcolor smallfont" width="200" nowrap="nowrap" align="center">$where</td></tr></table></div>\n
VAPRINT;
}
else
{
$prefetched .= <<<VAPRINT
<tr id="row{$row}"><td class="$rowcolor smallfont" align="center"><div class="smallfont">$etype</div></td><td class="$rowcolor smallfont"><div class="smallfont">$poster_clip</div></td><td class="$rowcolor smallfont"><div class="smallfont">$clip</div></td><td class="$rowcolor smallfont" align="center"><div class="smallfont">$where</div></td></tr>\n
VAPRINT;
}
$row++;
if ( $thread['lastpostid'] > $highestid )
{
$highestid = $thread['lastpostid'];
}
}
}
if ( $row < 6 )
{
for( $x = $row; $x < 22; $x++ )
{
if (is_browser('opera'))
{
$prefetched .= <<<VAPRINT
<div id="row{$x}"></div>\n
VAPRINT;
}
else
{
$prefetched .= <<<VAPRINT
<tr id="row{$x}"><td class="$rowcolor smallfont" align="center"> </td><td class="$rowcolor smallfont"> </td><td class="$rowcolor smallfont"> </td><td class="$rowcolor smallfont" align="center"> </td></tr>\n
VAPRINT;
}
}
}
// 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] = 'Ignition';
$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>
$headinclude
<style type="text/css">
.spyfade1 div, .spyfade1 span,, .spyfade1 td, .spyfade1 img {
opacity:0.90;
filter:alpha(opacity=90);
-moz-opacity:0.90;
}
.spyfade2 div, .spyfade2 span, .spyfade2 td, .spyfade2 img {
opacity:0.80;
filter:alpha(opacity=80);
-moz-opacity:0.80;
}
.spyfade3 div, .spyfade3 span, .spyfade3 td, .spyfade3 img {
opacity:0.70;
filter:alpha(opacity=70);
-moz-opacity:0.70;
}
.spyfade4 div, .spyfade4 span, .spyfade4 td, .spyfade4 img {
opacity:0.50;
filter:alpha(opacity=50);
-moz-opacity:0.50;
}
.spyfade5 div, .spyfade5 span, .spyfade5 td, .spyfade5 img {
opacity:0.30;
filter:alpha(opacity=30);
-moz-opacity:0.30;
}
</style>
<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" type="text/javascript">
<!--
spymax = 25;
highestid = $highestid;
function pauseSpy() {
var playimg = document.getElementById("vaplay");
var pauseimg = document.getElementById("vapause");
playimg.src = "images/misc/play_up.gif";
playimg.alt = "Click to Play";
pauseimg.src = "images/misc/pause_down.gif";
pauseimg.alt = "Paused...";
pause();
}
function playSpy() {
var playimg = document.getElementById("vaplay");
var pauseimg = document.getElementById("vapause");
playimg.src = "images/misc/play_down.gif";
playimg.alt = "Playing...";
pauseimg.src = "images/misc/pause_up.gif";
pauseimg.alt = "Click to Pause";
resume();
}
function pause() {
play = 0;
}
function resume() {
play = 1;
}
// -->
</script>
<title>Ignition - Accel - the car forum .net </title>
</head>
<body onload="spyinit();">
$header
$navbar
<table width="90%" align="center"><tr><td width="50%" align="left"><input type="checkbox" id="subscribe" value="1"> subscribed threads only</td>
<td width="50%" align="right">
<img id="vaplay" src="images/misc/play_down.gif" style="cursor:pointer;" alt="Play" title="Play Comments" onclick="playSpy();" />
<img id="vapause" src="images/misc/pause_up.gif" style="cursor:pointer;" alt="Pause" title="Pause Comments" onclick="pauseSpy();" />
</td></tr></table>
<br />
VAPRINT;
if (is_browser('opera'))
{
$output .= <<<VAPRINT
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<tr><td width="20" class="tcat" nowrap="nowrap" style="height:25px;"> </td>
<td class="tcat" width="225" nowrap="nowrap" style="height:25px;">By</td>
<td class="tcat" width="80%" style="height:25px;">Thread/Post</td>
<td class="tcat" width="200" nowrap="nowrap" style="height:25px;">Forum
</tr>
<tr><td colspan="4" class="alt1">
$prefetched
<div id="row21" style="display:none;" class="spyfade1"></div>
<div id="row22" style="display:none;" class="spyfade2"></div>
<div id="row23" style="display:none;" class="spyfade3"></div>
<div id="row24" style="display:none;" class="spyfade4"></div>
<div id="row25" style="display:none;" class="spyfade5"></div>
</td></tr>
</table>
VAPRINT;
}
else
{
$output .= <<<VAPRINT
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" id="spy_table">
<thead>
<tr align="center"><td class="thead" width="100">Event</td><td class="thead" width="190">By</td><td class="thead">Thread/Post</td><td class="thead" width="190">Forum</td></tr>
</thead>
<tbody class="alt1">
$prefetched
<tr id="row21" style="display: none;" class="spyfade1"><td align="center"> </td><td> </td><td> </td><td align="center"> </td></tr>
<tr id="row22" style="display: none;" class="spyfade2"><td align="center"> </td><td> </td><td> </td><td align="center"> </td></tr>
<tr id="row23" style="display: none;" class="spyfade3"><td align="center"> </td><td> </td><td> </td><td align="center"> </td></tr>
<tr id="row24" style="display: none;" class="spyfade4"><td align="center"> </td><td> </td><td> </td><td align="center"> </td></tr>
<tr id="row25" style="display: none;" class="spyfade5"><td align="center"> </td><td> </td><td> </td><td align="center"> </td></tr>
</tbody>
</table>
VAPRINT;
}
$output .= <<<VAPRINT
$footer
VAPRINT;
echo $output;
?>
Expertu
12-16-2006, 10:55 AM
Without the header and footer in place, I have no way of checking to see what error may be causing the problem. Did you check your JavaScript console (in FF) to see what error might be throw up?
Hey MP... Any ideeas ? You have my replies above.
MPDev
12-18-2006, 05:26 PM
No matter what I change, it won't grab any more posts
You have spymax set to 25 but then you removed the first 20 rows to your html, but left the last 5 - not numbered sequentially from 1.
You need to edit your files properly if you want it to work other than it was designed.
MPDev
12-18-2006, 05:27 PM
Hey MP... Any ideeas ? You have my replies above.
Turn off your snow effect; you cannot have more than one timer running on a page at once.
Doglet
12-18-2006, 09:55 PM
I am missing something here.
I have installed it and if I put the url into my browser, it is working.
BUT. How do you open it from the forums. Does a link need to go in somewhere and if so what and where?
Doglet
12-18-2006, 10:29 PM
Also, when I use it to take me to a new post, the only way I can get back to iSpy is to use the browser's back arrow and the post that I read still shows as unread, even if I refresh the screen.
I must be doing this wrong. Any hints?
MPDev
12-19-2006, 12:39 AM
Sure, put a link to it in your navbar; otherwise people won't know how to get to it.
smiralles
12-21-2006, 12:49 AM
ok so i put a link in hte nav bar but it seems to get stuck every tome more then 1 person is using it! can u tell me y pls? thanks!
http://www.electronicguru.net/forum/vaispy.php
MPDev
12-21-2006, 11:01 PM
You have to be registered to see it (so I cant see it); but the number of users viewing it doesn't have any bearing on its ability to do what it does.
Yes, forum permissions are checked. You can also exclude specific forums by changing the line:
// Do not list these forums even if they have permissions (test categories, etc)
$blockforums = "26,13";
in vaispy.php - I use this to block test post forums and such.
Can you add this to the options for the mod?
So you don't have to manually edit the file :)
ninjashoes
01-01-2007, 11:10 AM
-When I first submitted my site, http://ninjashoes.net to vbispy.com there was no Sport section so I put it in Health and Fitness, theres a sport section now but I dont see how to change category. Can you change this for me?
-Do people who view vbispy.com show up on my online users list? The other day there were 500 people viewing vbispy, were these people actually on my site or at vbispy.com?
nicker
01-01-2007, 10:18 PM
is there any way to show this permanently on the forum home page?
I don't have cmps and would like it on the forum.
Great hack, have clicked on installed.
MPDev
01-02-2007, 05:52 PM
Can you add this to the options for the mod?
So you don't have to manually edit the file :)
Currently there is no admin section; but if I add one, I'd be glad to put it there.
-When I first submitted my site, http://ninjashoes.net to vbispy.com there was no Sport section so I put it in Health and Fitness, theres a sport section now but I dont see how to change category. Can you change this for me?
-Do people who view vbispy.com show up on my online users list? The other day there were 500 people viewing vbispy, were these people actually on my site or at vbispy.com?
Okay, done. No, users are not registered as viewing on your site - although our bot that checks your site every 5 minutes or so will be shown as a guest.
is there any way to show this permanently on the forum home page?
I don't have cmps and would like it on the forum.
Great hack, have clicked on installed.
Modify your navbar template and insert a link in there. I have the code in bold added into a cell where I want it to display:
<td class="vbmenu_control" align="center">
<a href="/forum/vaispy.php">Live Feed</a>
You may need to modify your path accordingly.
GamerJunk.net
01-05-2007, 12:30 AM
Great mod but I think it would be more effective if it was embedded in a page rather than being on a separate page.
Trana
01-05-2007, 05:21 AM
Great mod but I think it would be more effective if it was embedded in a page rather than being on a separate page.
Thus the need for someone who knows how this works to resolve the problems with the CMPS module version of this hack.
ngaiox
01-06-2007, 05:27 AM
Wait, I don't get it. What does this do? Does it show a post or thread as soon as it is added? Kind of like a chatroom?
emiratesmac
01-06-2007, 06:32 AM
Awesome! Thanks! Just uploaded and it works great. We don't have that many users that it makes much sense yet but we're growing :cool:
Now if you could make a similar thing for admin-use where it shows users logging in and out, what thread they're in, what they're doing, etc. If that exists, tell me where, please.
This is a great feature!
One thing I'm puzzled about - when viewed by a logged-in user, does it distinguish unread from read posts? It seems to display them all. I'd like to see the unread posts highlighted. I'd say this is pretty important considering why a forum member would use a realtime feed.
Even better, I'd like a checkbox 'unread posts only' (like the existing 'subscribed threads only').
How possible are these requests?
Joe
Also, when I use it to take me to a new post, the only way I can get back to iSpy is to use the browser's back arrow and the post that I read still shows as unread, even if I refresh the screen.
I must be doing this wrong. Any hints?
Doglet, did you get it to work the way you wanted?
TrikkeTalk
01-11-2007, 05:03 PM
Hi,
I've been here several times and the question I ask is aready asked several times before and completely ignored by everyone:confused: .
I installed this hack and it works great, once logged in to my forums (ie or ff) it doesn't work anymore?? Is there a way to solve this problem, just ignoring it doesn't mean this problem is not exitsting. Please try to help me out!!!
Thanks in advance!!
MPDev
01-17-2007, 12:04 AM
Does your header have some kind of conditional code that only runs when logged in which might interfere with the polling for new posts?
MPDev
01-17-2007, 12:05 AM
Wait, I don't get it. What does this do? Does it show a post or thread as soon as it is added? Kind of like a chatroom?
Go to the example or vBISpy.Com (http://www.vbispy.com) to see how it works. It's a live feed of new posts/threads.
Lionel
01-17-2007, 03:52 PM
A stupid question. Can this be used for one specific thread? We are doing live updates of soccer games and I would love to have a mean to input data from same thread
MPDev
01-18-2007, 01:24 PM
Off the top of my head; I'd say it would be possible if you modified the query pulling for new threads to use a specific thread-id.
kungfujesus
01-19-2007, 10:28 PM
2. Is there any way to show the entire post in the thread/post column? It shows a fair amount but cuts off at a certain point.
2. You could modify the vbispy.php application to change the string truncation occurring.
What do you change to do this?
MPDev
01-20-2007, 06:05 PM
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title($thread['preview'], 200));
line 158 in vaispy.php - the 200 is the characters it's trimming from.
This is a execellent mod but lately iv been getting some weird DB errors maild to me from using this? Does anyone know why these errors are appearing all of a sudden?
Im usign VB 3.6.4 also
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT thread.*, post.pagetext AS preview, post.userid AS lastpuserid
FROM vb3thread AS thread
LEFT JOIN vb3deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN vb3post AS post ON(post.postid = thread.lastpostid)
WHERE open <> 10 AND thread.lastpostid > 43469
AND forumid NOT IN (0,49,50,51,22,40,136,163,32,23,31,38,43,48,56,112 ,134,113,114,115,116,117,118,119,122,123,124,125,1 26,127,128,129,130,120,131,132,133,)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 10;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND thread.visible = '1'
AND deletionlog.primaryid
Error Number : 1064
Date : Tuesday, December 5th 2006 @ 01:46:44 PM
Script : http://www.villu-reborn.com/vaispy.php?do=xml&last=43469&r=0.0840441166388669&_=
Referrer : http://www.villu-reborn.com/vaispy.php
IP Address : 67.126.202.236
Username : TOB
Classname : vB_Database
================================================== ===
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT *
FROM vb3session
WHERE sessionhash = 'bdce42f7e1d317b047a3dc7e49429ded'
AND lastactivity > 1165344136
AND idhash = '7b36de2b030fce6f3b1a836591791a87';
MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Tuesday, December 5th 2006 @ 01:58:20 PM
Script : http://www.villu-reborn.com/vaispy.php?do=xml&last=43471&r=0.49022190606534977&_=
Referrer : http://www.villu-reborn.com/vaispy.php
IP Address :
Username :
Classname : vB_Database
================================================== ===
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT *
FROM vb3session
WHERE sessionhash = '9d818bc112fde35ebc591b04907f1765'
AND lastactivity > 1165346474
AND idhash = 'ce5f7ee9179f6b9722a5610947e86ed5';
MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Tuesday, December 5th 2006 @ 02:36:33 PM
Script : http://www.villu-reborn.com/vaispy.php?do=xml&last=43474&r=0.8675544199068099&_=
Referrer : http://www.villu-reborn.com/vaispy.php
IP Address :
Username :
Classname : vB_Database
================================================== ===
Thank you for your time.
I am getting similar or the same database errors once in awhile. Mysql has stopped/crashed 2 times, about a week apart. :confused:
zetetic
01-21-2007, 01:53 PM
One thing I'm puzzled about - when viewed by a logged-in user, does it distinguish unread from read posts? It seems to display them all. I'd like to see the unread posts highlighted. I'd say this is pretty important considering why a forum member would use a realtime feed.
Even better, I'd like a checkbox 'unread posts only' (like the existing 'subscribed threads only').
How possible are these requests?
I'm curious about this too. Any idea, MPDev?
MPDev
01-22-2007, 04:02 PM
No, I do not try to determine if a thread has been read before or not.
Thus the need for someone who knows how this works to resolve the problems with the CMPS module version of this hack.
Can't echo my agreement with this enough! The CMPS module was working before one of the revisions and for some reason does not work anymore... it was an AMAZING module, but has since become MONTHS outdated.... a return to possibly revive this feature by someone who understands the code would make many of us happy here!
khelll
01-22-2007, 10:26 PM
is there a way to integrate it with the index page of the forum? under the nav bar for example
MaestroX
01-29-2007, 05:16 PM
For some reason mine isn't "real time" there has been threads written just now (7:15) and the "latest" thread it shows is 1:11.
A problem with my settings?
Thanks
vivamexico55
01-29-2007, 07:27 PM
This is an incredible mod, well done!
Great mod but I think it would be more effective if it was embedded in a page rather than being on a separate page.
No I prefer it like this in a separate page, most vbulletin forums are super cluttered already.
ubblite
01-31-2007, 10:55 AM
If a user is on my forumhome page, it says "Viewing ISpy" under who's online for some reason. I have CMPS but I don't know if that makes a difference. Any fix for this?
MPDev
02-01-2007, 11:43 AM
For some reason mine isn't "real time" there has been threads written just now (7:15) and the "latest" thread it shows is 1:11.
A problem with my settings?
Thanks
Check your JavaScript Console for errors (using Firefox anyways); assuming you didn't change anything it should work fine. Trick is when people start changing stuff, they usually break it because they don't do everything they need to.
installed working like charm :)
Niber
02-12-2007, 07:36 PM
Thanks so much for the hack! We've been running it a while, and it's awesome.
One question, how do you setup multiple sites like you vBISpy Network page has?
MPDev
02-13-2007, 05:48 PM
It's not a simple thing to do; the reason I built an entire site out of it.
Niber
02-13-2007, 08:56 PM
It's not a simple thing to do; the reason I built an entire site out of it.
Ah! Okay.. I noticed another site with it (http://www.uberguilds.org/spy/) and thought maybe it wasn't overly complicated.
Thanks for the clarification.
MPDev
02-15-2007, 11:22 AM
That's not my mod; looks like someone did their own version for their own use.
matt3830
02-15-2007, 06:18 PM
Any solution to the Who's Online page for this mod? Right now it's displaying unknown location.
Tralala
02-15-2007, 06:42 PM
Ah! Okay.. I noticed another site with it (http://www.uberguilds.org/spy/) and thought maybe it wasn't overly complicated.
Thanks for the clarification.
Oooh, I have to say, I love-love-love how that one fades the cell backgrounds to darker towards the end of the list. Now that looks very slick, makes the "live thread scroll" look all the more fresh and dynamic.
MPDev
02-15-2007, 07:40 PM
This mod does that as well.... Example: http://www.viperalley.com/forum/vaispy.php
Tralala
02-16-2007, 12:33 AM
This mod does that as well.... Example: http://www.viperalley.com/forum/vaispy.php
Huh, is that so?! :D Nice. I'm not seeing that effect on my forum though, yet vBISpy is running perfectly (save for the "Who's Online" issue, mentioned above.)
Does the fade require a very dark style? Both of mine are pretty light/white.
superluks
02-16-2007, 01:55 AM
I wanna translate or remove (5435 views, 1112 replies) there, i translated it in vaispy.php but new posts still get views and replys text in english..
ubblite
02-16-2007, 04:11 AM
Any solution to the Who's Online page for this mod? Right now it's displaying unknown location.
Huh, is that so?! :D Nice. I'm not seeing that effect on my forum though, yet vBISpy is running perfectly (save for the "Who's Online" issue, mentioned above.)
Make that 3 of us looking for the Who's Online fix. I mentioned it quite a while back.
Um, I should probably have been more specific. The Who's Online problem I have says the user is viewing vbispy when he's on the forumhome page. The WOL fix for this mod is something different. So I'm hoping our issue is resolved.
tei727
02-17-2007, 12:14 PM
i want to limit acess only to certain usergroups. how?
Tralala
02-17-2007, 01:57 PM
Um, I should probably have been more specific. The Who's Online problem I have says the user is viewing vbispy when he's on the forumhome page. The WOL fix for this mod is something different. So I'm hoping our issue is resolved.
Wow, that's weird. Mine never says a user is viewing vbispy, even when they actually are. Even with the WOL fix for this installed. I also tried Andreas' Add Custom WOL Locations (https://vborg.vbsupport.ru/showthread.php?t=83247) hack, and got the same result.
The WOL page consistently shows whatever page the user was on right before they went into VBISpy.
pdblizzard
02-23-2007, 03:23 PM
Great mod, my people love it. I'm using it on my vbA CMPS.
question: I want to limit the number of threads to display to 5 instead of the stock 10.
I changed the LIMIT in the SQL query, but how do I remove the extra blank rows at the bottom?
OR alternatively -- if I wanted to limit it to just the last 10 in the last 60 minutes, how do I eliminate the additional rows/lines at the end? (I know how to change the XX seconds/minutes.)
Just need to get rid of those additional lines either way...
Thanks in advance!
Capper5016
02-25-2007, 06:59 PM
Very nice mod....but good lord, I see 8 instances of people asking about embedding this in the forum home page (forum index), and its ignored each time.....
I think it would work awesome to have the last ten posts displayed on their forum home page in real time (I'd like to have something like this between the navbar and first forum, and on my site's main page).......
please, someone post some code to give us the option.
Edit: I am also having a lot of people complain that this is crashing FF after 15-20 minutes
vietConnecting
02-26-2007, 06:04 PM
So cool
RedGTiVR6
02-26-2007, 07:49 PM
Very cool mod...clicked install and rated.
Just a quick question. I'm trying to add a link to this in the navbit for our forum...next to new posts.
When I go to add a new phrase to call when editing the navbit template, what do I need to set the phrase type and product to? I ask because I'm not seeing ispy listed in these.
Any insight?
cash7c3
02-27-2007, 06:06 AM
hey sorry if this is a bit off topic but does anyone know how i might make this into a rss fedd?
Capper5016
02-27-2007, 10:58 AM
Very nice mod....but good lord, I see 8 instances of people asking about embedding this in the forum home page (forum index), and its ignored each time.....
I think it would work awesome to have the last ten posts displayed on their forum home page in real time (I'd like to have something like this between the navbar and first forum, and on my site's main page).......
please, someone post some code to give us the option.
Edit: I am also having a lot of people complain that this is crashing FF after 15-20 minutes
bump....anyone?
RedGTiVR6
03-01-2007, 10:26 PM
:(
I was wanting to put a link for this in our navbits...no dice...:(
Damian
03-02-2007, 01:59 AM
:(
I was wanting to put a link for this in our navbits...no dice...:(
So what is stopping you from doing that? :confused:
RedGTiVR6
03-02-2007, 02:09 AM
So what is stopping you from doing that? :confused:
Very cool mod...clicked install and rated.
Just a quick question. I'm trying to add a link to this in the navbit for our forum...next to new posts.
When I go to add a new phrase to call when editing the navbit template, what do I need to set the phrase type and product to? I ask because I'm not seeing ispy listed in these.
Any insight?
This...
aj8690
03-02-2007, 07:06 PM
This is nice. Is there any way to make it display the vbseo urls if you have vbseo? That would be awesome!
Mine is showing new posts by people on "Tachy Goes to Coventry". It is possible to stop that?
aquariumpros
03-06-2007, 02:41 PM
Mine is showing new posts by people on "Tachy Goes to Coventry". It is possible to stop that?
It shows any threads you have the ability to see...so being an Admin/Mod you are able to 'see' "Tachy Goes to Coventry" threads...other regular members are NOT able to see them.
Same with any forums that are permission-based (ie. Moderator forums/etc.).
It shows any threads you have the ability to see...so being an Admin/Mod you are able to 'see' "Tachy Goes to Coventry" threads...other regular members are NOT able to see them.
Same with any forums that are permission-based (ie. Moderator forums/etc.).
It is showing them to my regular account. When I click them I get invalid thread, but I can see it on the vaispy page.
pdblizzard
03-06-2007, 05:24 PM
I believe that's a function of how tachy works (or doesn't work?) My tachy member's posts always show on the "last poster" in the forum list. Click and you get "invalid thread specified". question: I want to limit the number of threads to display to 5 instead of the stock 10.
I changed the LIMIT in the SQL query, but how do I remove the extra blank rows at the bottom?
OR alternatively -- if I wanted to limit it to just the last 10 in the last 60 minutes, how do I eliminate the additional rows/lines at the end? (I know how to change the XX seconds/minutes.)
Just need to get rid of those additional lines either way...
Anyone want to help me with this? Pretty please:rolleyes:
Michael Biddle
03-06-2007, 06:39 PM
great mod :)
cupra
03-06-2007, 09:26 PM
SUPER - install!!!
cupra
03-06-2007, 09:49 PM
i have a small issue, im using the Hebrew language on my vb forum.
the vBISpy work great, i edit - vaispy.php and translate the eng titles.
i have hard time to find the place that i can translate - " views" and "replies".
i find that line in vaispy.php
$clip .= " ({$thread['views']} views, {$thread['replycount']} replies)";
and translate the views and replies text to Hebrew , and its work great, but for some reason the first
posts that show in vBISpy are still in English, and i can't find ware is my issue
and ware is the line that refer to the views and replies in the first lines ?
RedGTiVR6
03-07-2007, 07:56 PM
still no help...:(
RedGTiVR6
03-08-2007, 01:01 PM
I'm gathering that this mod is no longer supported since the last post in this thread by the coder was on Feb 15th?
Anyone know for sure?
I'm trying to figure out how to get a new page to open up when you click on a link instead of the page changing to the link.
Alfa1
03-08-2007, 08:35 PM
Does this exclude threads the user has seen, like vb's 'new posts' does?
aquariumpros
03-08-2007, 08:43 PM
Does this exclude threads the user has seen, like vb's 'new posts' does?
No.
Chadi
03-09-2007, 10:49 PM
I am suddenly getting this after upgrading to 3.6.5
Parse error: syntax error, unexpected T_STRING in /home/user/public_html/vaispy.php(337) : eval()'d code on line 1
johnmont
03-13-2007, 02:34 AM
I can't seem to figure this out. I see several areas that impact (or could impact) the number of posts. But to get the number down to 7 shown, I seem to mess everything up.
Here is what I see that could change -- if I want to show 7 posts -- how should I change this?:
line 86:
$limitq = ( isset($_REQUEST['do']) ? "20" : "5,20" );
line 290:
if ( $row < 20 )
{
for( $x = $row; $x < 21; $x++ )
line 380:
spymax = 25;
Confused
03-13-2007, 10:14 AM
When the forum section has an & in it - it's displaying & in the Forum column.
MPDev
03-13-2007, 11:27 AM
I'm trying to figure out how to get a new page to open up when you click on a link instead of the page changing to the link.
You would add the link to your navbar template link any other link.
MPDev
03-13-2007, 11:28 AM
I am suddenly getting this after upgrading to 3.6.5
Parse error: syntax error, unexpected T_STRING in /home/user/public_html/vaispy.php(337) : eval()'d code on line 1
Did you modify your vaispy.php script (try an unmodified one); I haven't updated yet to .5 but will try to do so shortly.
johnmont
03-13-2007, 01:24 PM
As an fyi....
I installed the spy files on a fresh install of 3.6.5 and it worked beautiful out of the gate
Chadi
03-16-2007, 05:35 AM
I have not modified anything with this hack. I just re-uploaded all files, same error on top
Parse error: syntax error, unexpected T_STRING in /home/user/public_html/vaispy.php(337) : eval()'d code on line 1
dholt
03-17-2007, 08:42 AM
As an fyi....
I installed the spy files on a fresh install of 3.6.5 and it worked beautiful out of the gate
Dito :up:
jazde86
03-17-2007, 05:53 PM
For XHTML valid page, do this:
Search for (375):
<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" type="text/javascript">
Replace with:
<script type="text/javascript" src="clientscript/va_prototype.js"></script>
<script type="text/javascript" src="clientscript/va_effects.js"></script>
<script type="text/javascript" src="clientscript/va_spy.js"></script>
<script type="text/javascript">
Search for (470):
$footer
Add above:
</body>
</html>
Tralala
03-17-2007, 11:04 PM
FWIW, I did the above (exactly) and it broke my vBISpy. Reverted to my backup for now...
Chadi
03-19-2007, 01:45 AM
I have not modified anything with this hack. I just re-uploaded all files, same error on top
Parse error: syntax error, unexpected T_STRING in /home/user/public_html/vaispy.php(337) : eval()'d code on line 1
Could someone please help me on this? Thanks
tanyeri24
03-19-2007, 01:54 AM
In my modified standart style this addon doesnt work. But in unmodified styles its work.
In one of my templates I have did a crap mistake its hard to find it out.. :(
edit: ok i found the template which causes.. Navbar. But i have much individual html codes there, who makes problem dunno...
michaelsilvia
03-20-2007, 11:35 PM
Is there away to take in more than one forum like vBIspy Network? I 6+ forums and would like to feed two of them together.
Mike
voter
03-28-2007, 11:13 AM
Nice mod.
But please, use $vbphrase[] Variables to make it by default compatible to non Englisch Forums.
The standart phrases comming with any vbulleing could be simply used to change HardWriten Names of Tables like "Event" "Forum" ....
Here the ones I used
<td class="thead">$vbphrase[event]</td>
<td class="thead">$vbphrase[posted_by]</td>
<td class="thead">$vbphrase[thread]/$vbphrase[post]</td>
<td class="thead">$vbphrase[forum]</td>
Invalid ID
03-28-2007, 03:15 PM
How can I add it's link on Navbar?
Chadi
04-02-2007, 11:43 PM
I am suddenly getting this after upgrading to 3.6.5
Parse error: syntax error, unexpected T_STRING in /home/user/public_html/vaispy.php(337) : eval()'d code on line 1
Any help appreciated.
funkmeister
04-03-2007, 02:59 AM
When the forum section has an '&' in it - it's displaying & in the Forum column.Me too - how to fix this please? Thanks.
MPDev
04-06-2007, 12:58 PM
Look for the htmlspecialchars() call in the vaispy.php script and remove it from the forums variable. This seems to be server dependent and not always a required change.
MPDev
04-06-2007, 12:59 PM
Any help appreciated.
Looks like an error in one of your templates; I dont know that line offhand to tell you which template, but look at the line of the file to tell you which one.
Chadi
04-06-2007, 01:06 PM
Line 337 from vaispy.php
eval('$headinclude = "' . fetch_template('headinclude') . '";');
My header include template:
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $vboptions[templateversion]" />
<if condition="$show['threadinfo']">
<meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
<meta name="description" content="$foruminfo[forumdescription]. <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
<else />
<if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[forumkeywords],$threadinfo[title],$vboptions[keywords]" />
<meta name="description" content="$foruminfo[forumdescription]. <if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if>
</if>
<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/glossary_crosslinking.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
<script type="text/javascript">
document.cookie = "psistats_screenwidth = " + self.screen.width;
document.cookie = "psistats_screenheight = " + self.screen.height;
document.cookie = "psistats_screendepth = " + self.screen.colorDepth;
</script>
<if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&forumids=$foruminfo[forumid]" />
</if>
</if>
<script type="text/javascript" src="/highslide/highslide.js"></script>
<script type="text/javascript">
// remove the registerOverlay call to disable the controlbar
hs.registerOverlay(
{
thumbnailId: null,
overlayId: 'controlbar2',
position: 'bottom left',
hideOnMouseOut: true,
opacity: 0.75
}
);
hs.graphicsDir = '/highslide/graphics/';
hs.outlineType = 'rounded-white';
window.onload = function() {
hs.preloadImages(5);
}
</script>
<link rel="stylesheet" href="/highslide/highslide.css" type="text/css" media="screen" />
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.