vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - vBISpy - AJAX real-time feed of new posts/threads (https://vborg.vbsupport.ru/showthread.php?t=233759)

Alien 01-27-2010 01:49 AM

Quote:

Originally Posted by compuminus (Post 1965749)
Ideally the alternate row colors would be drawn from the stylevars, as opposed to being hard-coded into the php. I have a light and dark style for my forums, so as it stands now, vBISpy won't look right with one of them. Perhaps alt1 could correspond to threadbit_background and alt2 could be threadbit_alt_background ? Thanks for porting this to vB4!

I have this same issue, please consider this it's very important for those with light and dark styles both!

compuminus 01-28-2010 03:32 PM

I just noticed another issue that I'm surprised I hadn't spotted before:

All of the lower menu items disappear on the vaispy.php page (New Posts, Private Messages, FAQ, Community, etc.). Only the very top level items appear (Forum, What's New, etc.)

Should be a reasonably simple fix...

SpankMe 01-29-2010 11:14 PM

Quote:

Originally Posted by compuminus (Post 1967574)
Great. It's not a perfect icons coding though, since it does not always correctly use the thread_dot_16-right.png or thread-16-right.png as opposed to thread_dot_16.png or thread-16.png, respectively (when appropriate), but it's pretty close.

Look forward to the new release! Thanks!

For now just..

cp statusicon/thread_dot-16.png BP-Brown/statusicon/thread_dot_hot-16.png
cp statusicon/thread_dot-16.png BP-Brown/statusicon/thread_dot-16.png
cp BP-Brown/statusicon/forum_old-16.png BP-Brown/statusicon/thread-16.png

it fits well. And it's green. :)

New Joe 02-02-2010 08:22 AM

Any chance of getting this made: https://vborg.vbsupport.ru/showthread.php?t=126421
vBISpy module - live AJAX feed of new threads - for vBAdvanced CMPS

dosadno 02-03-2010 10:39 AM

Sorry if this has been asked, but how can i set it to be viewable by only certain usergroups?
I would like that only admins and moderators can use this mod...

BTW great mod

Sushubh 02-03-2010 10:53 AM

i guess do not reveal the URL of the vaispy page!

that's what i do. only a limited number of people know about the vaispy page on my forum.

dosadno 02-03-2010 10:58 AM

There must be a beter way, besides, tab with the url is alredy publised

shofolofo 02-05-2010 08:03 PM

yes I need this aswell .. anyway to define the user group ids ?

chris1979 02-13-2010 10:13 AM

Are there some customisation instructions somewhere? I cannot remember from the 3.8 version... how do we select which forums to include, and how can we set how often to check for updates?

Eric 02-13-2010 10:21 AM

Quote:

Originally Posted by shofolofo (Post 1975611)
yes I need this aswell .. anyway to define the user group ids ?

This will be in the next update. In the meantime, if you want to block certain usergroups from viewing vaispy...

Edit vaispy.php and find:
PHP Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// ####################################################################### 

and after that, add (only an example)
PHP Code:

if (is_member_of($vbulletin->userinfo8))
{
    
print_no_permission();


Where '8' would be the usergroup id. You can also do multiple usergroups. Let's say you had 8, 9, 10 that you wanted to block:
PHP Code:

if (is_member_of($vbulletin->userinfo8910))
{
    
print_no_permission();


Quote:

Originally Posted by chris1979 (Post 1981283)
Are there some customisation instructions somewhere? I cannot remember from the 3.8 version... how do we select which forums to include, and how can we set how often to check for updates?

Since this is based on the original vBISpy, I've not really changed the mod much. It doesn't make use of the product system/templates/phrases/etc, so it has to be done manually. You can not currently choose which forums to include, you can only choose to exclude forums:

Around line 44 in vaispy.php
PHP Code:

/**
* Do not list these forums even if they have 
* permissions (test categories, etc)
*/
$blockforums ''

As far as the time between updates, that's controlled by the javascript, in the clientscript/va_spy.js file. In that file, around line 38 you'll see:
HTML Code:

/* Delay between polls to the XML feed for new updates to page */
var xmldelay = 3000;

This value is seconds x 1000

So, let's say you wanted it to be 6 seconds, you'd change it to:
HTML Code:

/* Delay between polls to the XML feed for new updates to page */
var xmldelay = 6000;



All times are GMT. The time now is 09:33 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.01284 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)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
  • (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