Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: eric1234 on December 29, 2010, 04:36:45 AM

Title: Return to the main page.
Post by: eric1234 on December 29, 2010, 04:36:45 AM
Hi, i has created a website that combined Joomla with SMF forum, however i found that there's no button in the menu bar that allow users/members to straight away return to my main page which was the Joomla . So how can i add a new button in the menu bar in order to allow the members to return straight away to the main page which is the Joomla instead of SMF forum index page?
Title: Re: Return to the main page.
Post by: Baby Daisy on December 29, 2010, 04:45:09 AM
Sources/Subs.php CreateMenu() function, under array $buttons.

Or use button hook, refer to SMF 2.0 RC4 hooks... search around, this has been answered a lot I would assume
Title: Re: Return to the main page.
Post by: eric1234 on December 29, 2010, 04:54:58 AM
I am sorry. Erm, i search in google and saw something about intergration hooks. >.< May i know what is hooks? Is it a mods or something?
Title: Re: Return to the main page.
Post by: Illori on December 29, 2010, 06:04:15 AM
you just need to add a button, nothing special. attach your subs.php file and tell us EXACTLY where you want the button, what it should be labeled, if any/all groups can view it, and what link it should go to and someone should be able to add it for you.
Title: Re: Return to the main page.
Post by: eric1234 on December 29, 2010, 06:57:25 AM
I see. Sorry, that i just changed my mind , I planned to replace the link in the home button in the menu bar to the homepage of the website. So how can i replace the link ? :)

By the way, if i wanna add a button, how should i add a button?
Title: Re: Return to the main page.
Post by: Illori on December 29, 2010, 07:37:40 AM
find where the home button is in your subs.php file and change the link. to add a button you just have to copy the existing code for a button, put it where you want, and change the name and where it goes to, then add the language strings in the language files.
Title: Re: Return to the main page.
Post by: Kays on December 29, 2010, 08:55:23 AM
Hi, to add an additional button, please see: Adding tabs to SMF 2.0 (http://www.simplemachines.org/community/index.php?topic=261880.0)
Title: Re: Return to the main page.
Post by: eric1234 on December 29, 2010, 11:04:51 AM
Done. Thank you for the helps ^^
Title: Re: Return to the main page.
Post by: Kays on December 29, 2010, 12:48:34 PM
Ok, if this does answer your question. Could you please mark this as solved by clicking on the green Mark Topic Solved button below.
Title: Re: Return to the main page.
Post by: eric1234 on January 01, 2011, 12:41:38 PM
Ok. ^^