PDA

View Full Version : Miscellaneous Hacks - Digital Point Spy


Pages : [1] 2

digitalpoint
05-26-2010, 10:00 PM
About
This is a Digg-style spy for seeing what's going on in your forum in realtime.

This is something I originally made (http://forums.digitalpoint.com/showthread.php?t=101069) about 4 years ago. Now that I rewrote it for vBulletin 4 (it also now uses the bundled YUI for animation), I decided to also wrap it up as a product package and release it for the world to use.

Installation
Put the spy.php file in your forum folder.
Put the digitalpoint_spy.js file in your clientscript folder.
Install the product-digitalpoint_spy.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product
You can see a live version in action here:
http://forums.digitalpoint.com/spy.php


1.1.0 Update
Moved JavaScript to external file (works around template parsing bug with early versions of vBulletin 4.0.x).
XML generation is done with vBulletin's XML Builder class (let it deal with weird characters).
Switched JavaScript library to from YUI to jQuery (for an end user, it means better animations).
Changed do=xml to do=feed (works around servers that are overly protective and think they are trying to be hacked and blocking the request).

ProFifaLeagues
05-27-2010, 09:53 PM
Tagged looks good,I will be trying this in the morning!
Top work

civil78
05-27-2010, 10:19 PM
Nice work but what about the CPU load, ok probably it uses AJAX but if too many people use this page maybe the load will be increased.

digitalpoint
05-27-2010, 10:23 PM
CPU load is minimal. It uses it's own tracking table for recent events so that SQL queries are kept very simple. We run this on a large, high traffic forum and the server load between running it and not running it isn't something you can tell the difference between.

Also, if you want to test the server load manually, just go to spy.php?do=xml and reload as fast as you can (or setup a process to hit it continuously). That is the underlying AJAX call used to get new events.

anthony parsons
05-27-2010, 10:40 PM
Outstanding Shawn... look forward to installing a little later.

leemartin
05-27-2010, 10:45 PM
Thanks interesting mod

AURFSCAN
05-27-2010, 11:16 PM
hi, how is this different to vbispy?

digitalpoint
05-27-2010, 11:19 PM
1. It works with vBulletin 4.

2. vbispy was made a few months after mine and "borrowed" my code, so mine was actually the original. Beyond that, I don't know... I made my original version before vbispy existed, so I never installed or downloaded it to compare.

Brandon Sheley
05-28-2010, 12:20 AM
Nice Release!

sulasno
05-28-2010, 01:54 AM
tagged and thanks

can viewing be restricted to a certain group?

digitalpoint
05-28-2010, 02:54 AM
There aren't currently group permissions, although it does automatically filter stuff that the user wouldn't have access to see (if they don't have access to a certain forum, they don't see new threads/posts within it).

SBoards
05-28-2010, 03:01 AM
nice job... tagging for after the holiday

ChopSuey
05-28-2010, 04:08 AM
Wow Shawn you actually released a modification! Here :D Looking forward to more if you have the time!!!
Thanks i'll install this tonight!

teenage.vn
05-28-2010, 05:58 AM
I tried to install it but when tried to access the page, I got 500 error ...

Thanks for this great mod and am looking forward to hearing the feedback :( ...

---Updated---

Oh sorry, its a blank page ... not 500 error, please take a look

digitalpoint
05-28-2010, 07:22 AM
What's the URL?

DragonBlade
05-28-2010, 09:18 AM
Perhaps show last 10ish actions on a new load? Looks quite empty until the new stuff comes in :P

EDIT: Ah nevermind. It does have this feature :D

Poppet
05-28-2010, 10:06 AM
Excellent, it works a treat :) Marked and nominated...

Boofo
05-28-2010, 10:37 AM
Does this work with all browsers now? I use Opera 10.

ChopSuey
05-28-2010, 12:20 PM
Pretty sure it works with all browsers :)

Boofo
05-28-2010, 01:37 PM
I was going by what they said on the site but that post was from a while back.

Kolbi
05-28-2010, 05:06 PM
nice...

civil78
05-28-2010, 08:33 PM
CPU load is minimal. It uses it's own tracking table for recent events so that SQL queries are kept very simple. We run this on a large, high traffic forum and the server load between running it and not running it isn't something you can tell the difference between.

Also, if you want to test the server load manually, just go to spy.php?do=xml and reload as fast as you can (or setup a process to hit it continuously). That is the underlying AJAX call used to get new events.

Thanks for the informations, I will test it :).

Boofo
05-28-2010, 08:42 PM
Thanks for the informations, I will test it :).
Please let us know what you find out. ;)

teenage.vn
05-29-2010, 05:44 AM
What's the URL?

http://forum.teenage.vn/spy.php

Here we go, please check it out ...

I have installed the xml file as well ...

