vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vB Spy (https://vborg.vbsupport.ru/showthread.php?t=113435)

KBV 04-19-2006 12:28 PM

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

FlyingDutchman 04-19-2006 10:50 PM

this is actually quite interesting
i mean this is really interesting

uhm, i think i'll look into it tomorrow

ThePimp 04-20-2006 12:08 AM

I like it.

FlyingDutchman 04-20-2006 12:50 PM

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

Kihon Kata 04-20-2006 12:56 PM

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?

KBV 04-21-2006 09:53 AM

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

vtrac 05-19-2006 09:16 PM

FlyingDutchman - any progress on vb Spy? I was thinking of attempting my own, but would love to see your code.

TruthElixirX 05-19-2006 09:37 PM

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...

Brent H 05-19-2006 10:19 PM

That's the point of it, making the information pretty and easy to find.

Zachery 05-19-2006 10:25 PM

How is who's online not easy to use and find?


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