vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Live Topic - AJAX (https://vborg.vbsupport.ru/showthread.php?t=201697)

Coders Shack 01-13-2009 10:00 PM

Live Topic - AJAX
 
. . . . . . . . Brought to you by scriptasy.com

Live Demo:
Live Topic 1.07b Demo (you must be logged in, and the topic must be "live")


Videos: 1.00b 1.06b

watch the damn videos... ^_^
Description:
This product is different from anything you have seen before, it raises the bar for forums. It will make your forums much more interactive, and also reduce server load.

Technical Details:
If a thread has been posted in X seconds then its now Live, if other users are viewing the Live topic and are on the last page they will experience a clean ajax experience while talking to other members. Once the thread is older than X seconds its no longer Live and it will now act like a normal thread. Also if a user edits one of their posts that's inside of the thread, it will be updated too so there is no longer a reason to ever have to refresh.

There is also logic for the viewer, the viewer of the thread has to be in an active state to see responses. An active user state is determined upon the users actions, if no actions were made in X seconds then the user is marked as inactive.

Also you may wonder why this could save your server bandwidth and CPU. If a user is refreshing to talk to another members the queries on a normal thread load are way more intense than the ajax call that this modification makes. So if you have 5 people talking to each other none of them have to refresh the page, all they are doing is simple page requests and one intense request when there has actual change.

You can test Live Topic with two users, you will see how amaizing this is... And probably spontaneously combust.

Found a bug? Want to request a feature?
Live Topic - Project Manager
Installation:
This is take less than 3 minutes to install, takes longer to notice its amazing feature. (you need multiple people to be active in the same topic)

Works With (FF2, FF3, IE6, IE7, IE8, SF2, SF3, CHROME):
vBulletin [3.7.4] (have not tested it with other 3.7.X versions)

for vBulletin [3.8.X] go here

INCOMPATIBLE HACKS:
Versions:
1.04b
fixes
javascript error for guests
fixed live topic activation (first poster to raise a dead topic)
changes
auto quick reply focus after post
1.05b
fixes
css flaw

js error for unsupported browsers (random)


fixed chrome issue
ideas
edit notification - thanks to nso

rebuilding some of the original logic to hopefully prevent product conflicts

1.06b
fixes
fixed a little javascript issue that had to do with displaying posts

uses GPC cleaner now
changes
limit the number of ajax posts on the live topic (example 40) and fade them away.

changed the way the hooks are used

tightened up everything a bit

1.07b
fixes
fixed a bug where the live topic notification always making an ajax call
changes
support user ignore list
changed the way the javascript logic worked (hopefully there are less compatibly issues) added support for IE6 and IE8
1.10
...

Coders Shack 01-14-2009 01:55 AM

Things I am required to tell you i guess:
  • installs are tracked (upon install track.scriptasy.com is pinged, it just tracks installs not uninstalls or anything else)
Fixes for incompatible mods:

Coders Shack 01-14-2009 01:58 AM

i only have a 3.7.4 board up and running, if you have variations of 3.7.x feel free to try it out. If there are any issues or if there are none, please give me a heads up :)

inciarco 01-14-2009 02:44 AM

Great Mod. I'm Amazed of what I saw on the Demo Video. I'll test it on vB373 and I'll tell you how it Works.

Congratulations, is a Great Mod. :up:

Thank You For Sharing it.

My Best Regards.

:)

inciarco 01-14-2009 03:21 AM

I'll test it when I have some Forumers on my Board to Post simultaneous Posts.

I've tried to test it with two accounts on my same computer but didn't worked that way, why? :confused:

I have a question:

- Will Guests also view the Refresh of the Posts? :confused:

And perhaps a suggestion for next release:

- Could you please add Usergroup permissions for those who can enjoy this behaviour? I think that for Guests, Banned, Not Confirmed, and Users in other low level Groups, should not enjoy this, but Users in more Active Usergroups would definitely Appreciate this Mod; would be nice for Admins to decide who can use it and who can't. ;)

My Best Regards; once I have my Testing Results I'll share them with you.

:)

Coders Shack 01-14-2009 03:27 AM

Guests don't see the updates it has to be a logged in user.

I do plan on adding features like the ones you have listed, but unfortunately for now all of your members will have to be treated as equals :P

ptwiggens 01-14-2009 03:43 AM

I am getting this error when I try to edit my post.

Code:

Database error in vBulletin 3.7.2:

Invalid SQL:
UPDATE `post` SET `lastedit` = UNIX_TIMESTAMP() WHERE `post`.`postid` = 16663 LIMIT 1;

MySQL Error  : Table 'xxxxxxxx_forum.post' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, January 13th 2009 @ 11:42:13 PM
Error Date    : Tuesday, January 13th 2009 @ 11:42:13 PM
Script        : http://forum.xxxxxxxxx.com/editpost.php?do=updatepost&postid=16663
Referrer      : http://forum.xxxxxxxxxx.com/showthread.php?t=3305
IP Address    : xxxxxxxxxxxx
Username      : xxxxxxxx
Classname    : vB_Database
MySQL Version : 5.0.67-community


inciarco 01-14-2009 03:52 AM

Quote:

Originally Posted by ptwiggens (Post 1711713)
I am getting this error when I try to edit my post.

Code:

Database error in vBulletin 3.7.2:

Invalid SQL:
UPDATE `post` SET `lastedit` = UNIX_TIMESTAMP() WHERE `post`.`postid` = 16663 LIMIT 1;

MySQL Error  : Table 'xxxxxxxx_forum.post' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, January 13th 2009 @ 11:42:13 PM
Error Date    : Tuesday, January 13th 2009 @ 11:42:13 PM
Script        : http://forum.xxxxxxxxx.com/editpost.php?do=updatepost&postid=16663
Referrer      : http://forum.xxxxxxxxxx.com/showthread.php?t=3305
IP Address    : xxxxxxxxxxxx
Username      : xxxxxxxx
Classname    : vB_Database
MySQL Version : 5.0.67-community


I Confirm this Error, I'm getting exactly the same one on my Board. :confused:

Disabling the Mod for now until Correction/Solution of this Bug; Quick Edit seems to Work but Advanced Editor Displays that DataBase Error.

My Best Regards.

:)

Coders Shack 01-14-2009 03:53 AM

Quote:

Originally Posted by ptwiggens (Post 1711713)
I am getting this error when I try to edit my post.

Code:

Database error in vBulletin 3.7.2:

Invalid SQL:
UPDATE `post` SET `lastedit` = UNIX_TIMESTAMP() WHERE `post`.`postid` = 16663 LIMIT 1;

MySQL Error  : Table 'xxxxxxxx_forum.post' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, January 13th 2009 @ 11:42:13 PM
Error Date    : Tuesday, January 13th 2009 @ 11:42:13 PM
Script        : http://forum.xxxxxxxxx.com/editpost.php?do=updatepost&postid=16663
Referrer      : http://forum.xxxxxxxxxx.com/showthread.php?t=3305
IP Address    : xxxxxxxxxxxx
Username      : xxxxxxxx
Classname    : vB_Database
MySQL Version : 5.0.67-community


can you PM me the exact error without replacements in the SQL

ptwiggens 01-14-2009 03:55 AM

Quote:

Originally Posted by inciarco (Post 1711721)
I Confirm this Error, I'm getting exactly the same one on my Board. :confused:

Disabling the Mod for now until Correction/Solution of this Bug; Quick Edit seems to Work but Advanced Editor Displays that DataBase Error.

My Best Regards.

:)

I get it with both quick edit and advanced. :(


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