carubmun
05-29-2010, 08:32 AM
I currently use the iSpy someone else worked up, i got it working alright with vb4 here. (http://www.dailysportspages.com/forums/backpage.php)

Im wondering if your version can be deployed inside another page, not have it be its own separate page is it currently works.
I want to put it inside a tab, or maybe even on straight up on forumhome.
Would that be possible?

digitalpoint
05-29-2010, 04:41 PM
http://forum.teenage.vn/spy.php

Here we go, please check it out ...

I have installed the xml file as well ...Looks like maybe the 2 templates it installs didn't get installed or something? Do you have a template named "SPY" in your template system?

I currently use the iSpy someone else worked up, i got it working alright with vb4 here. (http://www.dailysportspages.com/forums/backpage.php)

Im wondering if your version can be deployed inside another page, not have it be its own separate page is it currently works.
I want to put it inside a tab, or maybe even on straight up on forumhome.
Would that be possible?In the current form, no. But something similar (and some other stuff) is something I was already playing around with internally for a future version.

carubmun
05-29-2010, 09:22 PM
In the current form, no. But something similar (and some other stuff) is something I was already playing around with internally for a future version.

Good to know.
Im guessing there is no minor adjustments that can be made to this in order to make it appear within a particular page and not only on its own page.

Since you plan on expanding on it, may i give another suggestion...
I find that it would work very nicely if it could be harnessed in a way similar to a "recent activity" or "latest posts" type widget.
Except that this one appears in real time while the others are pretty much static.
What would be needed most for that is to be able to add in which forums to include.
The iSpy mod allows you to add in which forums to exclude, nice option... but a real pain in the ass when you have an incredibly large amount of forums and subforums.
And having it work as a widget would be nice too :D

digitalpoint
05-29-2010, 11:28 PM
A widget block was already planned as part of the "some other stuff" statement.

As far as filtering forums, you can do it based on subscribed forums already.

goran424
05-30-2010, 01:58 PM
I installed, tried everything but just doesn't work. Keep getting following error:

Parse error: syntax error, unexpected '{', expecting ')' in /home/ghostrider/domains/ghostriders-thailand.com/public_html/forum/includes/class_core.php(4040) : eval()'d code on line 32

I'm using vBulletin 4.0.2 Patch Level 4 if that means anything.

digitalpoint
05-30-2010, 06:25 PM
I installed, tried everything but just doesn't work. Keep getting following error:

Parse error: syntax error, unexpected '{', expecting ')' in /home/ghostrider/domains/ghostriders-thailand.com/public_html/forum/includes/class_core.php(4040) : eval()'d code on line 32

I'm using vBulletin 4.0.2 Patch Level 4 if that means anything.I suspect it's related to this vBulletin bug (http://www.vbulletin.com/forum/project.php?issueid=34176) that was fixed in 4.0.3 (vBulletin versions before 4.0.3 parse some JavaScript in templates incorrectly). To get around it for an old version of vB, you could probably change the function play_pause() in the SPY template to this:

function play_pause() {
var label = new Array('{vb:rawphrase click_to_continue}', '{vb:rawphrase click_to_pause}');
play = Math.abs(1-play);
document.getElementById("play_pause").innerHTML = label[play];
}
Basically adding annoying noparse tags all over the place to tell the parser how to actually parse it. The better solution would be to upgrade to vBulletin 4.0.3 since it can parse templates properly.

I didn't test that hack since I don't have an old version of vBulletin installed, but it should work (although I'm not sure if there are other areas of the template it may not be able to parse properly).

FARES_SAUDI
05-30-2010, 08:53 PM
Does not work with me
The question of where I can control the product did not find it in your options

digitalpoint
05-30-2010, 10:59 PM
Does not work with me
The question of where I can control the product did not find it in your optionsWhat is the URL for your forum?

And what exactly are you trying to "control"?

FARES_SAUDI
05-30-2010, 11:44 PM
I've installed on a trial basis and this shows that
http://img72.imageshack.us/img72/2688/531201034209am.png
And what exactly are you trying to "control"?
yes i mean how can I control the presentation and the exclusion of certain categories

digitalpoint
05-31-2010, 12:00 AM
It looks like it would if you had no events to display. Has anything happened in your forum since you installed it?

There is not a global filtering system... the user can filter it based on their subscribed forums if they wish. As far as changing the "presentation", you can modify the template I suppose.

New Joe
05-31-2010, 04:01 AM
It looks just the same as the 'iSpy' mod.
Is there any difference between that one and your Mod?

carubmun
05-31-2010, 05:07 AM
It looks just the same as the 'iSpy' mod.
Is there any difference between that one and your Mod?

read the first page of this thread

valendono
05-31-2010, 10:53 AM
just remind who using this mod, check your javascript body.onload or onload init, do not double it or it will crashed. Causing It looks like you had no events to display or just blank.

cheers, nice mod btw :)

goyo
06-01-2010, 07:11 AM
Looks pretty good...unfortunately it doesn't work for me...no idea why :erm:

http://sztar.com/spy.php

digitalpoint
06-01-2010, 08:46 AM
Looks pretty good...unfortunately it doesn't work for me...no idea why :erm:

http://sztar.com/spy.phpLooks like it's not picking up the CSS for some reason. If your CSS is being stored as a file, you probably need to regenerate it so it triggers the thing that saves it to your server's file system.

teenage.vn
06-02-2010, 05:24 AM
Looks like maybe the 2 templates it installs didn't get installed or something? Do you have a template named "SPY" in your template system?



Yes I have the template "SPY", as well as the template "spy.css" ...

And Im using 4.0.2, does this Add-on support 4.0.2 ?

Thanks for the fast feedback from you ... Still looking forward for the fix ...

sportsbuddys
06-02-2010, 07:07 AM
Great thank you!

digitalpoint
06-02-2010, 07:41 AM
Yes I have the template "SPY", as well as the template "spy.css" ...

And Im using 4.0.2, does this Add-on support 4.0.2 ?

Thanks for the fast feedback from you ... Still looking forward for the fix ...Probably has to do with the same as this post.

teenage.vn
06-03-2010, 06:57 AM
Probably has to do with the same as this post.

Firstly, I want to say that I'd appreciate for your quick support.

But ... I did the same thing in the post, means: change the exact words function play_pause() to the Code you gave in the post ... and I got the following warning when I tried to save the template:


The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected '[', expecting ')' in /home/vitav/public_html/forum/includes/adminfunctions_template.php(4748) : eval()'d code on line 32

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


Once again, sorry for bothering you and looking forward to hearing from you ...

------------------------------------------ Updated: ------------------------------------------

I also tried to Continue when facing the above error, and nothing changed ... still nothing to display ...

Abhik
06-03-2010, 10:32 AM
Good to see Shawn releasing some of his 'custom' modification.
Heard about the Sphinx Search For vBulletin 4 too that you released at DP.
So sad I can't access that.

digitalpoint
06-03-2010, 05:43 PM
Firstly, I want to say that I'd appreciate for your quick support.

But ... I did the same thing in the post, means: change the exact words function play_pause() to the Code you gave in the post ... and I got the following warning when I tried to save the template:



Once again, sorry for bothering you and looking forward to hearing from you ...

------------------------------------------ Updated: ------------------------------------------

I also tried to Continue when facing the above error, and nothing changed ... still nothing to display ...Any plans on upgrading to vBulletin 4.0.3? The problem itself is caused by vBulletin versions before 4.0.2 not able to parse templates properly.

If you have phpmyadmin, go into the templates table and search for the template record with the title of SPY. Edit that record (it should have a styleid of -1) and set the template field (NOT the template_un field) to this:

$final_rendered = '' . vB_Template_Runtime::fetchStylevar("htmldoctype") . '
<html xmlns="http://www.w3.org/1999/xhtml" dir="' . vB_Template_Runtime::fetchStylevar("textdirection") . '" lang="' . vB_Template_Runtime::fetchStylevar("languagecode") . '">
<head>
' . $headinclude . '
<link rel="stylesheet" type="text/css" href="' . $vbcsspath . 'spy.css" />
<script type="text/javascript" src="' . vB_Template_Runtime::fetchStylevar("yuipath") . '/animation/animation-min.js?v=' . $vboptions['simpleversion'] . '"></script>

<script type="text/javascript">
var spymax = 25;
var play = 1;
var whats = new Array();
var titles = new Array();
var previews = new Array();
var whos = new Array();
var threadids = new Array();
var postids = new Array();
var userids = new Array();
var spyids = new Array();
var forumids = new Array();
var forumnames = new Array();
var highestid = 0;
var fadetime = .25;
var pushtime = 1500;
var fadetime_end = 1.5;
var pushtime_end = 4000
var initalfill_flag = 0;

function init() {
getXML();
}

function play_pause() {
var label = new Array(\'' . vB_Template_Runtime::parsePhrase("click_to_continue") . '\', \'' . vB_Template_Runtime::parsePhrase("click_to_pause") . '\');
play = Math.abs(1-play);
document.getElementById("play_pause").innerHTML = label[play];
}

function getXML() {

if (highestid > 0) {
var querystring = "do=xml&last=" + highestid;
} else {
var querystring = "do=xml";
}

if (document.getElementById("subscribed_flag").checked) {
querystring = querystring + "&subscribed=1";
}
querystring = querystring + \'&r=\' + Math.random();

YAHOO.util.Connect.asyncRequest("GET", "spy.php?" + SESSIONURL + "securitytoken=" + SECURITYTOKEN + "&" + querystring, {
success: processXML,
failure: vBulletin_AJAX_Error_Handler,
timeout: vB_Default_Timeout,
scope: this
});
}

function processXML (request) {

var events;
var event;

try {
events = request.responseXML.getElementsByTagName("events")[0];
event = events.getElementsByTagName("event");
}
catch (e) {
setTimeout("getXML()", 30000);
return;
}

for (i = 0; i < event.length; i++) {
try {
whats[i] = event[i].getElementsByTagName("what")[0].firstChild.nodeValue;
}
catch (e) {
whats[i] = "Who Knows";
}
try {
titles[i] = event[i].getElementsByTagName("title")[0].firstChild.nodeValue;
}
catch (e) {
titles[i] = "";
}
try {
previews[i] = event[i].getElementsByTagName("preview")[0].firstChild.nodeValue;
}
catch (e) {
previews[i] = "";
}
try {
whos[i] = event[i].getElementsByTagName("who")[0].firstChild.nodeValue;
}
catch (e) {
whos[i] = "Anonymous";
}
try {
threadids[i] = event[i].getElementsByTagName("threadid")[0].firstChild.nodeValue;
}
catch (e) {
threadids[i] = "";
}
try {
postids[i] = event[i].getElementsByTagName("postid")[0].firstChild.nodeValue;
}
catch (e) {
postids[i] = "";
}
try {
userids[i] = event[i].getElementsByTagName("userid")[0].firstChild.nodeValue;
}
catch (e) {
userids[i] = "";
}
try {
spyids[i] = event[i].getElementsByTagName("id")[0].firstChild.nodeValue;
}
catch (e) {
spyids[i] = 1;
}
try {
forumids[i] = event[i].getElementsByTagName("forumid")[0].firstChild.nodeValue;
}
catch (e) {
forumids[i] = 1;
}
try {
forumnames[i] = event[i].getElementsByTagName("forumname")[0].firstChild.nodeValue;
}
catch (e) {
forumnames[i] = 1;
}
}

push();

}

function push() {

if (play == 0) {
setTimeout("push()", 1000);
return;
}

var cell;
var cellnext;
var text;
var clip;
var who_clip = \'\';
var where = \'\';
var post_url;
var style = "";
var what = whats.pop();
var title = titles.pop();
var preview = previews.pop();
var who = whos.pop();
var threadid = threadids.pop();
var postid = postids.pop();
var userid = userids.pop();
var spyid = spyids.pop();
var forumid = forumids.pop();
var forumname = forumnames.pop();

highestid = Math.max(parseInt(spyid), highestid);

if (vB_PHP_Emulator.prototype.stripos(what, \'Thread\')) {
post_url = \'showthread.php?\' + SESSIONURL + \'t=\' + threadid;
} else {
post_url = \'showthread.php?\' + SESSIONURL + \'p=\' + postid + \'#post\' + postid ;
}

if (what == \'' . vB_Template_Runtime::parsePhrase("new_user") . '\') {
clip = \'<span style="font-weight:bold">' . vB_Template_Runtime::parsePhrase("new_user_registration") . '</span>\';
} else if(title.length == 0) { // Why??
clip = \'Unknown\';
} else {
clip = \'<a style="font-weight:bold" href="\' + post_url + \'">\' + title + \'</a>\';
}
if (preview.length > 0) clip = clip + \'<br /><div>\' + preview + \'</div>\';

if (userid.length > 0) {
who_clip = \'by <a href="member.php?\' + SESSIONURL + \'u=\' + userid + \'">\' + who + \'</a>\';
}

if (parseInt(forumname.length) > 0) {
if (who_clip.length > 0) where = \'<br />\';
where = where + \'<a style="font-weight:bold" href="forumdisplay.php?\' + SESSIONURL + \'f=\' + forumid + \'">\' + forumname + \'</a>\';
} else {
where = \'\';
}
text = \'<div class="what">\' + what + \'</div><div class="who">\' + who_clip + where + \'</div><div class="clip">\' + clip + "</div>";

document.getElementById("row1").style.opacity = 0;

for (i = (spymax - 1); i >= 1; i--) {
cell = document.getElementById("row" + i);
cellnext = document.getElementById("row" + (i + 1));
if (cell.innerHTML != "") {
cellnext.innerHTML = cell.innerHTML;
cellnext.style.display = \'\';
}
}
document.getElementById("row1").innerHTML = text;

FadeIn = new YAHOO.util.Anim("row1", {
opacity:{to: 1}
}, fadetime
);
FadeIn.animate();

if (whats.length > 0) {
setTimeout("push()", pushtime);
}
else {
fadetime = fadetime_end;
pushtime = pushtime_end;
setTimeout("getXML()", 5000);
}
}
</script>

<title>' . $vboptions['bbtitle'] . ' ' . vB_Template_Runtime::parsePhrase("spy") . '</title>
' . $headinclude_bottom . '
</head>
<body onload="init()">
' . $header . '
' . $navbar . '

<ul id="spy_options">
<li><label><input type="checkbox" id="subscribed_flag" value="1"> ' . vB_Template_Runtime::parsePhrase("include_subscribed") . '</label></li>
<li><a class="textcontrol" id="play_pause" href="spy.php" onclick="play_pause(); return false;">' . vB_Template_Runtime::parsePhrase("click_to_pause") . '</a></li>
</ul>


<div>
<span class="spyhead table">
<span class="what td">' . vB_Template_Runtime::parsePhrase("what") . '</span>
<span class="who td">' . vB_Template_Runtime::parsePhrase("who_where") . '</span>
<span class="clip td">' . vB_Template_Runtime::parsePhrase("thread_post") . '</span>
</span>
</div>


<ol id="spys">
<li class="spybit" id="row1"></li>
<li class="spybit" id="row2" style="display: none;"></li>
<li class="spybit" id="row3" style="display: none;"></li>
<li class="spybit" id="row4" style="display: none;"></li>
<li class="spybit" id="row5" style="display: none;"></li>
<li class="spybit" id="row6" style="display: none;"></li>
<li class="spybit" id="row7" style="display: none;"></li>
<li class="spybit" id="row8" style="display: none;"></li>
<li class="spybit" id="row9" style="display: none;"></li>
<li class="spybit" id="row10" style="display: none;"></li>
<li class="spybit" id="row11" style="display: none;"></li>
<li class="spybit" id="row12" style="display: none;"></li>
<li class="spybit" id="row13" style="display: none;"></li>
<li class="spybit" id="row14" style="display: none;"></li>
<li class="spybit" id="row15" style="display: none;"></li>
<li class="spybit" id="row16" style="display: none;"></li>
<li class="spybit" id="row17" style="display: none;"></li>
<li class="spybit" id="row18" style="display: none;"></li>
<li class="spybit" id="row19" style="display: none;"></li>
<li class="spybit" id="row20" style="display: none;"></li>
<li class="spybit" id="row21" style="display: none; opacity:.85"></li>
<li class="spybit" id="row22" style="display: none; opacity:.65"></li>
<li class="spybit" id="row23" style="display: none; opacity:.45"></li>
<li class="spybit" id="row24" style="display: none; opacity:.25"></li>
<li class="spybit" id="row25" style="display: none; opacity:.05"></li>
</ol>
<br clear="both" />
' . $footer . '

</body>
</html> ';

That is the parsed template from a version of vBulletin that can parse templates properly. Ultimately the best thing to do would be to upgrade to a version of vBulletin that can parse templates correctly, but if that's not an option manually parsing it like shown above should work.

teenage.vn
06-04-2010, 06:48 AM
@digitalpoint: ... I will update to version 4.0.3 maybe in the near future but not now ... Btw, thanks for the best help from you :D.

Michlerish
06-04-2010, 08:48 AM
I have private forums that not all users can see, is this mod permissions based? Like if a user goes to the spy page, they won't see updates for forums they cannot access, correct?

edit: I just tested it in two different browsers and it seems to work that way! Fantastic mod, I love it!

Michlerish
06-04-2010, 03:22 PM
How can I add a link to the spy.php page in my NavBar or NavTab?

digitalpoint
06-04-2010, 07:13 PM
It currently adds a link to the "Community" drop-down menu in the lower navigation (when you are anywhere within the forums).

If you really want it to have it's own main navbar button could you do something like so (this is off the top of my head, I didn't actually test it to make sure it works, but it should).

Plug-ins To Add
Location: process_templates_complete
if (THIS_SCRIPT == 'spy') $vbulletin->options['selectednavtab'] = 'spy';
$template_hook['navtab_middle'] .= vB_Template::create('spy_navbar_link')->render();

Location: cache_templates
$cache = $cache[] = 'spy_navbar_link';

Template To Add
Location: spy_navbar_link

<li<vb:if condition="$vboptions['selectednavtab'] == 'spy'"> class="selected"</vb:if>>
<a class="navtab" href="spy.php{vb:raw session.sessionurl_q}">{vb:rawphrase directory}</a>
</li>

dezzy94
06-05-2010, 02:15 AM
Works good ! :)

sulasno
06-05-2010, 02:25 AM
off topic

I register at the site and have to make an additional click;

I have never registered under a different username.

How do I add this to my forum? tia

Michlerish
06-05-2010, 02:28 AM
It currently adds a link to the "Community" drop-down menu in the lower navigation (when you are anywhere within the forums).

If you really want it to have it's own main navbar button could you do something like so (this is off the top of my head, I didn't actually test it to make sure it works, but it should).

Plug-ins To Add
Location: process_templates_complete
if (THIS_SCRIPT == 'spy') $vbulletin->options['selectednavtab'] = 'spy';
$template_hook['navtab_middle'] .= vB_Template::create('spy_navbar_link')->render();

Location: cache_templates
$cache = $cache[] = 'spy_navbar_link';

Template To Add
Location: spy_navbar_link

<li<vb:if condition="$vboptions['selectednavtab'] == 'spy'"> class="selected"</vb:if>>
<a class="navtab" href="spy.php{vb:raw session.sessionurl_q}">{vb:rawphrase directory}</a>
</li>

Oh thanks! I actually didn't see it added under Community... I had some users ask for a NavBar link, I will let them know about the link under Community and see if that satisfies them.

If not, I will try your code above. Thanks so much for the work and quick reply :)

Haywire0311
06-05-2010, 01:00 PM
It works for the most part but the spy.php page displays weird (i think?)

The spy works but at the top of the page, there is a check box and a blank icon that links to spy.php.

Also, I can't seem to find where to edit the settings for this?

This is a link to my site: http://www.m3orpg.com/spy.php

The other thing it does is when people post, it says "Who Knows" instead of new thread. It does recognize editing a post though.

digitalpoint
06-05-2010, 03:49 PM
Seems like maybe the phrases that it comes with did not get installed or used? Did you edit anything manually?

Haywire0311
06-05-2010, 11:37 PM
Seems like maybe the phrases that it comes with did not get installed or used? Did you edit anything manually?

Nope....didn't touch a thing on the mod. I installed as directed and that's what happened. Didn't touch a thing. I thought there might be settings to fix it but I can't find settings for it anywhere.

digitalpoint
06-06-2010, 12:47 AM
Strange... it really looks as if the import product process simply didn't import any phrases at all. Do you have a phrase category named "Spy" in your language/phrase system?

Haywire0311
06-06-2010, 01:18 AM
Strange... it really looks as if the import product process simply didn't import any phrases at all. Do you have a phrase category named "Spy" in your language/phrase system?

Nope. I've tried uninstalling and reinstalling also and still no luck.

digitalpoint
06-06-2010, 03:19 AM
Nope. I've tried uninstalling and reinstalling also and still no luck.I really have no clue to be honest... and without a setup that I can see myself that actually omits the phrases when you import the product package, it's impossible to try and debug. I skimmed vBulletin's import function, and I didn't see anything in there that would cause that part to not happen based on a setting or something, so I'm not sure.

Do you have any other product/plug-in or anything else that does anything at all with the language system? Maybe try installing it with plug-ins disabled or something?

Sorry I can't be of more help...

JAFRI
06-06-2010, 07:52 AM
nice work ,,, Thanks

fluidswork
06-06-2010, 08:14 AM
nice mod ...........

icarders
06-10-2010, 12:17 AM
very good

ProFifaLeagues
06-13-2010, 08:23 AM
Looks good will try it out now!Thanks

CoreyLTH
06-14-2010, 01:10 AM
Simple install, but i'm getting this error:


Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/baseball/public_html/spy.php on line 34

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/baseball/public_html/spy.php on line 34

Is something disabled on my server or vBulletin that I need to fix?

wickedstangs
06-14-2010, 02:31 AM
installed but, I don't see anything happening? When to the link under community and nothing shows up. Do I have turn something on?

Tryppnotic69
06-14-2010, 02:42 AM
installed but, I don't see anything happening? When to the link under community and nothing shows up. Do I have turn something on?

You have to wait until someone posts something on your forum for the spy to show it :-) It shows a live feed.

