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

inciarco 01-14-2009 03:58 AM

Quote:

Originally Posted by Coders Shack (Post 1711723)
can you PM me the exact error without replacements in the SQL

Is that Edit Function working on your Forum, Coders Shack? (Not the Quick Edit, but the Advanced Editor one)

My Best Regards, I Hope this can be Solved.

:)

Coders Shack 01-14-2009 03:59 AM

Quote:

Originally Posted by Coders Shack (Post 1711723)
can you PM me the exact error without replacements in the SQL

haha yea you guys are right, my bad

its because you have a table prefix... ill add support (i have done this a few times already today lol... nothing serious)

furst 01-14-2009 04:05 AM

I've been waiting for something like this for a while. Thanks for putting this together and I hope you make good on bringing this hack to a real polished level.

Marked as installed but I'll wait for it to come out of beta before I actually try it.

Coders Shack 01-14-2009 04:05 AM

redownload the product and just reinstall the product xml

inciarco 01-14-2009 04:09 AM

I confirm, Quick Edit shows the Edit Message but when Saving or going to Advanced Editor the Error Occur:

Quote:

Database error in vBulletin 3.7.3:

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

MySQL Error : Table 'zzznameofdatabase.post' doesn't exist
Error Number : 1146
Request Date : Wednesday, January 14th 2009 @ 01:03:16 AM
Error Date : Wednesday, January 14th 2009 @ 01:03:17 AM
Script : http://zzzwebsite/editpost.php?do=up...t&postid=35215
Referrer : http://zzzwebsite/showthread.php?p=35215#post35215
IP Address : zzz.zzz.zzz.zzz
Username : zzzusername
Classname : vB_Database
MySQL Version : 5.0.51a-community
Perhaps on "zzznameofdatabase.post" the Prefix of the Table "post" is missing on the Code? :confused:

My Best Regards.

:)

Coders Shack 01-14-2009 04:11 AM

Quote:

Originally Posted by inciarco (Post 1711745)
I confirm, Quick Edit shows the Edit Message but when Saving or going to Advanced Editor the Error Occur:



Perhaps on "zzznameofdatabase.post" the Prefix of the Table "post" is missing on the Code? :confused:

My Best Regards.

:)

you got that after re downloading, and reinstalling the xml??

ptwiggens 01-14-2009 04:19 AM

Quote:

Originally Posted by Coders Shack (Post 1711742)
redownload the product and just reinstall the product xml

Thank you!

Works perfect now :)

inciarco 01-14-2009 04:23 AM

Quote:

Originally Posted by Coders Shack (Post 1711746)
you got that after re downloading, and reinstalling the xml??

Problem Solved with your New Upload, Thank You Very Much Coders Shack. :up:

(I wrote my message in the same moment you were Updating the File :o).

My Best Regards. ;)

:)

duckdodger 01-14-2009 04:28 AM

Thank you very much for adding 3.7 support!

Coders Shack 01-14-2009 04:36 AM

Quote:

Originally Posted by duckdodger (Post 1711755)
Thank you very much for adding 3.7 support!

If enough people +++++ about something things happen :P, no problem :)

duckdodger 01-14-2009 05:57 AM

Tested on Vb 3.7.0 and works perfect so far. Thanks again!

One thing that would be nice is a notification of some sort if your on another tab or window, etc. Not sure if this is a realistic feature, though.

logicuk 01-14-2009 08:14 AM

OMG thank you for releasing a vb 3.7 version!!!!

mcyates 01-14-2009 11:50 AM

Tried this in vb 3.8.0 and it doesn't work, I get no errors, just nothing updates automatically. Wonder what code is different in the new version of vbulletin.

bashy 01-14-2009 01:18 PM

