1

Topic: boardurl in .tpl files ?

i want to add hard coded links to main.tpl or admin.tpl


link should be something like

boardurl/page.php


how can i use boardurl inside .tpl file ?

i have tried <!-- forum_url --> with no luck ,
does any1 have idea ?

thanks.

Re: boardurl in .tpl files ?

You don't mean option in
» Administration » Settings » Setup
Add your own links to the main navigation menu
?

If you just want to add links in .tpl you need to use html <a href .... etc></a> I believe...
also add style properties if you're wrapping it in a <div> via .css

Unless you're trying to achieve something else I can't imagine smile

3

Re: boardurl in .tpl files ?

no ,
i want my board to use 1 theme , and admin skin to use other theme ,

so i decided to edit admin.tpl
and add there

<link rel="stylesheet" src="[FORUM_URL]/styles/oxygen/oxygen.css"/>


but i need the [FORUM_URL] to include this css files smile

Re: boardurl in .tpl files ?

Ah, I see

BTW: You can set the style of admin area via profile settings of the admin... so if you set oxygen for board in general and "yourstlye" for admin - you'd achieve same result I imagine...
of course then anyone else could use that style aswell on your board....

5

Re: boardurl in .tpl files ?

KeyDog wrote:

Ah, I see

BTW: You can set the style of admin area via profile settings of the admin... so if you set oxygen for board in general and "yourstlye" for admin - you'd achieve same result I imagine...
of course then anyone else could use that style aswell on your board....

sorry , thats not good enough i dont want my user to use other skins

here is the solution :

header.php line 177 just add :

$gen_elements['<!-- forum_url -->'] = $base_url;

and you can use <!-- forum_url --> in .tpl files