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)

Trana 09-06-2006 04:09 PM

Nice hack.

It would be even cooler if you had some sort of fading background color for the table cells or div tags, so you could easily see what was new.

MPDev 09-06-2006 04:15 PM

I made a slight change to vaispy.php to wrap words a little better and removed my own preg_reaplce to use vB's code to remove quotes.

Boots 09-06-2006 04:53 PM

any idea why it won't work if I'm logged in?

MPDev 09-06-2006 04:54 PM

Sorry, no idea.

DementedMindz 09-06-2006 05:00 PM

Quote:

Originally Posted by MPDev
If I wanted to DDOS someone's site I would only have to call any one of the number of vBulletin scripts repeatedly.


ok so you have no plans on making this members only or giving it permissions?

MPDev 09-06-2006 05:10 PM

I would consider it; although I would expect adding a couple lines of code to the script would take care of it (after the global.php include).

Code:

if ( !$vbulletin->userinfo['userid'] )
{
    print_no_permission();
}

would suffice.

voteforbird 09-06-2006 05:35 PM

Mine definitely isn't working:
http://www.volconvo.com/forums/vaispy.php

It's displaying just the one batch of posts, and the posts are from random times (like yesterday or months ago). What's going on?

nymyth 09-06-2006 05:53 PM

Works great on my site... www.jaydabhi.com/forum/vaispy.php

Peace

Acers 09-06-2006 06:37 PM

a small fix...
in the by tab you have the userid pointing to the userid of the thread starter. It should be pointing to the guy who made the post..

change this in viaspy.php
find
Code:

SELECT thread.*, post.pagetext AS preview
make it
Code:

SELECT thread.*, post.pagetext AS preview, post.userid AS lastpuserid


then find
Code:

<userid>{$thread['postuserid']}</userid>
replace with
Code:

<userid>{$thread['lastpuserid']}</userid>

grt addon though :) congrats :D

ps: i have it only for selected usergroups. For those who want permissions can simply do this

add this below
require_once('global.php') line in viaspy.php

//set up usergroup permissions for view

if (!is_member_of($vbulletin->userinfo , #usergroups to check#))
{
print_no_permission();
}

or

Code:

//set up usergroup permissions for view
$groupstocheck = explode(',', $vbulletin->options['spy_usergroups']);
if (!is_member_of($vbulletin->userinfo , $groupstocheck))
{
        print_no_permission();
}

where spy_usergroups is admincp setting(make a new setting in admincp with same name) which contains comma separated list of allowed usergroups.(crude fix, best is to make a product and bitfield:D)

MPDev 09-06-2006 06:55 PM

I modified the va_spy.js and vaispy.php script to include the change above and also add a date stamp to the entry.


All times are GMT. The time now is 11:11 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.01424 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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