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

Reply
 
Thread Tools
Live Topic - AJAX Details »»
Live Topic - AJAX
Version: 1.07b, by Coders Shack Coders Shack is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 01-13-2009 Last Update: 02-28-2009 Installs: 108
DB Changes Uses Plugins Auto-Templates
Is in Beta Stage  
No support by the author.

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

Show Your Support

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

Comments
  #132  
Old 03-01-2009, 09:17 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
lots of internal logic has been shuffled around and changed for the better. There's still a few things on the todo list before i take it out of beta
Coders Shack, I Posted a Bug I Found on 1.07b on the Mod's Thread for vB38x, so that you can Check it.

Thank You For Sharing this New Release of this Great Mod. :up:

My Best Regards.

Reply With Quote
  #133  
Old 03-03-2009, 08:13 PM
JJ the Fox JJ the Fox is offline
 
Join Date: Jan 2008
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using 1.07b but when using quick reply, users own posts do not appear unless they refresh the page.
Reply With Quote
  #134  
Old 03-03-2009, 08:34 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JJ the Fox View Post
I am using 1.07b but when using quick reply, users own posts do not appear unless they refresh the page.
Perhaps is Caused for a Bug on the Hiding Posts Feature; try Typing a High Number Like 200 or More for the Option "Maximum Visible Posts" of the Mod's Admin Control Panel Options. This Until Coders Shack can Correct that Bug on Next Update of the Mod.

My Best Regards.

Reply With Quote
  #135  
Old 03-03-2009, 08:59 PM
Coders Shack Coders Shack is offline
 
Join Date: Apr 2007
Location: Culver City, CA
Posts: 807
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont have this bug inciarco, 10 posts per page. And my livetopic setting is 30. When it goes over 30 they start to disappear. Have you tried it on the default template? Do you have something that conflicts?

Can you recreate this here: http://beasttoast.com/showthread.php...9&goto=newpost
Reply With Quote
  #136  
Old 03-04-2009, 09:24 AM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
find the plugin titled "Main Doublepost Prevent Engine" look for this line:
PHP Code:
// last step update counters 
below it add these two lines:
PHP Code:
$vbulletin->db->query_first("UPDATE `" TABLE_PREFIX "post` SET `lastedit` = UNIX_TIMESTAMP() WHERE `" TABLE_PREFIX "post`.`postid` = $id LIMIT 1");
$vbulletin->db->query_first("UPDATE `" TABLE_PREFIX "thread` SET `lastedit` = UNIX_TIMESTAMP() WHERE `" TABLE_PREFIX "thread`.`threadid` = $threadinfo[threadid] LIMIT 1"); 
then it should be fine
Thank you Coders Shack for the tip, I'm gonna test it and let you know how it goes.

Just one observation: In last update on Paul M's mod the line

PHP Code:
// last step update counters 
Was changed to:

PHP Code:
// Update counters 
It was easy to find the difference but this can help newbies here
Reply With Quote
  #137  
Old 03-04-2009, 02:13 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coders Shack View Post
i dont have this bug inciarco, 10 posts per page. And my livetopic setting is 30. When it goes over 30 they start to disappear. Have you tried it on the default template? Do you have something that conflicts?

Can you recreate this here: http://beasttoast.com/showthread.php...9&goto=newpost
I Confirm Bugs On 100% New vB373 Installation:

I've Installed the Product (The First and Only Mod Installed on a Test Forum), and I've Set Number of Posts to 10 for Test 1 and to 20 for Test 2.

I've Used User 1 (Admin on IE6) and User 2 (Registered User on Google Chrome).

I Hope You Can Solve this Bugs, Coders Shack.


TEST 1

AdminCP > vBulletin Options > Thread Display Options (showthread) > Maximum Displayed Posts Before Page Split: 10
AdminCP > vBulletin Options > Live Topic > Maximum Visible Posts: 10

I've Created a Thread and Named First Post as "Test Thread", then I've Started Posting Messages on the Thread, (the Live Posting Feature works Fine on IE6, FireFox and Chrome), then when I reached Quick Reply Number Nine (9), Post Number 10, then the First Post Got Shaded, and then when I reached Quick Reply Number Ten (10), Post Number 11, then the First Post "Test Thread" Got Hidden; then When I Posted Quick Reply Number Eleven (11), Post Number (12), then No Post Got Hidden and the Post weren't Shown for the Poster but yes for the Other User, and all other Posts after that had the same issue, (Not Displayed for Poster but yes for other Users seeing the Live Topic); I also Noticed that After Quick Reply Number 10, Post Number 11, the Quick Reply Box Got Again the Blocking Message "Please Click One of the Quick Reply Icons in the Posts Above to Activate Quick Reply".


TEST 2

AdminCP > vBulletin Options > Thread Display Options (showthread) > Maximum Displayed Posts Before Page Split: 10
AdminCP > vBulletin Options > Live Topic > Maximum Visible Posts: 20

It Happened Exactly the Same as for Test 1, but in this Case as Maximum Visible Posts was set to 20, when Reaching Quick Reply 19 (Post 20) the First Post Shaded, on Quick Reply 20 (Post 21) the First Post Got Hidden, and on Quick Reply 21 (Post 22) No Post Got Hidden, Quick Reply Box Got Locked (with message prompting for Clicking the Quick Reply Button on Posts), and No Quick Reply Post where Displayed for Poster User; all Posts after that had the same issue, that Post was Not Displayed for Poster, that No Post where Hidden, and that Quick Reply Box Gets Locked with Locking Message (the one that asks user to Click on "Quick Reply to this Message" Button on Posts).


Quote:
Edit: TEST 3

I went Ahead and made the Test for 30 Maximum Visible Posts and the Results where the same as on the other Two (2) Cases.

AdminCP > vBulletin Options > Thread Display Options (showthread) > Maximum Displayed Posts Before Page Split: 10
AdminCP > vBulletin Options > Live Topic > Maximum Visible Posts: 30

Reply With Quote
  #138  
Old 03-04-2009, 07:49 PM
aggiefan aggiefan is offline
 
Join Date: Apr 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not working properly for us.... we had the xboxlive addin installed but i removed it so i could test this out.

on Ie we get the following error.

Quote:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Wed, 4 Mar 2009 21:45:38 UTC


Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: --- see below

Message: Object required
Line: 2
Char: 1840
Code: 0
URI: --- (took it out but the path is correct linking to the livetopic.js file)
Reply With Quote
  #139  
Old 03-10-2009, 02:23 AM
DJDynasty239 DJDynasty239 is offline
 
Join Date: Jul 2008
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mod still works great, just wish I could make it only work in certain sections.

If anyone is still having second thoughts about using this mod, I definitely recommend it!
Reply With Quote
  #140  
Old 03-11-2009, 11:26 AM
W1zzard W1zzard is offline
 
Join Date: Jun 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

add an option to the configuration please to disable showing the "live topic" button next to threads in case 'search': case 'forumdisplay':
Reply With Quote
  #141  
Old 03-11-2009, 11:33 AM
W1zzard W1zzard is offline
 
Join Date: Jun 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you dont want to log all the ajax requests in your web server log file you could add something like "SetEnvIf Request_URI "^/ajax\.php" dontlog" to your virtual host section in httpd.conf. you might have to append "env=!dontlog" to your customlog directive

please note that this will stop logging all vbulletin ajax, not only this plugin
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 10:08 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.04935 seconds
  • Memory Usage 2,344KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_php
  • (6)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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