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.

Hellmonkeys 09-06-2006 07:09 PM

Very cool mod, but a few comments:
* Fix the 'on' before dates Today and Yesturday, for example: "on Today 03:07 PM" -- that just doesn't sound right.

* Somehow add a drop-down quick reply or something along this nature to reply to the post.

EDIT: Also, you should make it so the image directory goes to the image directory of the current template, and not the /images/ directory in the root vBulletin install.

EDIT #2: For thoes who want to do this manually, replace all occurances of: images/misc WITH $stylevar[imgdir_misc] in vaispy.php

EDIT #3: There are also images in the va_spy.js that show up AFTER you pause it, and it won't work to replace thoes... I dunno, I don't have time to investigate right now.

nymyth 09-06-2006 07:26 PM

^^ I was just about to post edit2...lol....

Peace

Cheertobi 09-06-2006 07:37 PM

MPDev, with your new code I got:

Username
on null

But no timestamp...

Tobi

Get Shorty 09-06-2006 07:44 PM

This is great! I wonder how much it affects server load, though. I have a pretty small forum that I'll try it on soon. :)

BamaStangGuy 09-06-2006 07:54 PM

Not working for me here: http://www.mustangevolution.com/forum/spy.php

Pathor 09-06-2006 07:57 PM

It doesn´t work in IE6. Can anybody confirm that?

nymyth 09-06-2006 07:57 PM

^^did you make sure u uploaded the javascript files into the clientscript folder??

Peace

BamaStangGuy 09-06-2006 07:58 PM

I cant get it to work in either firfox or IE6 for my site.

nymyth 09-06-2006 08:00 PM

^^works fine in IE for me....

Peace

Cheertobi 09-06-2006 08:01 PM

Quote:

Originally Posted by BamaStangGuy
I cant get it to work in either firfox or IE6 for my site.

You changed the name of the php file! As far as I know you also have to do this in some of the javascript files. Maybe you forgot to do this?!

Tobi

BamaStangGuy 09-06-2006 08:05 PM

Quote:

Originally Posted by Cheertobi
You changed the name of the php file! As far as I know you also have to do this in some of the javascript files. Maybe you forgot to do this?!

Tobi

I tried it both ways, with default viaspy and this one. Plus none of the Javascript files reference the name of the file

BamaStangGuy 09-06-2006 08:06 PM

Quote:

Originally Posted by nymyth
^^works fine in IE for me....

Peace

On my site?

nymyth 09-06-2006 08:07 PM

^^va_spy.js is the only javascript file that would need to be edited if you change the name of the php file.

Peace

BamaStangGuy 09-06-2006 08:09 PM

Quote:

Originally Posted by nymyth
^^va_spy.js is the only javascript file that would need to be edited if you change the name of the php file.

Peace

Thanks I missed it

BamaStangGuy 09-06-2006 08:14 PM

Feature request: Parse Smilies :)

nymyth 09-06-2006 08:14 PM

Quote:

Originally Posted by BamaStangGuy
Thanks I missed it

Seems to be working on your site....good stuff

Peace

nymyth 09-06-2006 08:15 PM

Quote:

Originally Posted by BamaStangGuy
Feature request: Parse Smilies :)

yeah and parse images, spoiler tags, hide tags....etc...LOL

Peace

MPDev 09-06-2006 08:17 PM

I've made a couple more slight modifications to the vaispy.php and va_spy.js files - format changes and some slight enhancements for an integration package I am working on.

Pathor 09-06-2006 08:17 PM

Quote:

Originally Posted by nymyth
^^did you make sure u uploaded the javascript files into the clientscript folder??

Peace

Yeah, because it works in firefox. ;)

MPDev 09-06-2006 08:18 PM

Smilies are probably okay; I think images would be obnoxious.

nymyth 09-06-2006 08:19 PM

Quote:

Originally Posted by Pathor
Yeah, because it works in firefox. ;)

Is it everyones browser or just yours, maybe you have js disabled in IE

Quote:

Originally Posted by MPDev
Smilies are probably okay; I think images would be obnoxious.

Is there anyway we can have urls to images parsed to read IMAGE IS LOCATED HERE instead of the whole url??

Peace

BamaStangGuy 09-06-2006 08:22 PM

Quote:

Originally Posted by MPDev
Smilies are probably okay; I think images would be obnoxious.

Yea I wouldnt want images. But smilies would make it alot nicer than just the text

Cheertobi 09-06-2006 08:23 PM

Mhh, I still get no date, just null ;(

MPDev 09-06-2006 08:23 PM

Maybe, right now I have bb codes turned off because of potential formatting issues; big text, etc. But it is something we can play around with as we go.

Pathor 09-06-2006 08:35 PM

Quote:

Originally Posted by nymyth
Is it everyones browser or just yours, maybe you have js disabled in IE

I think it?s a browser-bug. I?ll test it on another PC. ;)

Lizard King 09-06-2006 08:56 PM

There is a template bug with Opera , also is it possible to move templates to regular vbulletin templates ? So we can customize the look etc :)

MPDev 09-06-2006 09:00 PM

Templates are not that simple using this foundation because html code is included in the javascript files and as such, the layout in the javascript has to match the layout for the page - which is why I didn't put these into a template to begin with. But, with time, it could be possible.

In the meantime, you can modify the va_spy.js and vaispy.php scripts to customize the look.

Lizard King 09-06-2006 09:14 PM

Is it also possible to add poster avatars ? and admin - mod only visible actions like edit message , edit thread , move thread , delete message etc...

Doing test for last 15 min with 20 user keeping the page open and browsing the page and no increase in server load at all.

Great mod

Jon_Simmonds 09-06-2006 09:43 PM

nice, do you have any issues if i change the filename? (allready done so on my pc server but not done so on a public one, so i know it works!)

Jeordie015 09-06-2006 09:57 PM

Is there a way to make the thread title link to the latest post instead of the first post in the thread?


All times are GMT. The time now is 03:21 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.01871 seconds
  • Memory Usage 1,817KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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