I am using Firefox and it only posts the live topic when you reply again using the quick reply.... same issue in IE 7 even in compatability mode :(

OK will edit this:

It works when typing in IE 7 and it shows in Firefox, but when you type in firefox it dont show in IE 8 nor Google
browser, Also not working when you type in Google chrome to other browsers :(

IE to other browsers is great :) but that seems to be the only one atm

footlandia 01-14-2009 01:26 PM

Quote:

watch the damn video... ^_^
I watched it tree times and still don't understand what this mod is about ?

mcyates 01-14-2009 01:38 PM

instead of refreshing the page to see if anyone has replied. Leave this thread open. For example, you just posted that message above at 15:26 its now 15:35. You have options to determine how long the thread is deamed active, if it was set to 10 min then my reply would automatically pop up below your thread. It saves on bandwidth i guess.

Does not work at the moment on my vb 3.8.0

KEKforce 01-14-2009 01:55 PM

Works perfeclty in 3.8.0.

bashy 01-14-2009 01:56 PM

Quote:

Originally Posted by footlandia (Post 1712078)
I watched it tree times and still don't understand what this mod is about ?

If your waiting for a reply on a thread and someone posts you do not need to refresh the page, it will use ajax to add the post, normally anyway, there are a few browser issues!!!

Coders Shack 01-14-2009 04:11 PM

Quote:

Originally Posted by footlandia (Post 1712078)
I watched it tree times and still don't understand what this mod is about ?

really? I hope your kidding... I have a large description on what it does and i also have a damn video if you still don't understand what it does then I cant help you. I dont know what else I could do to make it any clearer, unless you wanted to meet up at a starbucks and i can show you in person lol...

Coders Shack 01-14-2009 04:20 PM

Quote:

Originally Posted by bashy (Post 1712068)
I am using Firefox and it only posts the live topic when you reply again using the quick reply.... same issue in IE 7 even in compatability mode :(

OK will edit this:

It works when typing in IE 7 and it shows in Firefox, but when you type in firefox it dont show in IE 8 nor Google
browser, Also not working when you type in Google chrome to other browsers :(

IE to other browsers is great :) but that seems to be the only one atm

thats weird because i did most of my tests on Chrome and it worked fine for me

footlandia 01-14-2009 05:01 PM

Quote:

Originally Posted by Coders Shack (Post 1712252)
really? I hope your kidding... I have a large description on what it does and i also have a damn video if you still don't understand what it does then I cant help you. I dont know what else I could do to make it any clearer, unless you wanted to meet up at a starbucks and i can show you in person lol...

OK , I'll take the time to register at your forum and test it , if not we will meet in starbucks ... or McDonalds :D

Bill from Cleve 01-14-2009 05:05 PM

Installed and Nominated. Great work man. Worked right off the bat. You rock sir!

Lustikus 01-14-2009 07:45 PM

installed and does not work with vb 3.73

will update to 3.74 and check again

Coders Shack 01-14-2009 08:07 PM

OHHHH .... i get it... i have a fix for the JS error about the quick editor lolz...

1.04b ill fix it (not that it causes any damage, you only see it if your a guest)

inciarco 01-15-2009 12:43 AM

Quote:

Originally Posted by Lustikus (Post 1712485)
installed and does not work with vb 3.73

I confirm, the Mod doesn't Work on vB373. :(

It displays the Live Topic Icon on Threadbit when a Forumer is in the Thread, but when Posting a QuickReply is doesn't Refresh the Posts on the other Side (other Forumer's Last Page). :(

Is there a way to Generate a vB373 Version? (I don't have soon plans to Update, because much of the Mods I Run on my Board are Tested and Running for vB373 and not Guaranteed for Higher). :confused:

I Hope Coders Shack that you can Provide that Option, or perhaps indicate the Plugin/Files/Templates Edits to make it work on vB373. :o

My Best Regards.

:)

inciarco 01-15-2009 04:05 AM

Does New Version 1.04b have changes to work on vB373? :confused:

My Best Regards.

:)

Coders Shack 01-15-2009 04:51 AM

Quote:

Originally Posted by inciarco (Post 1712922)
Does New Version 1.04b have changes to work on vB373? :confused:

My Best Regards.

:)

you tell me :)

Lustikus 01-15-2009 05:01 AM

no, as far as i see the new version of this mod works not with 3.73
but I hope we will get a working version for 3.73 soon
finally i want to nomianate this mod, but it need to be fixed for 373
I really hope coders shack will help us:-) **please, we need you, this mod is fantastic:-)**
A lot of people are waiting for the this and I have exactly the same problem as inciarco, most of my mods are tested and only running on 3.73

fr9r 01-15-2009 05:36 AM

thanks منتديات

furst 01-15-2009 12:21 PM

Doesn't work on 3.7.1 either.

I go to install it and when I'm adding the product the page just hangs. If I let it sit for long enough it breaks my board and the only way to fix it then is to repair/optimize tables.


All times are GMT. The time now is 05:03 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.01676 seconds
  • Memory Usage 1,854KB
  • 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
  • (17)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
  • (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