vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   I want what I embed on Forum Home to appear on every page (https://vborg.vbsupport.ru/showthread.php?t=299977)

Fudgyyy 07-09-2013 07:27 PM

I want what I embed on Forum Home to appear on every page
 
So I embedded a twitch stream and it's chat. I embedded it on Forum Home underneath the navbar. How can I get it so that it appears on every page, not just the forum home page?

tbworld 07-09-2013 08:00 PM

You want to use a common template hook or template. For example: If you put your code at the bottom of the "navbar template" then it would show on every page that used the navbar. There is probably a template hook that you can use that will work better. Sorry, I am just not familiar with the standard vbulletin templates.

When I get home I will take a quick look for you. Maybe one of the smart lads around here will point you to the right template hook. :)

Fudgyyy 07-09-2013 09:19 PM

Thanks for your tip. I will check it out.

Zachery 07-09-2013 09:40 PM

Just for what its worth, I'd probably stop using a forum that forced me to view the embedded twitch stream on every page. That is a lot of extra page load time and overhead in the page rendering.

tbworld 07-09-2013 10:10 PM

Quote:

Originally Posted by Zachery (Post 2432974)
Just for what its worth, I'd probably stop using a forum that forced me to view the embedded twitch stream on every page. That is a lot of extra page load time and overhead in the page rendering.

Your advice of course is solid. Somehow everyone has to learn it the hard way. :)

Fudgyyy 07-09-2013 10:43 PM

Quote:

Originally Posted by Zachery (Post 2432974)
Just for what its worth, I'd probably stop using a forum that forced me to view the embedded twitch stream on every page. That is a lot of extra page load time and overhead in the page rendering.

Our site is a Madden site, so whenever we play one of our games we at times want to be able to chat with people on twitch and also on site. That's the only time we embed the stream. We don't have a giant offline stream video player going on. WE just do it whenever we are streaming.

Zachery 07-09-2013 10:54 PM

I think I'd go for the stream on the homepage, and a big giant link to the full stream page (either local stream page, or the twitch page) on all other pages.


All times are GMT. The time now is 01:29 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.00968 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete