vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Removing Widget after home page? (https://vborg.vbsupport.ru/showthread.php?t=256555)

Eruantien 01-05-2011 03:45 PM

Removing Widget after home page?
 
Okay, so on my site, I have a video widget that automatically plays a video when you come to the site. When a user then navigates to an article on the CMS, the widget is still there and thus replays. Is there a way to only get the widget to play on the home page?

My thanks in advance.

Lynne 01-05-2011 04:07 PM

One option is to put all your articles in another section with a different layout. Otherwise, if you are going to leave your articles in the same section, and thus using the same layout, you will need to create a custom template for the widget (enter the template name on the Configure screen) and put a condition around it to only show it on the first page. Or, if this is a php widget, then you can just use php to do that. What you do depends on the type of widget you are using.

Eruantien 01-05-2011 04:13 PM

Thanks Lynne. When I go to make a new section, it just puts it under my only section (by default). I am not sure how to do the other option you presented as I am not a developer.

Lynne 01-05-2011 04:20 PM

I know making a new section puts it under the original section. But, you may set a new layout for that new section that doesn't include the video widget.

Eruantien 01-05-2011 04:22 PM

Thanks Lynne! You're awesome as usually.

--------------- Added [DATE]1294251878[/DATE] at [TIME]1294251878[/TIME] ---------------

I'm not see the option to set each sub-section's layout. Can you point me in that direction?

Lynne 01-05-2011 04:34 PM

Go to the section, hover over the section title, click the edit pencil.

I would suggest reading the CMS documentation - http://www.vbulletin.com/forum/conte...151-How-To-CMS

Eruantien 01-05-2011 04:39 PM

Thanks Lynne!


All times are GMT. The time now is 11:26 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.01671 seconds
  • Memory Usage 1,718KB
  • 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
  • (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