Back to vBulletin 4.x Template Modifications

CMS - Sections menu navbar as pop-up
Mod Version: 1.00, by napy8gen

vB Version: 4.0.4 Rating: (1 vote - 5.00 average) Installs: 9
Released: 18 Jul 2010 Last Update: Never Downloads: 0
Supported Template Edits Re-usable Code  

I think this mod is useful for those who has many sections, the navbar cannot hold to much sections, that you ended up picking in the forntpage editor which sections can sit in the navbar.

please see screenshot.

style manager> style name>edit templates> vbulletin cms templates> vbcms_navbar_link

replace all:

HTML Code:
<vb:if condition="$vboptions['selectednavtab'] == 'vbcms'">
<li class="selected">
	<vb:if condition="$vboptions['vbcms_url']">
		<a class="navtab" href="{vb:raw vboptions.vbcms_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
	<vb:else />
		<a class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
	</vb:if>
	<ul class="floatcontainer">
		{vb:raw template_hook.vbcms_navbar_start}
		<vb:if condition="$links">
<li class="popupmenu" id="yui-gen0">
<a accesskey="6" class="popupctrl" href="javascript://" id="yui-gen2">Sections</a>
<ul class="popupbody" id="yui-gen1" style="display: none; left: 0px; top: 23px;">
<vb:each from="links" value="link">
				<li><a href="{vb:raw link.url}">{vb:raw link.title}</a></li>
			</vb:each>
		<vb:else />
			<li class="hidden">&nbsp;</li>
		</vb:if>
{vb:raw template_hook.vbcms_navbar_end}
</ul>
</li>
	</ul>
</li>
<vb:else />
	<li>
	<vb:if condition="$vboptions['vbcms_url']">
		<a class="navtab" href="{vb:raw vboptions.vbcms_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
	<vb:else />
		<a class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
	</vb:if>
	</li>
</vb:if>

Download

No files for download.

Screenshots

Click image for larger version
Name:	sectionspop.png
Views:	772
Size:	6.8 KB
ID:	119792  


vblts.ru supports vBulletin®, 2022-2024