Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Live Topic Details »»
Live Topic
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.8.0 Rating:
Released: 01-09-2009 Last Update: 02-28-2009 Installs: 976
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)

Upgrade:
[1.01b to 1.XXb] Uninstall the product, then reinstall it. Overwrite all old files with new files and you should be fine.

[1.02b to 1.03b] Overwrite files, upgrade product (dont install product)

[1.03b to 1.04b] Uninstall the product, then reinstall it. Overwrite all old files with new files and you should be fine.

[1.04b to 1.05b, 1.05b to 1.06b,1.06b to 1.07b] Upgrade the product. Overwrite all old files with new files and you should be fine.
Works With (FF2, FF3, IE6, IE7, IE8, SF2, SF3, CHROME):
vBulletin [3.8.X]

get the vBulletin [3.7.X] version here

INCOMPATIBLE HACKS:
Versions:
1.01b
1.02b
fixes
safari 2 support
safari 3 support
google chrome sup
port
added live topic icon on new posts page
fixed security issue, strongly suggest upgrading!
changes
added live edit (to avoid a performance hit i had to add two rows to two tables in the database)
added external style sheet
1.03b
fixes
fix double post
phrase notification
fixed an edit bug for people with table prefixes
changes
ability to change interval in ACP
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
changes
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
hmm

Download Now

File Type: zip LiveTopic107b.zip (15.9 KB, 3950 views)

Screenshots

File Type: png Picture 5.png (33.7 KB, 0 views)

Show Your Support

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

Comments
  #1222  
Old 05-22-2012, 02:47 PM
beekay beekay is offline
 
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
I didn't check whether the code is good or not, just that what you wrote the first time was definitely invalid.

This is what I use personally to disable for users with IE 9... (on the global_start hook)
Code:
if (ieversion() < 9.0)
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}

And it works for everyone else. If you want it only for mods and admins I would suggest:



Code:
global $vbulletin;
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}
(you don't need an array.)

If it still breaks for other users then I don't know, check and make sure no other code was changed.

Thank you, that code worked perfectly. :up:
Reply With Quote
  #1223  
Old 05-24-2012, 04:58 AM
Wonksta Wonksta is offline
 
Join Date: Apr 2009
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it not work with IE9?

If so would you kindly show us how one would incorporate the IF IE9 and usergroup options into one.

I'd like to disable the mod for IE9 like you have BOP and also set it only for specific usergroups.

Thanks so much
Reply With Quote
  #1224  
Old 05-25-2012, 12:49 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For me it was not working for IE9, your mileage may vary.

To disable for IE9 just follow what I did in post #1220... Go to plugin manager, edit that plugin, and make the block of code look like what I posted.

If you want to disable on IE9 AND limit it to certain usergroups:

Code:
global $vbulletin 
if (ieversion() < 9.0 AND is_member_of($vbulletin->userinfo, 5, 6, 7))
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}
That will allow usergroups 5, 6, and 7 to use it and only if they are NOT using IE9.
Reply With Quote
  #1225  
Old 05-28-2012, 10:12 PM
beekay beekay is offline
 
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This code was working well for me but Live Topic eventually stopped working for me until I reinstalled it. It seemed to work fine during lower activity levels but once I had more members online it stop working.

Code:
global $vbulletin 
is_member_of($vbulletin->userinfo, 5, 6, 7))
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}
Also is there a not_member_of alternative? I would like to give this another try to see if it stops working again.

Thanks again to BOP5!
Reply With Quote
  #1226  
Old 05-29-2012, 09:01 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually that code is missing the if condition, it probably never worked right...

If you want to specify groups the member is NOT a member of, simply put an ! in front of "is_member_of"

example:

Code:
if(!is_member_of($vbulletin->userinfo, 1, 2))
That would be true for all members NOT in usergroups 1 or 2.
Reply With Quote
  #1227  
Old 05-29-2012, 11:49 AM
Wonksta Wonksta is offline
 
Join Date: Apr 2009
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you please able to amend the code above with the if condition fixed I am not sure where it goes in php :\
Reply With Quote
  #1228  
Old 05-29-2012, 01:11 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just this:

Code:
global $vbulletin 
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}
work only for groups 5, 6, and 7

OR


Code:
global $vbulletin 
if (!is_member_of($vbulletin->userinfo, 1, 2))
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}
work for all groups EXCEPT 1 and 2.
Reply With Quote
Благодарность от:
Wonksta
  #1229  
Old 05-29-2012, 03:51 PM
Wonksta Wonksta is offline
 
Join Date: Apr 2009
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much
Reply With Quote
Благодарность от:
BirdOPrey5
  #1230  
Old 05-30-2012, 01:05 AM
beekay beekay is offline
 
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
just this:

Code:
global $vbulletin 
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}
work only for groups 5, 6, and 7

OR


Code:
global $vbulletin 
if (!is_member_of($vbulletin->userinfo, 1, 2))
{
  $is_livetopic = true;
  $livetopichook = 'template_edits';
  include 'includes/livetopic_hooks.php';
}
work for all groups EXCEPT 1 and 2.

I'm sorry but this code is just not working for me, I'm wondering if maybe theres a conflict somewhere else. I've tried both versions of the code and Live Topic stops working no matter what I do. I've tried adding it to both ajax_start and global_start. I've tried each plugin individually with the code as well as both of them having the code.
Reply With Quote
  #1231  
Old 05-30-2012, 01:36 AM
Wonksta Wonksta is offline
 
Join Date: Apr 2009
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have mods the amend postbit? Like adsense ad insertations? It will break if you do, happened for me.

In the mean time DragonByte has his version of thiis available that was less buggy
Reply With Quote
Reply

Thread Tools

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 04:10 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.13328 seconds
  • Memory Usage 2,349KB
  • Queries Executed 26 (?)
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
  • (9)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete