Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2006, 12:28 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vB Spy

Simply put, a mod that opperates like http://www.digg.com/spy

Showing a realtime feed of everything that is happening on the board. New posts, polls votes on, threads deleted (if you are a mod/admin), etc. etc.

Hard? Most likely.
Server Intensive? Very likely.
Fun? Hell yeah!

XD
Reply With Quote
  #2  
Old 04-19-2006, 10:50 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is actually quite interesting
i mean this is really interesting

uhm, i think i'll look into it tomorrow
Reply With Quote
  #3  
Old 04-20-2006, 12:08 AM
ThePimp's Avatar
ThePimp ThePimp is offline
 
Join Date: Feb 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like it.
Reply With Quote
  #4  
Old 04-20-2006, 12:50 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just created some code that will get the last spy from the database and show it on a page and refresh every second using a xmlhttprequest object so the page itself isn't reloaded.
This works pretty good, now what I have left to do is create plugins that will save new spy info into the database (for example, a new thread is being made, a new user is added, poll vote, etc)
then i'll need to create a neat vB Spy page with vbulletin layout

So I guess i'll have some beta code ready within a few days (maybe even tomorrow)



getting the last spy info from the database takes about 2-20 ms on my localhost (centrino laptop doing all kinds of things)
so quite possibly the server load will be low enough to use this hack on smaller boards
Because if a request takes 10 ms, you will need 100 users to look at the vbSpy page to make 1000ms = 1 sec = refresh time = server fully loaded.
if you have 1000 users online simultaniously and everyone likes this hack and 10% of the users looks at the page, you're ++++ed
anyhow should be great for smaller boards
Reply With Quote
  #5  
Old 04-20-2006, 12:56 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FlyingDutchman
I just created some code that will get the last spy from the database and show it on a page and refresh every second using a xmlhttprequest object so the page itself isn't reloaded.
This works pretty good, now what I have left to do is create plugins that will save new spy info into the database (for example, a new thread is being made, a new user is added, poll vote, etc)
then i'll need to create a neat vB Spy page with vbulletin layout

So I guess i'll have some beta code ready within a few days (maybe even tomorrow)



getting the last spy info from the database takes about 2-20 ms on my localhost (centrino laptop doing all kinds of things)
so quite possibly the server load will be low enough to use this hack on smaller boards
Because if a request takes 10 ms, you will need 100 users to look at the vbSpy page to make 1000ms = 1 sec = refresh time = server fully loaded.
if you have 1000 users online simultaniously and everyone likes this hack and 10% of the users looks at the page, you're ++++ed
anyhow should be great for smaller boards
w00t! Thanks Dutchman, I've been watching this thread. Can you post back here even if open a new thread for the hack?
Reply With Quote
  #6  
Old 04-21-2006, 09:53 AM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, cool, thanks Dutchman!

Idea: Why not code in an option that will allow the user to specify which usergroup gets access to it. And that it only will allow X number of members to view it at any given time. Possible?

And, what about making two types of pages. admin view and member view. Admin view will lett admins and moderators to "spy" on different aspects. While member view will only allow the viewing of polls crated, posts made etc. but nothing else. Should also be less server intensive. Or better yet, buttons like on Digg that lett you deselect what you don't want to see, and one to stop the stream all together.

PM me if you need a layout for it, I'll be happy to help test it and make it.

P.S. Digg runs this smoothly, and they have A LOT of people using this feature. I guess that have insane servers. :P
Reply With Quote
  #7  
Old 05-19-2006, 09:16 PM
vtrac vtrac is offline
 
Join Date: Aug 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FlyingDutchman - any progress on vb Spy? I was thinking of attempting my own, but would love to see your code.
Reply With Quote
  #8  
Old 05-19-2006, 09:37 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this not like:

https://vborg.vbsupport.ru/online.php

It shows what every member and gues is doing, just not presented as pretty or as easy to find...
Reply With Quote
  #9  
Old 05-19-2006, 10:19 PM
Brent H's Avatar
Brent H Brent H is offline
 
Join Date: Sep 2004
Location: Phoenix, AZ
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's the point of it, making the information pretty and easy to find.
Reply With Quote
  #10  
Old 05-19-2006, 10:25 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is who's online not easy to use and find?
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 11:31 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.04841 seconds
  • Memory Usage 2,260KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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