Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AJAX Spy Details »»
AJAX Spy
Version: 1.00, by codemoxie codemoxie is offline
Developer Last Online: Oct 2006 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.1 Rating:
Released: 09-18-2006 Last Update: Never Installs: 24
 
No support by the author.

Introduction:
This script (addon) was developed to give your forums a new nice feature by allowing readers/contributors to have a live spy monitor they can use to watch latest forums activity. This script is supposed to be much faster and more reliable than those variants that place database hooks to watch for changes. The script works without even needing to connect to any database and relies totally on your RSS feeds already generated by the forums.

Please be gentle, our first module. Should work with all versions of vBulletin that provide RSS feeds, which I think is all of them

Installation:
Please follow all instructions carefully and back up and files modified.
1- Uploading Files
Within the folder this document is contained, a folder named "Upload" should be present Open this folder and upload the following files to the corresponding locations. Please notice that no files will be replaced.

The /tmp folder included MUST be CHMODed to 755 OR 777 because the spy script needs to write data into that folder. The data there is auto deleted so there is actually nothing you need to worry about. For your information, the data store3d there is a copy of the latest RSS feeds and is used as a simple caching system to lower the loads on the server when 10K users for example have the spy script open and monitoring.

2- Setting System Environment
In your browser (Internet Explorer/Mozilla etc..)
Go to this url: http://YOURSITE.COM/admincp/install_vbspy.php
[You will need to change the capitals within this url to meet your site's domain and forum location]

Follow the file through each step, if step 1 was configured correctly no errors should occur when running this file. Once finished you will be prompted to delete 2 specific file's, YOU MUST DO THIS.

3- Integrating The System
In your forums admin cp, go to the following destination:
Styles & Templates -> Style Manager -> Edit Templates -> Expand All

Templates:
Find the template 'navbar'
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
UNDERNEATH ADD:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
<td class="vbmenu_control"><a href="vbSpy.php?$session[sessionurl]">vbSPY</a></td>
::: Save Template 'navbar'

Author Notices:
While i have been coding for long, this is still my first product dedicated to the vBulleting community. If you are familiar with vBulletin codes and think you know a better way to perform some task, please let me know by leaving a comment at the codeMoxie website available at www.codeMoxie.net

Official Support:
This product is fully supported by CodeMoxie, please visit our newly released forums for more info http://www.codemoxie.net/forum

Demo
http://www.prousers.net/vBSpy.php

Release History
Version 1.21b RC1 - September 19, Initial release on vBulletin
Version 1.21b RC1 - September 22, several bug fixes.

Examples:


!#================================================ #!
Enjoy!
Keep checking http://www.codeMoxie.net for more cool products
!#================================================ #!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-19-2006, 11:34 AM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A variation of vBIspy?

Do you have an example link?
Reply With Quote
  #3  
Old 09-19-2006, 11:35 AM
codemoxie codemoxie is offline
 
Join Date: Sep 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not exactly a variation, we had actually planned on this several weeks ago and it's been in development since. It's different in that it relies on the rss feeds rather than pulling from the database directly so it can be ported into literally any rss feed setup. Example to come.
Reply With Quote
  #4  
Old 09-19-2006, 11:48 AM
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Location: Athens
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how much time it takes to refresh? Because the rss feed has a 30min limit...
Reply With Quote
  #5  
Old 09-19-2006, 11:50 AM
codemoxie codemoxie is offline
 
Join Date: Sep 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The refresh rate can be changed within the configuration.
Reply With Quote
  #6  
Old 09-19-2006, 11:54 AM
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Location: Athens
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes but a server most of the times has a limit for 30min for the feeds. Is this true?
Reply With Quote
  #7  
Old 09-19-2006, 11:55 AM
codemoxie codemoxie is offline
 
Join Date: Sep 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lexx27
yes but a server most of the times has a limit for 30min for the feeds. Is this true?
Not sure I get the question.
Reply With Quote
  #8  
Old 09-19-2006, 11:58 AM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Saying you don't use any queries to generate a "live" feed is misleading if it requires you to set your RSS feeds to very short regeneration times; the RSS capability isn't meant to be run with such frequency (in other words, you are trying to use a part of vB in a way that it wasn't designed).

Quote:
Cache Lifespan
By default, content generated by external.php will be cached for one hour. This setting alleviates the problem of abusive users repeatedly requesting updates from external.php. Some RSS applications do not respect the 60 minute refresh request that vBulletin sends with the information.
I saw one variation that appeared to use hooks, but that doesn't necessarily make it less intensive than what you have designed here; you've simply offloaded the processing requirement to another script.
Reply With Quote
  #9  
Old 09-19-2006, 12:04 PM
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Location: Athens
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I m saying is that most servers are configured to ban you if you refresh the feed in less than 30 minutes. Im not 100 percent sure and thats why I'm asking this.
Reply With Quote
  #10  
Old 09-19-2006, 12:07 PM
codemoxie codemoxie is offline
 
Join Date: Sep 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The script applies to your own feed so I am not sure that being banned is a factor

In terms of interaction, the RSS feeds from vbulletin or fully supported and tested by vBulletin and the community rather than having a separate script entirely with all new db access which can be vulnerable to db problems. If it were me, I would try not to use external code that interacts with the db directly short of it having a long history of testing and support from the community, leaves a user too open to breaks into the db. Also, by relying on the RSS feeds, they stay pretty constant whereas a db interaction would require updates as does the vbulletin code and design changes.

Finally, the script works with any RSS feed so could be incorporated to use any type rather than limiting someone to just their own forum.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05537 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete