News:

Join the Facebook Fan Page.

Main Menu

Add page to linktree

Started by Darkness_, August 30, 2010, 12:06:06 AM

Previous topic - Next topic

Darkness_

Using sm 2 rc1.2

Searched on the forum but could not find anything what helped me.
I made a "custom" page, actually it's a copy of the board index but just 1 categorie is show.
I want to ad this page in the linktree.


Normally you should see

Forum > Categori > Board > topic

I want that if you are in that custom page, the part categori will be show as "lounge" and linked to http://www.domain.com/forum/index.php?action=lounge
and if you are in a board or topic in those boards it will also say "lounge"
The boards on that page : 19,46,47,48,51,54,56

Matthew K.

Try adding this in your actions source file.

// Build the link tree.
$context['linktree'][] = array(
'url' => $scripturl . '?action=lounge',
'name' => $txt['lounge'],
);


./Themes/default/languages/Modifications.english.php
Code (Add Before Document End) Select

$txt['lounge'] = 'Lounge';


Make sure to clear your forums cache.

Darkness_

Ok it works for a part but when I go in to the boards it says lounge room (name of the cateregori)
Is it possible to change the lounge room text with the url, in to Lounge and the action=lounge ??

Matthew K.

I am unsure as to what you mean?

The edit I gave you adds "Lounge" with a link to action=lounge

Darkness_

I have 2 different board indexes

the normal one and the action=lounge

each having different boards in it.
but when you are in the boards of the lounge.
jou cant get back to lounge with the linktree

Matthew K.

Do you have a link to the action possibly so I can see what you mean? I don't quite understand.

Darkness_


Matthew K.


Darkness_

Replied back

And again thank you for the effort to help me out.

Joker™

Do you require further assistance with the topic ? if no then please mark the topic solved :)
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Darkness_

It's not solved yet actually.
When it is I will mark is solved as you say.

Joker™

Just a suggestion , better if you guys work here on boards so that others can also assist you and it will be way to fast rather than working in pm :).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Darkness_

We will do.

it was a bit of miscommunication between us.
That was where we pmed about.
If we get any further, I will post it here to.
Maybe other people would like to use this to.

Deaks

Darkness_ is there any update on this?
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Darkness_

No, there isn' t

I made the change Labradoodle-360 said but that was just a part of what I mentioned.

The action name is lounge (action=lounge).
It's a copy of the boardindex files, only it contains a categorie that I hided on the normal one.
The code labradoodle-360 gave me, works right when you are in the action.
But when you go further in to the board, like to the messageindex.
the coded piece (lounge) disappears, and the normal one get's back.

The normal one what has to be changed, is the name of the Cat: Loungeroom.
Cat ID : 9

Advertisement: