vb.org Archive

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

Coders Shack 02-03-2009 03:24 AM

Quote:

Originally Posted by DISLEX (Post 1732584)
If the thread "times out" from being active, but a user is still on the page, is the script smart enough to stop pinging the server and trying to grab new posts? Or does the AJAX keep running in the background but the thread just stops updating? Tryin to see if the AJAX keeps making the server run extra commands when it doesn't need to

:) its smart enough, keep in mind i developed this making sure it wasn't intensive.

Coders Shack 02-03-2009 03:26 AM

Quote:

Originally Posted by dodgeboard.com (Post 1732571)
Got it working - although I'm not exactly sure what did it (scratches head) but hey, it's working for now. Donation on it's way

I'm glad everything worked out :)

thanks for the donation, i'll be investing it into another case of energy drinks.

jambo_1969 02-03-2009 04:34 AM

Cracking add on - but it's not very server friendly when you have a lot of members on one particular thread....

Will keep an eye on it tho...

Coders Shack 02-03-2009 05:00 AM

Quote:

Originally Posted by jambo_1969 (Post 1732679)
Cracking add on - but it's not very server friendly when you have a lot of members on one particular thread....

Will keep an eye on it tho...

have you messed with the options in the ACP?

depending on your community and server you should adjust the Live Topic settings.

EvilSeph 02-03-2009 10:49 PM

Hi,

Thanks for this mod, it's pretty cool :)! Currently testing it out on a test forum hence why I haven't marked as installed yet.

Some things I've noticed are that the notice about this being a live topic etc. doesn't always show up (what are the conditions to make it appear?) and the little notification box that notifies you of new live topics (I believe) is broken:

JS shows:
vbphrase["livetopic_newresponses"] = "%1$template_hook[navbar_buttons_left] new responses (<a href=\'showthread.php?t=%2$template_hook[navbar_buttons_left]&goto=newpost\'>live topic</a>)";

and the text "%1$template_hook[navbar_buttons_left] new responses (<a href=\'showthread.php?t=%2$template_hook[navbar_buttons_left]&goto=newpost\'>live topic</a>)" appears to be what shows in the notification box that pops up (I'm not sure what causes it to pop up either...)

Thanks again for this plugin :)

Chet T16 02-03-2009 11:40 PM

With regards to PassiveVid, i have 1.1.1 installed on my 3.8.1 vB and it is almost working properly.

If i post a youtube link the embedded video shows up in the browser i've posted from but not in the auto updated thread. A "proper" refresh brings up the embedded video.

I will upgrade to the latest version of PassiveVid now and see if there is any difference

mikeB 02-04-2009 03:20 AM

1 Attachment(s)
I went so far as to upgrade from vb 3.7.4 to latest - 3.8.1 - and disabled all of my products, overwrote old files and still I get noting in IE 7 or FF 3 - in IE I just get this error (see attached)

anyone have any idea what is wrong - I too would be happy to contribute $$ for some help to get this working :eek:

Coders Shack 02-04-2009 04:56 AM

I have been doing all my development in FF3, IE6 has horrible error reporting.

PM me with some details like are you doing anything custom, id be happy to help :)

Lynne 02-04-2009 03:33 PM

Quote:

Originally Posted by EvilSeph (Post 1733565)
Hi,

Thanks for this mod, it's pretty cool :)! Currently testing it out on a test forum hence why I haven't marked as installed yet.

Some things I've noticed are that the notice about this being a live topic etc. doesn't always show up (what are the conditions to make it appear?) and the little notification box that notifies you of new live topics (I believe) is broken:

JS shows:
vbphrase["livetopic_newresponses"] = "%1$template_hook[navbar_buttons_left] new responses (<a href=\'showthread.php?t=%2$template_hook[navbar_buttons_left]&goto=newpost\'>live topic</a>)";

and the text "%1$template_hook[navbar_buttons_left] new responses (<a href=\'showthread.php?t=%2$template_hook[navbar_buttons_left]&goto=newpost\'>live topic</a>)" appears to be what shows in the notification box that pops up (I'm not sure what causes it to pop up either...)

Thanks again for this plugin :)

This sounds like the same problem I am having (here is the post). If I look in the page source for a thread, I see this at the bottom:

Code:

vbphrase["livetopic_newresponses"] = "%15.00 new responses (<a href=\'showthread.php?t=%25.00&goto=newpost\'>live topic</a>)";
I know where the 5.00 comes from (it's a variable that I use under my username). The "1" (before 5.00) and "2" (before 5.00 in t=) are supposed to be used to replace part of the phrase in this line:
Code:

vbphrase['livetopic_newresponses'].replace(/%1/, new_posts).replace(/%2/, threadid);
in display_notification function: in the javascript. I'm not a javascript coder, so I really don't know how to debug that problem.

Coders Shack 02-04-2009 04:19 PM

hmm, let me see if its like this on my test board.


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