digitalpoint
06-14-2010, 02:47 AM
Simple install, but i'm getting this error:


Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/baseball/public_html/spy.php on line 34

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/baseball/public_html/spy.php on line 34

Is something disabled on my server or vBulletin that I need to fix?Is spy.php where the rest of your vBulletin files are? It should be in the same folder as your global.php file.

CoreyLTH
06-14-2010, 03:17 AM
Yes, I changed my URL to hide the /forum and didn't upload it to my forum directory like a moron. It's been a long day.

I have a few more questions if you don't mind. When you click on your forum tab a navigation of all the forums pop-up, is that a mod made by you or can I download it here? If it's yours do you plan on releasing it all in the future?

JAFRI
06-14-2010, 03:51 AM
Not Show! http://www.shiaforums.com/vb/spy.php

teenage.vn
06-14-2010, 05:25 AM
@Aamir: It is the same with my problem ^_^, you can upgrade your board to 4.0.3 then it should work properly :D.

DragonBlade
06-14-2010, 06:10 AM
Whats updated from the previous version if any?

Regs
06-14-2010, 04:24 PM
I'm guessing a security update.

Check your email as you should have gotten a notification concerning this... you have marked this installed, right? :D

DragonBlade
06-14-2010, 07:57 PM
Yeah, I got that email but it was vague of course :P

AlexanderT
06-16-2010, 08:22 AM
I'm guessing a security update.

Check your email as you should have gotten a notification concerning this... you have marked this installed, right? :D

Yup. The version before didn't sanitize an input variable properly, potentially resulting in an SQL injection exploit.

spillage
06-20-2010, 06:12 PM
This would be great as a Widget for the Home Page.

Any thoughts?

COL NIL SATIS
06-20-2010, 07:21 PM
works brilliant on 4.0.3..many thanks

digitalpoint
06-20-2010, 11:48 PM
This would be great as a Widget for the Home Page.

Any thoughts?Already on the "to-do" list for a future version.

PHP FAN
06-21-2010, 10:05 AM
Hi

nice mod

but not working with UTF-8

http://www.arabvet.com/community/spy.php

jgruberman
06-21-2010, 12:44 PM
CMPS module coming?

ChopSuey
06-21-2010, 01:09 PM
CMPS module coming?

No a vBCMS Widget.

PHP FAN
06-22-2010, 11:39 AM
fixed

/*$event['preview'] = htmlnumericentities(htmlentities (
fetch_censored_text(fetch_trimmed_title(
strip_bbcode(strip_quotes($event['preview']), false, true),
$vbulletin->options['threadpreview']
)),
ENT_COMPAT, 'UTF-8'));

$event['title'] = str_replace ('&amp;', '&', htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));
*/

Breakpoint
06-28-2010, 01:02 AM
XML Error: Invalid document end at Line 176

hmmm

digitalpoint
06-28-2010, 03:34 AM
XML Error: Invalid document end at Line 176



hmmm

What's the URL where you have it installed and getting that error?

skol
06-28-2010, 10:44 AM
Nice mod thank you,just a minor problem if you edit a post,it re-posts.

The Vegan Forum
06-28-2010, 03:19 PM
With vB4.04, I always get error messages like this (see below) using this addon ? if I click on the user name of a newly registered member:


Checking if a package is enabled for an invalid package '3' on line 392 in /home/korn/public_html/forums/vb/types.php
#0 /home/korn/public_html/forums/vb/router.php(503): vB_Types->packageEnabled('3')
#1 /home/korn/public_html/forums/vb/router.php(566): vB_Router::assertRoutes()
#2 /home/korn/public_html/forums/vb/route.php(231): vB_Router::getRouteSegmentFromClass('vBCms_Route_L is...')
#3 /home/korn/public_html/forums/packages/vbcms/route/list.php(92): vB_Route->__construct()
#4 /home/korn/public_html/forums/member.php(567): vBCms_Route_List::getURL(Array)
#5 {main}


