Log in

View Full Version : Mini Mods - CMS - Sections menu navbar as pop-up


napy8gen
07-17-2010, 10:00 PM
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:

<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>

Lon
07-21-2010, 01:04 AM
100% working and Marking as Installed <3

Any possibility of adding another menu to the right for custom links?

Tivar
08-11-2010, 01:09 AM
Is it possible to add the article counter behind?

Documentation(5)
News(10)
...
.....

napy8gen
08-11-2010, 05:37 PM
100% working and Marking as Installed <3

Any possibility of adding another menu to the right for custom links?

here is the code . same location as above, only working at cms home.


<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>

<!-- start second custom menu at cms -->
<li class="popupmenu" id="yui-gen0">
<a accesskey="6" class="popupctrl" href="javascript://" id="yui-gen2">My Custom Menu At the CMS index </a>
<ul class="popupbody" id="yui-gen1" style="display: none; left: 0px; top: 23px;">

<li><a href="{vb:raw link.url}">Custom Link One</a></li>
<li><a href="{vb:raw link.url}">Custom Link One</a></li>
<li><a href="{vb:raw link.url}">Custom Link One</a></li>
<li><a href="{vb:raw link.url}">Custom Link One</a></li>
<li><a href="{vb:raw link.url}">Custom Link One</a></li>

</ul>
</li>
<!-- end second custom menu at cms -->

</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>

napy8gen
08-11-2010, 05:38 PM
Is it possible to add the article counter behind?

Documentation(5)
News(10)
...
.....

I cannot do this I am not a programmer. I am just an advanced designer

Didzi
08-15-2012, 02:40 PM
Update for vB 4.2 ?

XLCR GODFATHER
02-01-2013, 01:41 AM
Update for vB 4.2 ?

Agree.

Would love to be able to do this in 4.2

ahobilam
06-13-2013, 04:10 PM
Is there any mod or article to create a jquery menu for Forums like this one:
https://vborg.vbsupport.ru/

Toorak Times
06-24-2013, 05:41 PM
Thanks for this, someone thinking of CMS...4.2.1...please?