vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Section Titles (https://vborg.vbsupport.ru/showthread.php?t=285181)

fanhockeycoach 07-03-2012 10:49 PM

Section Titles
 
Is there a way to hide the title of a section. I want a logo as the title. See http://www.fantasyhockeycoach.com/co...-the-press-box I use the logo but then the section title 'The Press Box' seems redundant.

kh99 07-05-2012 01:31 PM

You could edit the template vbcms_content_section_page (in the VBulletin CMS Templates group) and add an <vb:if> around the title, something like this:

Code:

<vb:if condition="$nodeid != 772">
                        <span>{vb:raw title}</span>
</vb:if>


fanhockeycoach 07-09-2012 07:50 PM

that didn't work :(

kh99 07-09-2012 08:47 PM

Hmm...I tested it before posting, so maybe we're talking about something different? I was thinking you wanted to remove the text "The Press box" that's between the lines, next to the RSS feed icon. Also, in the code I posted above the <vb:if> ... </vb:if> is meant to go around the existing "<span>{vb:raw title}</span>" line, in case that wasn't clear.

fanhockeycoach 07-09-2012 09:58 PM

Now it works, thanks. Just needed the right placement

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

do i need to put that in multiple times if I have multiple pages I want to do this for?

kh99 07-09-2012 11:01 PM

If you have a list of node ids, you could change the if tag to this:

Code:

<vb:if condition="!in_array($nodeid, array(1, 2, 3, ...))">

where you would of course change 1, 2, 3,.. to your list.

fanhockeycoach 07-11-2012 05:40 PM

AWESOME that worked! Thanks


All times are GMT. The time now is 02:39 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.01047 seconds
  • Memory Usage 1,720KB
  • 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
  • (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