Fatal error: Checking if a package is enabled for an invalid package '3' on line 392 in [path]/vb/types.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, Checking if a package is enabled for an invalid package '3' on line 392 in /home/korn/public_html/forums/vb/types.php , /home/korn/public_html/forums/vb/vb.php, 287, Array ([exception] => vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Checking if a package is enabled for an invalid package '3',[] => ,[] => 0,[] => /home/korn/public_html/forums/vb/types.php,[] => 392,[] => Array ([0] => Array ([file] => /home/korn/public_html/forums/vb/router.php,[line] => 503,[function] => packageEnabled,[class] => vB_Types,[type] => ->,[args] => Array ([0] => 3)),[1] => Array ([file] => /home/korn/public_html/forums/vb/router.php,[line] => 566,[function] => assertRoutes,[class] => vB_Router,[type] => ::,[args] => Array ()),[2] => Array ([file] => /home/korn/public_html/forums/vb/route.php,[line] => 231,[function] => getRouteSegmentFromClass,[class] => vB_Router,[type] => ::,[args] => Array ([0] => vBCms_Route_List)),[3] => Array ([file] => /home/korn/public_html/forums/packages/vbcms/route/list.php,[line] => 92,[function] => __construct,[class] => vB_Route,[type] => ->,[args] => Array ()),[4] => Array ([file] => /home/korn/public_html/forums/member.php,[line] => 567,[function] => getURL,[class] => vBCms_Route_List,[type] => ::,[args] => Array ([0] => Array ([type] => author,[value] => 14807-minimal))))),[code] => 256)) #1 trigger_error(Checking if a package is enabled for an invalid package '3' on line 392 in /home/korn/public_html/forums/vb/types.php , 256) called at [/home/korn/public_html/forums/vb/vb.php:287] #2 vB::handleException(vB_Exception_Warning Object ([] => ,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Checking if a package is enabled for an invalid package '3',[] => ,[] => 0,[] => /home/korn/public_html/forums/vb/types.php,[] => 392,[] => Array ([0] => Array ([file] => /home/korn/public_html/forums/vb/router.php,[line] => 503,[function] => packageEnabled,[class] => vB_Types,[type] => ->,[args] => Array ([0] => 3)),[1] => Array ([file] => /home/korn/public_html/forums/vb/router.php,[line] => 566,[function] => assertRoutes,[class] => vB_Router,[type] => ::,[args] => Array ()),[2] => Array ([file] => /home/korn/public_html/forums/vb/route.php,[line] => 231,[function] => getRouteSegmentFromClass,[class] => vB_Router,[type] => ::,[args] => Array ([0] => vBCms_Route_List)),[3] => Array ([file] => /home/korn/public_html/forums/packages/vbcms/route/list.php,[line] => 92,[function] => __construct,[class] => vB_Route,[type] => ->,[args] => Array ()),[4] => Array ([file] => /home/korn/public_html/forums/member.php,[line] => 567,[function] => getURL,[class] => vBCms_Route_List,[type] => ::,[args] => Array ([0] => Array ([type] => author,[value] => 14807-minimal))))))

digitalpoint
06-28-2010, 05:06 PM
Nice mod thank you,just a minor problem if you edit a post,it re-posts.It's supposed to since it logs "Edit Post" actions.

With vB4.04, I always get error messages like this (see below) using this addon ? if I click on the user name of a newly registered member:Do you have a URL where it's installed that I can take a look?

The Vegan Forum
06-28-2010, 05:12 PM
Enabling and disabling CMS seems to fix it.

The Vegan Forum
06-28-2010, 05:15 PM
Yes, the site is veganforum.com, but the problem - when it first has occured - also happens when clicking on member profiles in other ways. I was unsuccessful at adding a CMS user name when I installed 4.04, and now it seems that if I add a plugin, I have to enable (and disable, if I don't want it active) CMS to get rid of that error message.

KURTZ
06-28-2010, 06:32 PM
With vB4.04, I always get error messages like this (see below) using this addon ? if I click on the user name of a newly registered member:

this is a CMS issue mate ... ;)

skol
06-28-2010, 09:01 PM
It's supposed to since it logs "Edit Post" actions.

You misunderstand me,if permissions are set in VB for usergroups, specifically staff in my case who are able to edit their own posts without displaying "message edited" within their post.

As it stands,members will now be able to see that the post has been edited.So basically i might aswell switch the display message edited on for all staff usergroups..If you see what i mean..

digitalpoint
06-29-2010, 12:22 AM
Well the way it's working now is by design. If you don't want it to log post edits, just disable the "Log Post Edit" plug-in.

sebbbl
07-02-2010, 07:50 AM
Hi,

I don't want to see new users registrations, how can I can get rid of that ?

And I get � instead of accents (french forum).

Edit :

fixed

/*$event['preview'] = htmlnumericentities(htmlentities (
fetch_censored_text(fetch_trimmed_title(
strip_bbcode(strip_quotes($event['preview']), false, true),
$vbulletin->options['threadpreview']
)),
ENT_COMPAT, 'UTF-8'));

$event['title'] = str_replace ('&amp;', '&', htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));
*/

Where do you insert this code ?

__________________________________________________ _________________________

I don't either see message description...

And finally : it shows "unknown" in the threads/posts list, so I can't see the message posted.

Link : http://frenchcinema4d.fr/spy.php

Yellow Slider
07-03-2010, 10:46 AM
does this work with utf8 (hebrew) \ rtl?

Thanks

PHP FAN
07-03-2010, 12:47 PM
hmmmm


OK forget about my last post!


The solution that worked for me in none English Characters with UTF-8 encoding is:



Open spy.php



Find:

$event['preview'] = htmlnumericentities(htmlentities (
fetch_censored_text(fetch_trimmed_title(
strip_bbcode(strip_quotes($event['preview']), false, true),
$vbulletin->options['threadpreview']
)),
ENT_COMPAT, 'UTF-8'));

$event['title'] = str_replace ('&amp;', '&', htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));



Change to:


$event['preview'] = htmlspecialchars(htmlentities (
fetch_censored_text(fetch_trimmed_title(
strip_bbcode(strip_quotes($event['preview']), false, true),
$vbulletin->options['threadpreview']
)),
ENT_COMPAT, 'UTF-8'));

$event['title'] = str_replace ('&amp;', '&', htmlspecialchars(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));

mrt12345
07-03-2010, 01:42 PM
Thanks for the mod this should be interesting.. PS i have been a big fan of your site:up:

Boofo
07-03-2010, 02:38 PM
hmmmm


OK forget about my last post!


The solution that worked for me in none English Characters with UTF-8 encoding is:



Open spy.php



Find:

$event['preview'] = htmlnumericentities(htmlentities (
fetch_censored_text(fetch_trimmed_title(
strip_bbcode(strip_quotes($event['preview']), false, true),
$vbulletin->options['threadpreview']
)),
ENT_COMPAT, 'UTF-8'));

$event['title'] = str_replace ('&amp;', '&', htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));



Change to:


$event['preview'] = htmlspecialchars(htmlentities (
fetch_censored_text(fetch_trimmed_title(
strip_bbcode(strip_quotes($event['preview']), false, true),
$vbulletin->options['threadpreview']
)),
ENT_COMPAT, 'UTF-8'));

$event['title'] = str_replace ('&amp;', '&', htmlspecialchars(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));

What did you change? It looks the same to me.

PHP FAN
07-04-2010, 07:30 AM
What did you change? It looks the same to me.


Changed htmlnumericentities with htmlspecialchars in both lines:

