TinyPortal v1.0 beta 4

Tinyportal is a portal mod for SMF that adds articles, blocks, modules and frontpage options for your site.

* *

User

Welcome, Guest. Please login or register.
February 08, 2010, 20:22

Login with username, password and session length

BlocWeb

Shoutbox

Last 10 Shouts:

Today at 19:26
Anyone knowq whats happening with SMF .. is the situation resolving or getting worse.. IE: whats going to happen to SMF what Tinyportal is built to use
Today at 05:14
Tux,

Ask in support.
February 07, 2010, 21:41
I need help with my tiny portal :(
February 07, 2010, 14:05
I dunno

No RC2 TP then no smilies

Kidding, please don't stress Bloc  ;D
February 07, 2010, 13:43
lol, back now 8)
February 07, 2010, 13:38
;D
February 07, 2010, 13:37
Hello everyone!
No smilies..oh golly gosh..someone stole Bloc's smilies.
lmaooooooooooo
February 07, 2010, 12:50
Great Work Bloc...
February 07, 2010, 09:33
Rest assued beta5 is moving towards public release at a pretty good pace. The bugs are being erased as fast as they are discovered. :)
February 07, 2010, 07:54
Go Colts[/b]

Show 50 latest

Recent Topics

Stats

Members
Stats
  • Total Posts: 244559
  • Total Topics: 25485
  • Online Today: 179
  • Online Ever: 1642
  • (July 09, 2008, 20:19)
Users Online
Users: 6
Guests: 85
Total: 91

Author Topic: Can i change action=forum to action=support  (Read 594 times)

0 Members and 1 Guest are viewing this topic.

Offline Dark-Wolf

  • Io sono DarkWolf
  • Jr. Member
  • **
  • Posts: 69
  • Visita il mio sito!
    • View Profile
    • DarkWolf
Can i change action=forum to action=support
« on: November 21, 2009, 19:45 »
Hi!
Like from subject, is there any way to change:
Code: [Select]
/index.php?action=forumto:
Code: [Select]
/index.php?action=support?
Thanks in advance, DarkWolf  :)
« Last Edit: November 21, 2009, 19:48 by Dark-Wolf »

Offline mc

  • Full Member
  • ***
  • Posts: 186
    • View Profile
Re: Can i change action=forum to action=support
« Reply #1 on: November 21, 2009, 19:58 »
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)

Offline Dark-Wolf

  • Io sono DarkWolf
  • Jr. Member
  • **
  • Posts: 69
  • Visita il mio sito!
    • View Profile
    • DarkWolf
Re: Can i change action=forum to action=support
« Reply #2 on: November 21, 2009, 20:05 »
Ok mc thanks for your reply :)

Offline G6

  • TP Admin
  • Hero Member
  • *
  • Posts: 20552
  • Soon to be
    • View Profile
    • FAMILJEGODIS
Re: Can i change action=forum to action=support
« Reply #3 on: November 22, 2009, 04:01 »
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

Offline mc

  • Full Member
  • ***
  • Posts: 186
    • View Profile
Re: Can i change action=forum to action=support
« Reply #4 on: November 22, 2009, 06:49 »
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
Code: [Select]
'forum' => array('BoardIndex.php', 'BoardIndex'),to
Code: [Select]
'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.

Offline G6

  • TP Admin
  • Hero Member
  • *
  • Posts: 20552
  • Soon to be
    • View Profile
    • FAMILJEGODIS
Re: Can i change action=forum to action=support
« Reply #5 on: November 22, 2009, 07:03 »
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

Offline mc

  • Full Member
  • ***
  • Posts: 186
    • View Profile
Re: Can i change action=forum to action=support
« Reply #6 on: November 22, 2009, 07:24 »
But that guide doesn't cover all the custom edits TP makes in the other SMF files ;)

Offline G6

  • TP Admin
  • Hero Member
  • *
  • Posts: 20552
  • Soon to be
    • View Profile
    • FAMILJEGODIS
Re: Can i change action=forum to action=support
« Reply #7 on: November 22, 2009, 11:44 »
But it does cover the basics need to know for custom actions.

Offline Bloc

  • Administrator
  • Hero Member
  • *
  • Posts: 12537
    • View Profile
    • BlocWeb
Re: Can i change action=forum to action=support
« Reply #8 on: November 23, 2009, 17:59 »
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.

Offline Dark-Wolf

  • Io sono DarkWolf
  • Jr. Member
  • **
  • Posts: 69
  • Visita il mio sito!
    • View Profile
    • DarkWolf
Re: Can i change action=forum to action=support
« Reply #9 on: November 23, 2009, 19:05 »
Ok, thank'u very much at all :)
In a local webserver i've successfully changed action ;)

 

Page created in 0.033 seconds with 30 queries.