TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 163
  • Total: 163

Can i change action=forum to action=support

Started by Dark-Wolf, November 22, 2009, 12:45:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dark-Wolf

Hi!
Like from subject, is there any way to change:
/index.php?action=forum
to:
/index.php?action=support?
Thanks in advance, DarkWolf  :)

mc

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)

Dark-Wolf


G6Cad


mc

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.

G6Cad

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

mc

But that guide doesn't cover all the custom edits TP makes in the other SMF files ;)

G6Cad

But it does cover the basics need to know for custom actions.

bloc

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.

Dark-Wolf

Ok, thank'u very much at all :)
In a local webserver i've successfully changed action ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.