$event['preview'] = htmlnumericentities(htmlentities (

In to

$event['preview'] = htmlspecialchars(htmlentities (


And


$event['title'] = str_replace ('&amp;', '&', htmlnumericentities(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));

In to

$event['title'] = str_replace ('&amp;', '&', htmlspecialchars(htmlentities ($event['title'], ENT_COMPAT, 'UTF-8')));

sinucello
07-05-2010, 02:18 PM
Hi,

this is a great mod, thanks for sharing it. Would be nice to have it in a sidebar block with some more options. That way users could be easily informed about everything they are interested in: new replies, PNs, post in subscribed forums without having to look at the "What`s new" page.

Another idea would be to use it as a tool for moderators with mod-options shown behind each entry.

all the best,
Sacha

sticky
07-11-2010, 02:23 AM
I am getting this error for some reason:

Parse error: syntax error, unexpected '{', expecting ')' in /public_html/includes/class_core.php(4010) : eval()'d code on line 32

digitalpoint
07-11-2010, 10:16 PM
What's your site URL?

sticky
07-11-2010, 11:15 PM
What's your site URL?
www.bimmerboost.com

digitalpoint
07-11-2010, 11:56 PM
Has to do with a bug in 4.0.2... The best thing would be to upgrade your vBulletin installation, but if not... you can run through this stuff to work around the vB bug:

https://vborg.vbsupport.ru/showthread.php?p=2045652#post2045652

sticky
07-12-2010, 12:29 PM
Has to do with a bug in 4.0.2... The best thing would be to upgrade your vBulletin installation, but if not... you can run through this stuff to work around the vB bug:

https://vborg.vbsupport.ru/showthread.php?p=2045652#post2045652
Ah I see, thank you.

I tried this but could not seem to get it to work. I'll probably have to wait until I upgrade, thanks for trying to help!

jscieza
07-14-2010, 06:04 AM
Hi Shawn,

Any chance to get this for vBulletin 3.8.x?

Thank you,
Jonathan

digitalpoint
07-14-2010, 07:32 AM
No, sorry... I don't have a 3.8.x forum any longer so nothing to test it against anyway.

The Vegan Forum
07-17-2010, 07:18 AM
Hi, we had to deinstall this product yesterday, since non-public posts from moderated users showed up in the Spy-window.

digitalpoint
07-17-2010, 05:54 PM
Hi, we had to deinstall this product yesterday, since non-public posts from moderated users showed up in the Spy-window.It's actually by design... the Spy is intended to show things happening in real-time (including things like a deleted post).

It does NOT show anything from a forum/section that the user does not have permission to view, but if something is posted and sent to a moderation queue (or a post is deleted) from a section that can access it will show the preview clip of that post as it rolls by.

It wouldn't be hard to suppress things that weren't visible normally if you wanted though. In the spy.php file, just change this:

$events = $db->query_read_slave("
SELECT spy.*, user.username, thread.title, thread.forumid, post.pagetext AS preview
FROM " . TABLE_PREFIX . "digitalpoint_spy AS spy
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = spy.userid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = spy.threadid)
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = spy.postid)
WHERE (thread.forumid IS NULL OR (thread.forumid IN ($forumids)$sql_subscribed))
$extra
ORDER BY dateline DESC
LIMIT 25
");

to this:

$events = $db->query_read_slave("
SELECT spy.*, user.username, thread.title, thread.forumid, post.pagetext AS preview
FROM " . TABLE_PREFIX . "digitalpoint_spy AS spy
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = spy.userid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = spy.threadid)
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = spy.postid)
WHERE (thread.forumid IS NULL OR (thread.forumid IN ($forumids)$sql_subscribed))
AND (thread.visible IS NULL OR thread.visible = 1)
AND (post.visible IS NULL OR post.visible = 1)
$extra
ORDER BY dateline DESC
LIMIT 25
");

The Vegan Forum
07-17-2010, 06:18 PM
I fail to see why a mod or admin would want a plugin which automatically makes moderated posts and users unmoderated, as this realistically could mean that confidential info or insulting posts and attacks from members on moderation (eg. because they were about to be banned) would be published to thousands of people, but the name of the plugin says it all. It allows people to spy on stuff that's not meant to be seen. Great feature for members in conflict with the moderators! :)

digitalpoint
07-17-2010, 09:25 PM
I fail to see why a mod or admin would want a plugin which automatically makes moderated posts and users unmoderated, as this realistically could mean that confidential info or insulting posts and attacks from members on moderation (eg. because they were about to be banned) would be published to thousands of people, but the name of the plugin says it all. It allows people to spy on stuff that's not meant to be seen. Great feature for members in conflict with the moderators! :)I've never seen anywhere remotely close to thousands of people watching the Spy at once. You see clips of posts, not the whole posts themselves, and you can't rewind it either. So after 25 things happen in your forum, it's existence within the Spy is gone forever.

But yeah... no big deal either way... if someone wants to suppress things that can't currently be seen from users (deleted posts, moderated posts, etc.) the change in the previous post should work fine.

lostpond
07-20-2010, 07:06 AM
hi, great addon i really love it but i have a display error on 4.0.5 on some posts i just get "Unknown" in the "Thread/Post" section

http://img834.imageshack.us/img834/6452/bildschirmfoto20100720ur.png

digitalpoint
07-20-2010, 08:05 AM
Hmmm... is it just some posts? Do you have the URL where it's installed?

lostpond
07-20-2010, 08:15 AM
hi, sent you the url and a username as pn, as the forum is is private at this time...

*edit*

i created some more threads and now spy isnt showin any thread at all :(

wipedout
07-20-2010, 09:40 AM
is there any way to make it play a soft "pop" sound or something on new posts? sounds in general that is, would be nice, if you dont have time to add such things yourself maybe you could direct me to where to look for adding it ^^

*edit*

Would also like to know if it would be possible to make it display in this manner instead What - Who - Where - Thread/Thread.

digitalpoint
07-20-2010, 09:36 PM
hi, sent you the url and a username as pn, as the forum is is private at this time...

*edit*

i created some more threads and now spy isnt showin any thread at all :(Do you have any activity going on? The Spy is rather useless if there's nothing actively going on in the forum (it purges stuff from it's tracking database after it's an hour old). So if you have less than 25 actions happening in your forum per hour it's not going to fill the whole Spy window.

is there any way to make it play a soft "pop" sound or something on new posts? sounds in general that is, would be nice, if you dont have time to add such things yourself maybe you could direct me to where to look for adding it ^^

*edit*

Would also like to know if it would be possible to make it display in this manner instead What - Who - Where - Thread/Thread.I don't see why you couldn't do something like that if you really wanted to, but there isn't an option in the system to do it... you would need to modify the code/styling yourself to do it.

KevinL
07-20-2010, 11:47 PM
Is there any way I can get this to show only whats going on in ONE thread each day? Kinda like a chat but from a thread? Kinda like live topic (https://vborg.vbsupport.ru/showthread.php?t=201228)?

Some insight on this would be great!

Thanks

digitalpoint
07-21-2010, 01:05 AM
Is there any way I can get this to show only whats going on in ONE thread each day? Kinda like a chat but from a thread? Kinda like live topic (https://vborg.vbsupport.ru/showthread.php?t=201228)?

Some insight on this would be great!

Thanks
In spy.php, change this:

$events = $db->query_read_slave("
SELECT spy.*, user.username, thread.title, thread.forumid, post.pagetext AS preview
FROM " . TABLE_PREFIX . "digitalpoint_spy AS spy
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = spy.userid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = spy.threadid)
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = spy.postid)
WHERE (thread.forumid IS NULL OR (thread.forumid IN ($forumids)$sql_subscribed))
$extra
ORDER BY dateline DESC
LIMIT 25
");

to this:
$events = $db->query_read_slave("
SELECT spy.*, user.username, thread.title, thread.forumid, post.pagetext AS preview
FROM " . TABLE_PREFIX . "digitalpoint_spy AS spy
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = spy.userid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = spy.threadid)
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = spy.postid)
WHERE (thread.forumid IS NULL OR (thread.forumid IN ($forumids)$sql_subscribed))
AND spy.threadid = 999999
$extra
ORDER BY dateline DESC
LIMIT 25
");

Basically just adding the AND spy.threadid = 999999 part where 999999 is the threadid.

lostpond
07-21-2010, 05:36 AM
Do you have any activity going on? The Spy is rather useless if there's nothing actively going on in the forum (it purges stuff from it's tracking database after it's an hour old). So if you have less than 25 actions happening in your forum per hour it's not going to fill the whole Spy window.

Jea, i have 10 test users, thats how i found out about the "Unkown" stuff, i will test it again when the forum is live, maybe it just needs more posts..

Carnage
07-26-2010, 12:14 AM
any eta on the widget/forum block?

on 3.8 i had a spy block I created from a vbadvanced module and it'd be great to have it back.

Cadellin
07-26-2010, 03:56 PM
How could I include the time of the activity? I've found your mod really handy for monitoring the forums on a seperate monitor but it would be useful to know when things happened at a glance.

Cheers

digitalpoint
07-27-2010, 05:08 AM
How could I include the time of the activity? I've found your mod really handy for monitoring the forums on a seperate monitor but it would be useful to know when things happened at a glance.

CheersIt wouldn't be *too* hard to hack it in... although it was intentionally left out with the following reasoning...

A large/active board is going to have a constant stream of new stuff... anything that shows on it is going to pretty much of just happened. While small boards might not want to put a time on it because someone looking at it may get the feeling the board is pretty stale with 1 thing happening every hour or so...

Eric
08-02-2010, 07:30 AM
Shawn...

Would you mind if I back-ported this to vB3, not for redistribution, just for use on a forum I'm a part of?

Sal Collaziano
08-04-2010, 03:25 PM
Oddly enough, it only seemed to work on my (busy) site the first time I checked. Ever since I posted a message telling people to check it out, it hasn't worked. No threads display at all. What could have gone wrong?

digitalpoint
08-05-2010, 07:14 PM
Shawn...

Would you mind if I back-ported this to vB3, not for redistribution, just for use on a forum I'm a part of?Sure, that's fine... the whole thing was ported FROM a vB3 version I had, but it was always designed for in-house use, so never really thought to keep a copy of the old one when we moved to vB4.

Oddly enough, it only seemed to work on my (busy) site the first time I checked. Ever since I posted a message telling people to check it out, it hasn't worked. No threads display at all. What could have gone wrong?Do you have anything in the digitalpoint_spy table? That should be getting a new record as stuff is added. If not, make sure your plug-ins are enabled.

Expertu
08-06-2010, 05:14 PM
Hey Shawn. I imported the product XML but the Spy link doesn't show up.

Later edit: Found it. It's in the community submenu. Never figured to look it up there. I always thought it would be in the main navigation menu, right after What's new.

Eric
08-06-2010, 05:20 PM
Sure, that's fine... the whole thing was ported FROM a vB3 version I had, but it was always designed for in-house use, so never really thought to keep a copy of the old one when we moved to vB4.

Do you have anything in the digitalpoint_spy table? That should be getting a new record as stuff is added. If not, make sure your plug-ins are enabled.

Cool, thanks Shawn :)

Expertu
08-06-2010, 06:52 PM
Can we speed up the display ? I keep closing and re-opening it and it always takes a lot of time to reach the fresh data.

BadgerDog
08-06-2010, 10:11 PM
Installed to test ... :up:

Thank you ... :)

I've had people make some new posts, but I see nothing showing up under the "Spy" function ... :confused:

Am I missing something that needs to be turned on?

I put spy.php in home directory and imported XML fine. It shows up on community menu and loads page, but there's no activity.

Regards,
Badger

Edit: NM .. give me a coffee break and you have to retrain me ... :D

Eq4bits
08-06-2010, 10:35 PM
Love this!
Is there anyway to remove the link in the community dropdown altogether?
Or add an 'if admin'/'if moderator' conditional phrase to the link in the dropdown?
I looked in the navbar template but can't even find it to remove it.

EDIT: found it, so disabled the plug-in for navigation. But would still like to have it there or somewhere for admins and moderators only. Anyone have any idea what the 'if' conditional phrasing/coding would be to add to the navigation plug in?

BadgerDog
08-07-2010, 01:09 PM
Well the way it's working now is by design. If you don't want it to log post edits, just disable the "Log Post Edit" plug-in.

Thanks ... :)

That's the same question I was going to ask .... :up:

Regards,
Badger

kabir
08-10-2010, 12:12 PM
It's not works with vBulletin 4.0.5

PjDaBadMan
08-10-2010, 06:00 PM
I got this error accessing the page:

Parse error: syntax error, unexpected '{', expecting ')' in /home/patrick/public_html/includes/class_core.php(4010) : eval()'d code on line 32

digitalpoint
08-10-2010, 06:31 PM
It's not works with vBulletin 4.0.5
Works fine for me, what error are you getting exactly?

I got this error accessing the page:

Parse error: syntax error, unexpected '{', expecting ')' in /home/patrick/public_html/includes/class_core.php(4010) : eval()'d code on line 32There was a template parsing bug in the early versions of vB4 that was fixed in vB4.0.3. Upgrading to vB4.0.3 will fix it.

onehost
08-12-2010, 04:01 AM
I like live mods in action, very cool.

I wonder if it would be possible to create a live stats mod
without having to refresh that shows stats, users, spiders, etc..
that would be cool.

vivamexico55
08-12-2010, 08:31 PM
Just confirming it works on VB 4.06 =)

Any ideas why I randomly get an "Unknown" in the Thread / Post part? it's weird.

Also, what's the advantage to using this over vaispy.php? I suppose it's optimized for larger forums?

Anyway, I went with digitalpoint's version cos I trust him, dude is awesome =)

vivamexico55
08-12-2010, 08:33 PM
Any ideas why I randomly get an "Unknown" in the Thread / Post part? it's weird.

edit: Disregard edited comment, it seems to happen with all sorts of users. Previously I thought it only happened to mods.

Anyway, Installed, tagged, nominated, voted etc ;)


edit again: Ok, this is just not working. About 3 out of 5 messages just show "Unknown", no link to the post, or thread, or some just link the thread title. Maybe related to 4.06?

digitalpoint
08-13-2010, 12:59 AM
Doesn't seem to be related to 4.0.6... it's what I use, and the spy version is the exact one posted here:

http://forums.digitalpoint.com/spy.php

Do you have any sort of mod that might delete posts from the post table? Like something that might delete one and merge it into another post automatically? That could cause problems because by the time the spy outputs it, the postid no longer exists in the post table.

vivamexico55
08-18-2010, 06:28 AM
This is the only other plugin I use: https://vborg.vbsupport.ru/showthread.php?p=2083347

I don't think it changes postids...

digitalpoint
08-18-2010, 07:14 PM
Not really sure why it would do that unless the postid in the spy table didn't match up to one in the post table. I suppose if you want to try to debug it, go look in the spy table and make sure one of the results that spews "Unknown" has a postid matching up to one in the post table.

Nomar86
08-25-2010, 01:54 PM
looking very nice, tagged this post to install it later

