Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-02-13 23:24:29

porntutor.com
Member
Registered: 2011-02-13
Posts: 10
Website

Created a new menu link, but when selected the home tab is highlighted

I've created a new menu link called "Channels" which appears as a tab on the main menu. However, when you select that tab the content is displayed but the highlighted tab is now the "Home" tab. Wondering what I need to do to ensure the selected tab remains highlighted.

e.g. goto http://porntutor.com/ then click the Channels tab

Notice how the highlighted tab is now the "Home" tab.

Offline

#2 2011-02-14 08:04:52

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Created a new menu link, but when selected the home tab is highlighted

The link you've created is a static page, which means that it will be loaded by the static module (which highlights the home button). At this point what you want to do
is not possible directly from the administration panel, however i will add this function in next version (basically static pages will also have a field where you can specify
the current highlighted button).

Until then you can edit /modules/static/static.php and replace the following line:

$tpl->menu          = 'home';

with:

$tpl->menu = ($name == 'channels') ? 'channels' : 'home';

Please let me know if this helps.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB