Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: MrRooD on July 26, 2013, 06:58:17 AM

Title: Buttons.
Post by: MrRooD on July 26, 2013, 06:58:17 AM
hi , i make menu button and set it to index.php?action=cacy and when i click it still Forum page, how can i change it.?
Title: Re: Buttons.
Post by: shadow82x on July 26, 2013, 09:19:18 AM
How did you try adding this menu/button? What are you trying to do? action=cacy needs to exist before calling to it.
Title: Re: Buttons.
Post by: Kindred on July 26, 2013, 09:19:57 AM
exactly...   did you define action=cacy in the action array?
Title: Re: Buttons.
Post by: MrRooD on July 26, 2013, 06:45:45 PM
In Sources/Subs.php

'cacy => array(
'title' => $txt['cacy_button'],
'href' => $scripturl . '?action=cacy',
'show' => true,


In Themes\default\languages index.english.php and Install.croatian-utf8.php

$txt['cacy_button'] = 'Cacy';
Title: Re: Buttons.
Post by: Storman™ on July 27, 2013, 03:20:20 AM
Ok......   :o

You have the button and text but what are you trying to do ?

At the moment when you click on the button you are calling action=cacy but it's not doing anything because that action needs to be defined and exist first.

So when you click on the button what do you expect it to do ?