red-dna
08-25-2010, 10:56 PM
red-dna.net/forum/spy.php
Is not getting any posts, any help?

YankForum
08-27-2010, 01:35 AM
tnx installed it 4 sure

BlackHoster
08-27-2010, 10:26 AM
installed and looks nice one ....thank you :)

sross
08-28-2010, 10:57 AM
working great on 4.0.5

thanks! :)

sross
08-28-2010, 08:37 PM
might be a dumb question but what is the proper way to have it only load 5 items on launch? I don't mind a long list once it gets rolling in real time but my members get a bit confused when it loads the initial batch. They think "whoa, i can't keep up with this activity it's too crazy" and close it down.

YankForum
08-28-2010, 09:01 PM
is the table inside database gonna occupy gigabytes in future ? any chance to drop records every while ?

digitalpoint
08-29-2010, 06:13 AM
The table already manages itself and never gets large.

BobbyBig
08-29-2010, 10:09 PM
Hi there, nice plugin.
However i am missing a time data field, or did i missed something ?

digitalpoint
08-29-2010, 11:44 PM
There is no time field since things are happening in real time, it's all pretty much "now".

lubbie
08-30-2010, 10:48 AM
Got it working. My fault. Is there a way to exclude Threads and/or Forums?

BlueCheri
08-31-2010, 07:54 AM
Installed, thanx

onehost
09-07-2010, 03:28 AM
v4.0.6

Seems to work fine so far.

Merjawy
09-08-2010, 04:17 AM
Issue with language encoding .. I get ????? ???????? on thread/post titles and also on user names

MmS1
09-17-2010, 03:00 PM
ســــؤال بسيــــــت مش بسيـــــط p:
ما فهمتش شي يا Ù†Ø§Ø§Ø§Ø§Ø§Ø§Ø§Ø§Ø§Ø§Ø§Ø §Ø§Ø§Ø³ صنوووووووووو٠ˆÙˆÙˆÙˆÙˆÙˆÙˆÙˆÙˆÙˆÙˆÙˆÙˆ وووووووووووو٠ˆÙˆÙ ƒ شن في

it can't read arabic

RaSa
09-17-2010, 03:35 PM
any eta on the widget/forum block?

on 3.8 i had a spy block I created from a vbadvanced module and it'd be great to have it back.

That?s similar to what I?m looking for: Using this Mod in a Forum Sidebar.

Works with VB 4.0.7, thank you!

Devanand
09-23-2010, 08:15 AM
I also have problem with blank page. I checked and I have spy template.

lubbie
09-29-2010, 08:10 PM
Also blank Page

Xaices
10-09-2010, 06:16 PM
I have it installed and works with preregistered users. How ever I created an RSS User and for what ever reason the RSS Feed posts on the forums are not showing up in Spy.

How do I get the RSS User News Bot's posts to show up on Spy?

Please assist, I would really like the RSS Feed posts to show up on Spy.

Thank you!

VonDoom
10-10-2010, 04:29 PM
Are there no ACP options for this? Working great and as described on my forum, But i cant find any mention of this in the ACP other then the templates..

By the way thanks for this Installed and rated...

------------------------

ETA: This is installed on 3 forums.. working on 2 of the three one forum recieves this error above the header.. It just wont work on that particular forum.. although i also get similier errors on other plugins that open in their own pages. so im sure its not the fault of the plugin however any insight would be greatly appreciated.
Warning: array_merge() [function.array-merge (http://www.doberman-chat.com/function.array-merge)]: Argument #2 is not an array in [path]/global.php(29) : eval()'d code on line 55
http://www.doberman-chat.com/spy.php

digitalpoint
10-10-2010, 05:41 PM
If the RSS bot is not using the normal data manager for inserting data, it would not show up.

As for the array_merge issue, that would be coming from some other plug-in you have installed. A plug-in you have at the global_start is causing it... the Spy doesn't come with anything at that hook location, so can't really help you there, except to point you in the right direction.

Xaices
10-10-2010, 09:04 PM
If the RSS bot is not using the normal data manager for inserting data, it would not show up.

I am not using a mod or hack for the RSS feed I am using the RSS feed set up in the base vBulletin ACP. I just assigned a User Name to make the posts in a specific forum.

For what ever reason the posts do show up on the "What's New" page. However do not show up on the "Spy" page.

digitalpoint
10-11-2010, 05:39 PM
Then the internal RSS feed system isn't inserting data via the data managers. The Spy system can only track data that is coming in via the normal data managers since there are hook locations there that allows you to intercept/read the data being inserted.

Brandon Sheley
10-21-2010, 04:20 AM
Would it be hard to pull the info on the spy.php page and place it in a widget for the cms page?

MonsterDK
10-22-2010, 01:44 PM
Installed this mod and all I get is a blank page. No posts show on it :( vB 4.0.6

Can anyone offer any advice please?

Brandon Sheley
10-22-2010, 02:03 PM
Installed this mod and all I get is a blank page. No posts show on it :( vB 4.0.6

Can anyone offer any advice please?

make sure you have a SPY template

MonsterDK
10-22-2010, 02:49 PM
make sure you have a SPY template

Hiya,

Yip, just checked, I have 'spy.css' and 'SPY' template.

Any ideas?

Robert Waanders
10-23-2010, 01:35 PM
maybe a stupid question, I am looking for a mod like this for version 3.8 ... Anyone?

Robert

KW802
11-16-2010, 08:43 PM
Shawn,

Any chance I could get you to add a hook so that 3rd party add-ons can add events to the $what array? :)

Short of adding new hard-coded event IDs in the array, I'm thinking if there were at least a hook location available for us to use then I could add new events using some really high range (eg: 9000+) for 3rd party add-on events to be recorded. There might still be a chance that multiple 3rd party add-ons might decide to use the same range but at least it'd be a start so that we can get other events in there.

clubvr4
11-19-2010, 08:34 PM
There aren't currently group permissions, although it does automatically filter stuff that the user wouldn't have access to see (if they don't have access to a certain forum, they don't see new threads/posts within it).

Will you be including this as a feature? I'd like to prevent certain usergroups using it.

Thansk
Me

OttoBomb
11-27-2010, 03:00 AM
<a href="http://www.ww2f.com/spy.php" target="_blank">http://www.ww2f.com/spy.php</a> No posts seem to show up. Yes I have a "SPY" template and spy.css. Yes the forum is busy enough to display posts.

Also is there a control panel section for this? Most mods have a:
Settings >>> Options >>> DP Spy area. I take it this mod is simply installed or off?

digitalpoint
11-27-2010, 06:12 AM
Do you have anything showing up in the digitalpoint_spy table?

OttoBomb
11-27-2010, 11:33 AM
Not sure, how do I check this?

**Edit**
I just found this in my repair/optimize table in the admincp, looks like there is data there:
Table - Data Length - Index Length - Overhead
digitalpoint_spy - 594 Bytes - 3.0 KB - 0

SİMAR
11-27-2010, 11:43 AM
thanks super

lgeorgiadis
11-29-2010, 01:07 AM
Iam getting this error :(

Parse error: syntax error, unexpected '{', expecting ')' in /home/mo606/public_html/board/includes/class_core.php(4010) : eval()'d code on line 32

any ideas what could cause this?

digitalpoint
11-29-2010, 02:39 AM
Iam getting this error :(

Parse error: syntax error, unexpected '{', expecting ')' in /home/mo606/public_html/board/includes/class_core.php(4010) : eval()'d code on line 32

any ideas what could cause this?There is a vBulletin bug that was fixed in 4.0.3 that causes errors in template parsing, so I assume you are using something older than 4.0.3?

OttoBomb
11-29-2010, 03:45 AM
Not sure, how do I check this?

**Edit**
I just found this in my repair/optimize table in the admincp, looks like there is data there:
Table - Data Length - Index Length - Overhead
digitalpoint_spy - 594 Bytes - 3.0 KB - 0Any feedback here?

digitalpoint
11-29-2010, 04:21 AM
Would still need to know if you have any records in the table or not...

OttoBomb
11-29-2010, 04:23 AM
As I posted there is data in the table, do you need to see specific records?

digitalpoint
11-29-2010, 09:04 AM
No, just would need to know how many records. Also, what version of vBulletin are you using?

OttoBomb
11-29-2010, 05:33 PM
vB version 4.08 pl2, I'll pull the # or records when I get a minute.

New Joe
12-02-2010, 04:39 AM
As this one is Supported I'd like to use this Mod but how this one is set up looks wise I'm still using it:
https://vborg.vbsupport.ru/showthread.php?t=233759&page=9&highlight=ispy

This Mod shows the day and time of the post/thread where this Mod does not.
Hope you can add such features to this one soon.

Einjeher
12-03-2010, 02:04 PM
Is this working with Blog entries ?

compuminus
12-03-2010, 02:57 PM
Hi Shawn, I've been using this mod in my forums for several months now, and many members have been reporting intermittent outages with the page. It isn't browser or location specific, but has been happening quite a lot, and I've been really struggling to isolate the cause. To make matters worse, I've almost never been able to see this happening at my end (but am 100% sure it is happening to lots of other members).

The page still loads (and the rest of the site works fine), but the latest events will appear empty and nothing scrolls. Even when they refresh, nothing appears until perhaps several hours later. No particular event/post is known to trigger this, and the digitalpoint_spy table is fully populated and is getting updated correctly. The server load is also never very high. I suspect that this could be happening on other sites as well, but my site members just use the page so heavily that they notice the 5-10% of the time that it is happening.

getXML/processXML/push aren't working under certain conditions. Could it have to do with their function timings? Any ideas? Here's some of the customized timings:

var fadetime = .25;
var pushtime = 300;
var fadetime_end = 1.5;
var pushtime_end = 4000

Any help here would be greatly appreciated...

digitalpoint
12-03-2010, 05:39 PM
No, blog entries lack the hooks necessary to make it work for them. Plus, how often would you really see a new blog entry stream by compared to a new post?

digitalpoint
12-03-2010, 08:43 PM
Hi Shawn, I've been using this mod in my forums for several months now, and many members have been reporting intermittent outages with the page. It isn't browser or location specific, but has been happening quite a lot, and I've been really struggling to isolate the cause. To make matters worse, I've almost never been able to see this happening at my end (but am 100% sure it is happening to lots of other members).

The page still loads (and the rest of the site works fine), but the latest events will appear empty and nothing scrolls. Even when they refresh, nothing appears until perhaps several hours later. No particular event/post is known to trigger this, and the digitalpoint_spy table is fully populated and is getting updated correctly. The server load is also never very high. I suspect that this could be happening on other sites as well, but my site members just use the page so heavily that they notice the 5-10% of the time that it is happening.

getXML/processXML/push aren't working under certain conditions. Could it have to do with their function timings? Any ideas? Here's some of the customized timings:

var fadetime = .25;
var pushtime = 300;
var fadetime_end = 1.5;
var pushtime_end = 4000

Any help here would be greatly appreciated...Would be a little difficult to debug if you don't see it happening and I can't see it happening. Can you get one of them to take a screenshot or something when it happens? Maybe some error with the one of the text interfering with the XML transport or something. I've been meaning to move it over to just use the internal vB_XML_Builder class, which should solve any issues with the AJAX crapping out if strange characters somehow made their way into it.

AusPhotography
12-04-2010, 04:26 AM
Installed and working on vB4.0.7

NovoCiv
12-04-2010, 07:06 AM
Works. About a minute delay, but it will serve it's purpose. Thanks!

8thos
12-04-2010, 08:26 AM
This would great if I could choose which usergroups are able to use this feature but since I cannot, I am uninstalling.

SİMAR
12-04-2010, 08:51 AM
thanks install super man

MonsterDK
12-04-2010, 10:22 AM
I have posted here previously about the problem I had with this script.
But I did not get much response.

I will try again...

I get the same BLANK page. Nothing is showing. I have the SPY template and SPY.CSS.

I have just checked my database via phpmyadmin and I can't see the digitalpoint_spy table.

It would be listed down the left side panel in phpmyadmin with the long list?

preemz10314
12-04-2010, 10:48 AM
I have posted here previously about the problem I had with this script.
But I did not get much response.

I will try again...

I get the same BLANK page. Nothing is showing. I have the SPY template and SPY.CSS.

I have just checked my database via phpmyadmin and I can't see the digitalpoint_spy table.

It would be listed down the left side panel in phpmyadmin with the long list?

you might have installed wrong or are pointing to the wrong url , or maybe you installed it but forgot to enable it in the admincp?

mine is http://www.digitalbrass.com/spy.php and as you can see it works fine... maybe you are seeing a blank page because there is no activity on your forum? either that or you are pointing to the wrong URL to view it.

MonsterDK
12-04-2010, 11:30 AM
you might have installed wrong or are pointing to the wrong url , or maybe you installed it but forgot to enable it in the admincp?

mine is http://www.digitalbrass.com/spy.php and as you can see it works fine... maybe you are seeing a blank page because there is no activity on your forum? either that or you are pointing to the wrong URL to view it.

There is activity on my forum and I am viewing the correct URL.

thanks

New Joe
12-06-2010, 05:12 AM
So a few things dp:

Will you be making any changes to this Mod?
Adding the option to choose only certain user groups to be able to use this?
Adding 'Times' on the Posts and Threads which show on the spy page?

New Joe
12-08-2010, 03:55 AM
This one is the main thing I'd like to include, I have looked around in the spy.php file but don't know how to add or edit to do this:
Adding 'Times/Dates' on the Posts and Threads which show on the spy page.

I found this in the spy.php:
$output .= '<event>' .
'<id>' . $event['spyid'] . '</id>' .
'<what>' . $what[$event['action']] . '</what>' .
'<title>' . $event['title'] . '</title>' .
'<preview>' . $event['preview'] . '</preview>' .
'<who>' . iif ($event['action'] != 42, $event['username']) . '</who>' .
'<threadid>' . $event['threadid'] . '</threadid>' .
'<postid>' . $event['postid'] . '</postid>' .
'<userid>' . iif ($event['action'] != 42, $event['userid']) . '</userid>' .
'<forumid>' . $event['forumid'] . '</forumid>' .
'<forumname>' . $vbulletin->datastore->registry->forumcache[$event['forumid']]['title'] . '</forumname>' .
'</event>';
}

I tried to add time/date but as i am not a coder i really did not know what i was doing and it did not work.
Anyone could give a heads up for what code and where to add it so it will show the date and time on the spy page.
Thanks.

digitalpoint
12-08-2010, 07:13 PM
Not really sure what the real value in the date/time is to be honest. If your board is busy, they would just all be streaming through with the current time and they would mostly all be the same. If your board is inactive, it would make your board appear very inactive since you could see the huge gaps in time between anything happening...

bada_bing
12-08-2010, 07:46 PM
Nice will this work for vb 3.8?

MonsterDK
12-09-2010, 11:55 AM
Nice will this work for vb 3.8?

be nice if it actually worked at all for me. vb 4.x

Reinhard
12-09-2010, 05:21 PM
Hi Shawn,

spy worked in 4.08, but shows thread titles with german umlauts as "unknown" and display not the first message line, if there are umlauts.

digitalpoint
12-09-2010, 06:35 PM
Nice will this work for vb 3.8?Nope, it's 4.x only.

MonsterDK
12-09-2010, 07:02 PM
But seems pretty limited to what it will work on.
I have a fresh install of vb 4.0.6 pl 1 as a test board. I've disabled the few mods I had on there.
and also that will not work.

I dunno what the problem is but the point of on my main board and there been other mods possibly causing a conflict can't be the case.

It's a strange one... offered to allow the Coder access to my test board but that was declined.
So it seems support it quite limited then unfortunately. Shame because I've seen other people comment on this issue as well.

OttoBomb
12-09-2010, 08:28 PM
I have a 4.1 vb and it doesn't work for me either. I have a stock install and it baffles me why it isn't working, but I certainly don't think support actually means he will provide tech support for my board. :) Most mods work for most people, but 100% compatibility is beyond most coders. It doesn't work for me, and I can live with that. :)

MonsterDK
12-09-2010, 08:35 PM
I have a 4.1 vb and it doesn't work for me either. I have a stock install and it baffles me why it isn't working, but I certainly don't think support actually means he will provide tech support for my board. :) Most mods work for most people, but 100% compatibility is beyond most coders. It doesn't work for me, and I can live with that. :)

I understand this. But if were saying that specific board installs are not working and there is nothing to cause this. Surely, it deserves a closer look?

I'd even throw a couple of quid in the pot for the coders time. How on earth do we progress with this?

digitalpoint
12-09-2010, 10:36 PM
For a site that has it installed, but it's not working, can you give me the URL to the spy.php page and also check that you have something in the digitalpoint_spy table? I have a theory... but need to see one that is doing it (don't need server access, just normal public access to see the spy.php page).

MonsterDK
12-10-2010, 10:38 AM
For a site that has it installed, but it's not working, can you give me the URL to the spy.php page and also check that you have something in the digitalpoint_spy table? I have a theory... but need to see one that is doing it (don't need server access, just normal public access to see the spy.php page).

