TheCripZone SMF Themes Site

All Things Public => Theme Support => Topic started by: NCSurfer on Jun 16, 11, 11:45:27 AM

Title: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: NCSurfer on Jun 16, 11, 11:45:27 AM
I was able to duplicate the "HELP" menu tab but and assign the correct link to the tab but can not get the tab name to change from HELP to FORUM.

I tried a search but nothing comes up when I do. Sorry if this has been answered many times before.

Also want to thank Crip for making another great theme. We have gone from Rudra to Flagrant.

Thanks for any assistance.

Henry
Title: Re: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: Crip on Jun 16, 11, 12:17:58 PM
HI,
u using TP or not?
Title: Re: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: NCSurfer on Jun 17, 11, 10:38:58 AM
Sorry Crip, I am using TP ver 1 beta 4.
Title: Re: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: Crip on Jun 17, 11, 10:42:22 AM
add your button / link to Forum: ', tp-forum, '

that should work , lettme know
Title: Re: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: NCSurfer on Jun 17, 11, 02:51:18 PM
Here is what is showing up now....

(http://i158.photobucket.com/albums/t83/surfernc2002/ScreenHunter_01Jun171346.gif)

This is the bit of code I changed....

(http://i158.photobucket.com/albums/t83/surfernc2002/ScreenHunter_03Jun171349.gif)

and...

(http://i158.photobucket.com/albums/t83/surfernc2002/ScreenHunter_02Jun171349.gif)
Title: Re: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: Crip on Jun 17, 11, 04:46:51 PM
Add this :

if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'forum')))


Add your Forum button Like :

            // Show the [forum] button.
               echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl, '?action=forum"><span>Forum</span></a></li>';


[attachment deleted by admin]
Title: Re: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: NCSurfer on Jun 18, 11, 12:36:37 AM
Worked like a charm, thanks so much Crip.

Have a great weekend.

Henry
Title: Re: Adding a "FORUM" menu tab to Flagrant, SMF 1.1.14
Post by: Crip on Jun 18, 11, 08:22:25 AM
Fantastic bro'