TinyPortal

Development => Support => Topic started by: Dark-Wolf on November 22, 2009, 12:45:53 AM

Title: Can i change action=forum to action=support
Post by: Dark-Wolf on November 22, 2009, 12:45:53 AM
Hi!
Like from subject, is there any way to change:
/index.php?action=forum
to:
/index.php?action=support?
Thanks in advance, DarkWolf  :)
Title: Re: Can i change action=forum to action=support
Post by: mc on November 22, 2009, 12:58:28 AM
I was going to say it should work, just by editting the relevant line in index.php (in root), and any template files, however thinking about it, it might not be that straight forward.

If nobody has answered by tomorrow, I'll try it on my test smf1+tp set-up (I'd do it just now, but I'm on the wrong computer)
Title: Re: Can i change action=forum to action=support
Post by: Dark-Wolf on November 22, 2009, 01:05:54 AM
Ok mc thanks for your reply :)
Title: Re: Can i change action=forum to action=support
Post by: G6Cad on November 22, 2009, 09:01:31 AM
You need to make a custom action

Info on how to make one can be found here.

http://www.simplemachines.org/community/index.php?topic=23864.0
Title: Re: Can i change action=forum to action=support
Post by: mc on November 22, 2009, 11:49:14 AM
G6, darkwolf is wanting to change the existing 'forum' action to 'support', not create a new action.

I've just tried it, and changing this in index.php
'forum' => array('BoardIndex.php', 'BoardIndex'),
to
'support' => array('BoardIndex.php', 'BoardIndex'),

Which makes ?action=support display the forum, but the breadcrumb menu (linktree) within the forum still links to forum, so there's obviously other changes that would have to be made elsewhere.
If you go through the guide for how to manually install TP, and change all the occurences of forum to support, then I'd think it should work, as forum is not a default action in a basic SMF install, and is only added by the TP edits.
Title: Re: Can i change action=forum to action=support
Post by: G6Cad on November 22, 2009, 12:03:37 PM
And the guide i linked to show just what to change and where ;)
Doesent hurt to go through some guides to get the whole picture and not just the small bits :D
Title: Re: Can i change action=forum to action=support
Post by: mc on November 22, 2009, 12:24:55 PM
But that guide doesn't cover all the custom edits TP makes in the other SMF files ;)
Title: Re: Can i change action=forum to action=support
Post by: G6Cad on November 22, 2009, 04:44:04 PM
But it does cover the basics need to know for custom actions.
Title: Re: Can i change action=forum to action=support
Post by: bloc on November 23, 2009, 10:59:16 PM
Sources/Load.php contains a couple of spots where "action=forum" is explicitly used, you can change them there and the linktree should be correct.
Title: Re: Can i change action=forum to action=support
Post by: Dark-Wolf on November 24, 2009, 12:05:39 AM
Ok, thank'u very much at all :)
In a local webserver i've successfully changed action ;)