dp, as I asked you in PM, what is this digitalpoint_spy table? and where is it found?
as I can't find it and you sorta dismissed it saying nothing apart from installing the mod needs to be done.
thanks

betts02
12-10-2010, 10:44 AM
Is there a way to use this in a forumblock ?

ShadowStalker
12-10-2010, 03:15 PM
Doesn't work on 4.1 PL2 for me

MonsterDK
12-10-2010, 03:22 PM
For a site that has it installed, but it's not working, can you give me the URL to the spy.php page and also check that you have something in the digitalpoint_spy table? I have a theory... but need to see one that is doing it (don't need server access, just normal public access to see the spy.php page).

I will however provide you with the test site url in private (PM).

thanks

digitalpoint
12-10-2010, 08:06 PM
dp, as I asked you in PM, what is this digitalpoint_spy table? and where is it found?
as I can't find it and you sorta dismissed it saying nothing apart from installing the mod needs to be done.
thanksIt should be in your forum database along with the other normal forum tables.

digitalpoint
12-10-2010, 08:25 PM
The ones I've seen not working so far has the web servers returning an HTTP "406 - Not Acceptable" when the web browser requests the XML feed. This is going to be some sort of configuration issue on the server-side.

Maybe a mod_security module set in overly aggressive blocking mode.

You could try adding this to your .htaccess file to test if disabling mod_security fixes it:

SecFilterEngine Off

Either way, it's something specific to the web server that's forcing a 406 error, but only when it's getting the XML feed of new events.

MonsterDK
12-11-2010, 11:16 PM
The ones I've seen not working so far has the web servers returning an HTTP "406 - Not Acceptable" when the web browser requests the XML feed. This is going to be some sort of configuration issue on the server-side.

Maybe a mod_security module set in overly aggressive blocking mode.

You could try adding this to your .htaccess file to test if disabling mod_security fixes it:

SecFilterEngine Off

Either way, it's something specific to the web server that's forcing a 406 error, but only when it's getting the XML feed of new events.

If I try that, I get the following error when putting a .htaccess file on my forum root with that line.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@blah.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

digitalpoint
12-12-2010, 06:15 AM
You will want to check with your hosting company to see if they have mod_security enabled or something similar.

Habsy
12-14-2010, 06:32 AM
Is this working on 4.1 PL2 or not?

digitalpoint
12-14-2010, 06:35 AM
Yep, works fine with 4.1.x

MonsterDK
12-14-2010, 05:25 PM
Digital Point.... my host fixed the problem. They had to change a setting on their security that was blocking something.
Works great now.

So for those of you that can't get this to work. You have the templates, you have the database table.. still does not work? Contact your host and ask them to look at it. Refer to the advice that digital point gave me on the previous page.

Thanks for your help digital point!!

MonsterDK
12-14-2010, 05:27 PM
QUESTION:
Is there a way to remove the link on the community drop down menu?
I'd rather just use the link to access it.

digitalpoint
12-14-2010, 05:55 PM
You can disable the "Add Spy Link To Navigation" plug-in for the spy.

res6cue
12-15-2010, 03:39 PM
Nice mod!

One issue found and fixed, figured I'd pass it along so you can update the php file. After trying out the 'Only Include Subscribed Forums' function, I received a database error email advising me that 'subscribeforum' was not a valid table. Naturally this is true, because I use the vb_ prefix in my database. So I changed line 80 in the php file to include the table_prefix, and it works fine now.

In spy.php change line 80 from:
FROM subscribeforum


To:
FROM " . TABLE_PREFIX . "subscribeforum

OziloZ
12-19-2010, 01:36 AM
i have problems with turkish characters

It says "unknown" at thread/post section when somebody creates a new thread or post a message.

Is this compatible with vb 4.1.0 PL2?

OldSchoolDSL
01-10-2011, 03:53 PM
Nice mod!

One issue found and fixed, figured I'd pass it along so you can update the php file. After trying out the 'Only Include Subscribed Forums' function, I received a database error email advising me that 'subscribeforum' was not a valid table. Naturally this is true, because I use the vb_ prefix in my database. So I changed line 80 in the php file to include the table_prefix, and it works fine now.

In spy.php change line 80 from:
FROM subscribeforum


To:
FROM " . TABLE_PREFIX . "subscribeforum


This surely does help. Thank you.

Installed and working

