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)

kall 09-13-2006 05:30 AM

Nice. :)

Although.. it doesn't seem to like either GARS or the RSS bot feature..

http://www.nzboards.com/forums/nzbpostspy.php

Only the New Post has a 'Forum' entry.

*edit* In Firefox, that is.

nix 09-13-2006 05:59 AM

I'm using it with RSS feeds and its working fine in FF. Same with Gars.

kall 09-13-2006 06:14 AM

Here's the code.. it looks like something is being stripped.
Code:

<td class="alt1Active"><strong><a href="showthread.php?t=30950">Object from 'space' found by chance - Stuff.co.nz</a></strong><br><div class="smallfont"><br><table border="0" cellpadding="2" cellspacing="7" width=""><tbody><tr><t><a... replies="" 0="" views="" (0=""></a...></t><td class="alt1" align="center"><div class="smallfont"><strong><a href="forumdisplay.php?f=76">New Zealand News Feeds</a></strong></div></td></tr></tbody></table></div></td>
I see this in one of the .js files:
Code:

if (e instanceof RangeError) return '...';
Range error for those threads that have 0 replies and are posted by the RSS bot.. in FF?

ForumDog 09-13-2006 10:40 AM

Quote:

Originally Posted by MPDev
The thing I don't like about stylevar is having to explain to everyone that they have to copy those images to all their style directories. This is much more simplistic.

True, it just makes it impossible for people with multiple themes to be consistent. Up to you if you want to do this since it adds a tiny amount of uncached js, but for everyone else wanting to use multiple themed buttons (or having no choice because of multiple style directories)...

In va_spy.js

REMOVE

Code:

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;
}



In vaispy.php

FIND:

Code:

<script language="javascript" type="text/javascript">
<!--
    spymax = 25;
// -->
</script>

Note: I added the js commenting for older browser compatbility and the javascript type for code validation, I'll just assume they'll be added in future versions. If you don't have it as above, replace it.



ADD BELOW:
Code:

<script language="javascript" type="text/javascript">
<!--
function pauseSpy() {
        var playimg = document.getElementById("vaplay");
        var pauseimg = document.getElementById("vapause");

        playimg.src = "$stylevar[imgdir_misc]/play_up.gif";
        playimg.alt = "Click to Play";
        pauseimg.src = "$stylevar[imgdir_misc]/pause_down.gif";
        pauseimg.alt = "Paused...";

        pause();
}

function playSpy() {
        var playimg = document.getElementById("vaplay");
        var pauseimg = document.getElementById("vapause");

        playimg.src = "$stylevar[imgdir_misc]/play_down.gif";
        playimg.alt = "Playing...";
        pauseimg.src = "$stylevar[imgdir_misc]/pause_up.gif";
        pauseimg.alt = "Click to Pause";

        resume();
}

function pause() {
        play = 0;
}

function resume() {
        play = 1;
}
// -->
</script>

FIND

Code:

<img id="vaplay" src="images/misc/play_up.gif" alt="Play" title="Play Comments" onclick="playSpy();" /> &nbsp;
<img id="vapause" src="images/misc/pause_up.gif" alt="Pause" title="Pause Comments" onclick="pauseSpy();" />

REPLACE WITH:
Code:

<img id="vaplay" src="$stylevar[imgdir_misc]/play_down.gif" style="cursor:pointer;" alt="Play" title="Play Comments" onclick="playSpy();" /> &nbsp;
<img id="vapause" src="$stylevar[imgdir_misc]/pause_up.gif" style="cursor:pointer;" alt="Pause" title="Pause Comments" onclick="pauseSpy();" />

Note: Added CSS to change the mouse to the hand icon when hovering over the buttons as well.

And make sure your Play/Pause buttons are uploaded to the misc directory of each individual theme.

Finis.

ForumDog 09-13-2006 02:39 PM

Quote:

Originally Posted by mini2
For those that use the selective forum fiter, you can have that apply also to this spy by doing this...

After:

Code:

$blockforums = "";
Add:

Code:

$selectivefiltered = $vbulletin->userinfo['excludeforumids'];
After:

Code:

    AND forumid NOT IN (0$blockforums)
With:

Code:

    AND forumid NOT IN (0$blockforums$selectivefiltered)
Could be worth adding this as default, not sure if it will cause errors for those that do not use the selective forum filters, but I doubt it.

Great stuff :D and these instructions also work in exactly the same way with the Andreas's Opt-Out Forums from Get New/Get Daily for 3.5.4 - also works on 3.6 - (https://vborg.vbsupport.ru/showthread.php?t=91025). Just instead of:

Code:

$selectivefiltered = $vbulletin->userinfo['excludeforumids'];
use:

Code:

$gnpoptoutforums = $vbulletin->userinfo['excludeforumsgnp'];

MPDev 09-13-2006 04:31 PM

I'd be curious if the selected forums code works on sites where people do not use that feature; if so, I can add it.

On another note, I've updated vBIspy.com so that it can pull threads using vBulletin's external.php script; so we can aggregate content with vBIspy client (you get some additional features like profile links, forum specific links, views/replies) or with vB's own internal RSS feed.

I am updating the download with a new version that changes the forumpermissions area to include checking for password protected forums.

ForumDog 09-13-2006 04:46 PM

It's not selected forums code, it's deselected forums code to exclude forums from getnew searches. It's not default vBulletin code so I don't see how it could work on those without the appropriate plugin installed but I don't see why it would cause a problem for people without it. Should just be skipped over. I'll try it properly later.

Um, could you possibly not advertise in the hack update feature. :p

MPDev 09-13-2006 05:18 PM

Quote:

Originally Posted by ForumDog
Um, could you possibly not advertise in the hack update feature. :p

Apologies. Given the time invested in the mod and having only sent out one update, I don't think a line about vbispy.com integration is out of place; but that's just me, others might disagree.

theodonnells 09-14-2006 07:58 AM

Quote:

Originally Posted by buro9
Do you have a different language pack from the default installed? It's missing the encoding, which is normally part of the localisation.

Indeed the line in the PHP file is:
PHP Code:

echo '<?xml version="1.0" encoding="' . $stylevar['charset'] . '"?>' . "\r\n";


Ah the language problem again...See i had english and german languages on my forum.When i installed the german it changed some of my english phrases too.Have tried unsuccesfully to fix this..Got querys to run from vb.com etc reinstalled original language but nothing shifts it...So probably is the language that is a problem..

MPDev 09-14-2006 10:21 PM

Quote:

Originally Posted by ForumDog
It's not selected forums code, it's deselected forums code to exclude forums from getnew searches. It's not default vBulletin code so I don't see how it could work on those without the appropriate plugin installed but I don't see why it would cause a problem for people without it. Should just be skipped over. I'll try it properly later.

Um, could you possibly not advertise in the hack update feature. :p

I'd probably say that any code to support other plugins should not be standard; if you use that mod you can add the code as you documented.


All times are GMT. The time now is 04:34 AM.

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.01746 seconds
  • Memory Usage 1,767KB
  • 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
  • (13)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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