Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: jkay - heinäkuu 08, 2007, 03:54:00 IP

Otsikko: Link Tree
Kirjoitti: jkay - heinäkuu 08, 2007, 03:54:00 IP
Hi,

I have created a new "Home" Tab. I have renamed the page showing my forum into an action:

scripturl . '?action=forum';

I want to make a link tree for my new "Home" page. SO that when i click on
www.mydomain.com/index.php?action=forum

The link tree will show

xxxx >> Forum

where xxx is my homepage name.

May I enquire how do i do that?
Otsikko: Re: Link Tree
Kirjoitti: Harro - heinäkuu 28, 2007, 12:03:20 IP
Do you still need help with this?
To be honest I don't know how to do it.
But take a look at this post: http://www.simplemachines.org/community/index.php?topic=185202.0
Maybe you can figure it out from that mod :)
Anyway, let me know if you need help with this. Maybe I can get somebody from customization team to help you out.
Otsikko: Re: Link Tree
Kirjoitti: diplomat. - heinäkuu 28, 2007, 07:26:28 IP
Load.php

find:
$context['linktree'] = array();

replace with:
$context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));
Otsikko: Re: Link Tree
Kirjoitti: John S - joulukuu 10, 2007, 09:25:43 IP
Lainaus käyttäjältä: jkay - heinäkuu 08, 2007, 03:54:00 IP
I have renamed the page showing my forum into an action:

scripturl . '?action=forum';

How did you do that? Please let me know.