vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - vBISpy - AJAX real-time feed of new posts/threads (https://vborg.vbsupport.ru/showthread.php?t=125947)

digital_sc4rz 12-08-2006 12:35 PM

ThanX:cool:

tendo 12-08-2006 03:47 PM

dope ! thx

Jon. 12-12-2006 05:41 PM

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

Quote:

Originally Posted by WritersBeat (Post 1137621)
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

Quote:

Originally Posted by Cole2026 (Post 1071600)
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

Quote:

Originally Posted by tansu (Post 1139094)
is there a fix for "Who's Online" page?

The fix is listed in the product's description:
Quote:

Optional add-ons

Who's Online mod for this: https://vborg.vbsupport.ru/showthread.php?t=126209
MPDev, any ideea about my problem ?

Jon. 12-16-2006 10:54 AM

Quote:

Originally Posted by MPDev (Post 1137290)
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 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 == )
{
$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_trimmed_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'], truetrue));
    
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title($thread['preview'], 200));
    
$thread['preview'] = fetch_censored_text(fetch_word_wrapped_string($thread['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 )
{
    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">&nbsp;</td><td class="$rowcolor smallfont">&nbsp;</td><td class="$rowcolor smallfont">&nbsp;</td><td class="$rowcolor smallfont" align="center">&nbsp;</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">&nbsp;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();" /> &nbsp;
<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;">&nbsp;</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">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row22" style="display: none;" class="spyfade2"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row23" style="display: none;" class="spyfade3"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row24" style="display: none;" class="spyfade4"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row25" style="display: none;" class="spyfade5"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
</tbody>
</table>
VAPRINT;
}

$output .= <<<VAPRINT
$footer
VAPRINT;

echo 
$output;
?>


Expertu 12-16-2006 10:55 AM

Quote:

Originally Posted by MPDev (Post 1139080)
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

Quote:

Originally Posted by Jon. (Post 1139664)
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

Quote:

Originally Posted by Expertu (Post 1139665)
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.

Brew 12-31-2006 02:51 PM

Quote:

Originally Posted by MPDev (Post 1069236)
Yes, forum permissions are checked. You can also exclude specific forums by changing the line:

Code:

    // 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

Quote:

Originally Posted by Brew (Post 1148095)
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.

Quote:

Originally Posted by ninjashoes (Post 1148442)
-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.

Quote:

Originally Posted by nicker (Post 1148776)
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:

Code:

        <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

Quote:

Originally Posted by GamerJunk.net (Post 1151021)
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.

JoeP 01-06-2007 02:32 PM

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

Quote:

Originally Posted by Doglet (Post 1141250)
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

Quote:

Originally Posted by ngaiox (Post 1151788)
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 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

Quote:

Originally Posted by kungfujesus (Post 1107750)

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.

Quote:

Originally Posted by MPDev (Post 1109282)

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

Code:

    $thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title($thread['preview'], 200));
line 158 in vaispy.php - the 200 is the characters it's trimming from.

T.S. 01-21-2007 01:21 AM

Quote:

Originally Posted by Dankness (Post 1132663)
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

Code:

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,126,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

Quote:

Originally Posted by JoeP
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.

stud 01-22-2007 06:00 PM

Quote:

Originally Posted by Trana (Post 1151173)
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!


All times are GMT. The time now is 05:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02294 seconds
  • Memory Usage 2,041KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete