3P Techies Forum

Tech Support & Sciences => Design & Development => Topic started by: obasimiracle on November 26, 2012, 11:20:46 PM

Title: Wanna add/remove extra menu buttons after "home" on smf Navigation bar?
Post by: obasimiracle on November 26, 2012, 11:20:46 PM
Just felt like sharing this after redirecting my homepage obasimvilla.com to the forum 'cos the need for me to add individual pages arose .

Of-course it wasn't a problem as I've have been very good with smf . There are basically many ways you can achieve this especially by using mod (regular users ) or custom editing (super users). There are many modification (mod) you can use to achieve this but I will be talking of one that is very easy and needs no advance knowledge of smf platform.

Custom action mod can be used to create custom individual pages in smf  , can be used as well to create single php shopping , html pages , adverts and etc. all you need do is download the latest version of custom action mod from smf mod site (http://custom.simplemachines.org/mods/index.php?mod=331) , install and add action via admin=> Features and options => new action

If what you need is just to add "blog"  "link" etc. to your smf site just read on.

Firstly, log in to your cpanel => Go to: Sources => Locate Subs.php => Download and edit with any website editing app, notepad or default cpanel editor


Find:
Code: [Select]
'home' => array(
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
         ),
         'help' => array(
            'title' => $txt['help'],
            'href' => $scripturl . '?action=help',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),
Assuming you wanna add your next link immediately after "home" just place
Code: [Select]
),
         'Blog' => array(
            'title' => 'Blog',
            'href' => 'http://www.obasimvilla.com/blog',
            'show' => true,
            'sub_buttons' => array(
            ),
below (immediately after)
Code: [Select]
'sub_buttons' => array(
            ),

or any other you wanna do so . follow same instruction to remove anyone you wanna remove
SimplePortal 2.3.7 © 2008-2021, SimplePortal