4.1 PL2 :)

res6cue
01-11-2011, 06:06 PM
Ok I found a rather odd issue that hopefully can be resolved:

From time to time, nothing populates on the page for logged in users. However if you log out and check the page as a guest, it populates! I've tried a ton of things to get it to work, including disabling all other mods, to no avail. The digitalpoint_spy table has all the entries in it (as evidenced by the page populating for guests), but it just refuses to populate for logged in users from time to time. The 'Only Include Subscribed Forums' option makes no difference, either it works or it doesn't regardless.

Is there anything that could be causing this behavior? It's driving me nuts, because I really want to keep this mod around, it's extremely handy and our users love it...when it works!

beatyourtruck
01-12-2011, 02:28 AM
You can disable the "Add Spy Link To Navigation" plug-in for the spy.

Can you explain this a little more? what file to edit? Thanks! GREAT mod....my moderators love it to watch over the herd LOL

res6cue
01-12-2011, 09:19 AM
Can you explain this a little more? what file to edit? Thanks! GREAT mod....my moderators love it to watch over the herd LOL

The easiest way to disable the link from showing on the navbar is to go to the Plugin Manager in the AdminCP, find Product : Digital Point Spy, uncheck the Active box for Add Spy Link To Navigation, then save active status. No need to edit any files.

digitalpoint
01-12-2011, 06:32 PM
Ok I found a rather odd issue that hopefully can be resolved:

From time to time, nothing populates on the page for logged in users. However if you log out and check the page as a guest, it populates! I've tried a ton of things to get it to work, including disabling all other mods, to no avail. The digitalpoint_spy table has all the entries in it (as evidenced by the page populating for guests), but it just refuses to populate for logged in users from time to time. The 'Only Include Subscribed Forums' option makes no difference, either it works or it doesn't regardless.

Is there anything that could be causing this behavior? It's driving me nuts, because I really want to keep this mod around, it's extremely handy and our users love it...when it works!Are you getting any JavaScript or XML errors on the page when it doesn't show the feed?

Da-Vinci
01-12-2011, 08:47 PM
Hi DP, great mod, installed and working 100% on 4.1.0 PL2, the only question I have is, are there any options in the Admin CP?

I saw very early on in the thread that somebody mentioned they have there's set to populate the last 10 entries from a historical record, yet I just can't find any options to alter anything anywhere in the ACP.

My forum is fairly busy but has peak times so at certain times of the day it's busier than others, I'd like it to load the last 10 Posts or Threads when the page is opened, obviously if the forum is experiencing lots of Posts/Threads these records would quickly move to the bottom of the page, otherwise they will sit there and show the last 10 entries.

Thanks in advance, installed and rated 5.

digitalpoint
01-12-2011, 09:17 PM
As long as you've had posts within the last hour, it should fully populate on the initial page with the 25 last events...

res6cue
01-12-2011, 09:28 PM
Are you getting any JavaScript or XML errors on the page when it doesn't show the feed?

Nope, the page itself loads fine, it just never populates. Checked in Firefox, Chrome and IE, same results for each. What's odd is that it populates for Guests as well as Users Pending Moderation, but not for Registered Users or any other "full access" accounts. Well, not consistently at least, sometimes it will and sometimes it won't. I just checked it as I was typing this and it wouldn't populate when I was logged in (either under my admin account or my test Registered Users account), however as soon as I logged out it started to populate. :erm:

Da-Vinci
01-12-2011, 10:01 PM
As long as you've had posts within the last hour, it should fully populate on the initial page with the 25 last events...

Yes I can see more posts now, it must of been because I had only just installed it and was only getting 4 results now, I'm nearer to 25, great hack thanks very much for the share.

beatyourtruck
01-13-2011, 01:53 AM
The easiest way to disable the link from showing on the navbar is to go to the Plugin Manager in the AdminCP, find Product : Digital Point Spy, uncheck the Active box for Add Spy Link To Navigation, then save active status. No need to edit any files.

Thank you! Been using vB for years and never really realized there were options in there for me to play with :o Fixed.

OlijO
01-13-2011, 07:07 PM
Hi everybody
I try to use it to my forum vB4.1.0PL2
I obtain a white page, no message.
In the AdminCP, is there any option to enable ? I can't see any option...

Paul.
01-15-2011, 05:04 PM
I get an error.. I'm sure it's something that can easily be fixed?

Parse error: syntax error, unexpected '{', expecting ')' in D:\root\root\root\root\Forum\includes\class_core.p hp(4010) : eval()'d code on line 32

alfanexus
01-16-2011, 11:00 AM
No, blog entries lack the hooks necessary to make it work for them. Plus, how often would you really see a new blog entry stream by compared to a new post?

Actually about 40-50 percent of posts on my site are blogs :) So I guess it depends of the kind of site.

New Joe
01-27-2011, 02:53 AM
I have posted in the past on this but here we go.

I have been using the vBIspy one for a long time, it works out of the box and never stops working.
I would like to change over to this one but at this present time I am unable to as this one still doesn't work right.

I installed this again today.
I opened up 2 tabs.
One with the vBIspy and one with this mod.

Both were working and posts and threads up dating fine.
But when there was about an hour between posts this one stopped up dating but the vBispy continued to up date after the hour.

So it looks like if there are no post after an hour then this one stops working, where as the vBIspy keeps on working.

I am sure there is a simple way to have this one do the same as the vBIsy mod.
I will wait for digitalpoint to get back to me with the answer.

digitalpoint
01-27-2011, 08:39 AM
The next version will have better handling of thread titles and usernames that have strange characters in them... I would bet you had a thread come across that it choked on the title or username posting it.

New Joe
01-27-2011, 08:54 AM
Not sure about the above, but it was all working fine until there were no posts for an hour, then it just stopped.

When will the next version be out?

digitalpoint
01-27-2011, 07:16 PM
The 1.1.0 version I just uploaded should handle non-standard characters better. Go ahead and try it out and let me know.

res6cue
01-27-2011, 07:23 PM
Ok I found a rather odd issue that hopefully can be resolved:

From time to time, nothing populates on the page for logged in users. However if you log out and check the page as a guest, it populates! I've tried a ton of things to get it to work, including disabling all other mods, to no avail. The digitalpoint_spy table has all the entries in it (as evidenced by the page populating for guests), but it just refuses to populate for logged in users from time to time. The 'Only Include Subscribed Forums' option makes no difference, either it works or it doesn't regardless.

Is there anything that could be causing this behavior? It's driving me nuts, because I really want to keep this mod around, it's extremely handy and our users love it...when it works!

Any fix for this issue? You asked me a followup question, then never replied again.

digitalpoint
01-27-2011, 07:25 PM
What's the URL you have it running at?

res6cue
01-27-2011, 07:27 PM
I don't currently, I uninstalled it because it wasn't doing much good not populating. I will try installing the latest release and see if it behaves better.

kingMOB
01-28-2011, 08:32 AM
Latest version worked in Chrome, not in Firefox. This one works in Firefox, not in Chrome, vBulletin 4.0.8 here. Any word for a widget or forum block? =)

digitalpoint
01-28-2011, 08:37 AM
What's the URL you have it installed at that it's not working with Chrome? Works fine in Chrome for me.

As far as a widget block... It just hasn't been a huge priority since we don't use the sidebar on our site, so... :) But one of these days... Was thinking about maybe doing something along the lines putting new events into the area at the top of our pages that currently stream new tweets (relevant to the forum someone is in).

For example: http://forums.digitalpoint.com/forumdisplay.php?f=64 forum shows tweets related to forum software (ignore the "Did You Know..." one.

wipedout
01-28-2011, 10:03 AM
any way to make this function more like on this site?

http://www.facepunch.com/fp_ticker.php and if so, how hard would implementing it be?

OldSchoolDSL
01-28-2011, 02:33 PM
Installed update & working

4.1.1

digitalpoint
01-28-2011, 05:56 PM
any way to make this function more like on this site?

http://www.facepunch.com/fp_ticker.php and if so, how hard would implementing it be?So pretty much just cut everything our except new posts?

wipedout
01-28-2011, 08:16 PM
So pretty much just cut everything our except new posts?

Actually, rather like, removing the preview but making it indicate if you have posted in the thread, or if you have been mentioned in the thread. basically making it a little more under the "keep it simple" principle.

Showing post icons on the thread in question might also be a nice feature.

Other than that, ive been enjoying this plugin for a long time, really really great work!

digitalpoint
01-28-2011, 10:57 PM
You can already have the Spy only show threads you are subscribed to (ones you care about). As far as being mentioned in a thread, to be honest that seems kind of well... pointless.

It would be better to have a system that monitored new threads for keywords the user picked (if they wanted to pick their username, then they could, but they could also pick others). And be notified via email. Sitting there watching every thread stream across in hopes someone mentioned your username doesn't seem terribly efficient. Especially considering you literally would have to sit there and watch since after 25 more posts in the forum were made, it would have scrolled off the Spy and you wouldn't see any longer.

wipedout
01-29-2011, 04:32 AM
You can already have the Spy only show threads you are subscribed to (ones you care about). As far as being mentioned in a thread, to be honest that seems kind of well... pointless.

It would be better to have a system that monitored new threads for keywords the user picked (if they wanted to pick their username, then they could, but they could also pick others). And be notified via email. Sitting there watching every thread stream across in hopes someone mentioned your username doesn't seem terribly efficient. Especially considering you literally would have to sit there and watch since after 25 more posts in the forum were made, it would have scrolled off the Spy and you wouldn't see any longer.

i have to agree with you, keyword monitoring would be alot better i can see your whole thing with reacting to someone's usename, however i think threads you've posted in (i dont subscribe to all posts i have posted in) i think that'd still be a nbice feature for down the road sometime should it not be too hard to add.

jgt58
01-29-2011, 10:56 AM
ever since the update , mine has quit working??? Can you post the old XML?

jgt58
01-29-2011, 01:20 PM
uninstalled , making my server load go up 15 points!

digitalpoint
01-29-2011, 05:08 PM
ever since the update , mine has quit working??? Can you post the old XML?What's the URL you have it installed at?

jefferis
02-03-2011, 10:55 PM
I just installed this product, because vaispy was just conking out and stopped feeding. However, is there a settings page? I need to be able to block certain forums from posting to this feed, which are restricted to managers.

jefferis
02-03-2011, 10:57 PM
Trying to make sure I'm subscribed to the thread

Here's our link:
http://www.igotasti.com/vBforum/spy.php

Boofo
02-03-2011, 11:26 PM
I just installed this product, because vaispy was just conking out and stopped feeding. However, is there a settings page? I need to be able to block certain forums from posting to this feed, which are restricted to managers.

It should follow forum permissions. Look at it as a guest.