add a link (Todo)

by michael, Saturday, February 24, 2018, 19:19 (2253 days ago)

hello, i would like to know how i can add a new link after logout? https://prnt.sc/ij8l1l

thanks

Avatar

add a link

by Auge ⌂, Sunday, February 25, 2018, 14:27 (2253 days ago) @ michael

Hello

hello, i would like to know how i can add a new link after logout?

Where do you want ot add a link? If a forum allows entries by not registered users, the way to add a link to an entry is the same as for registered users.

https://prnt.sc/ij8l1l

Can't see anything. You can here add images per upload to your entries.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

add a link

by michael, Sunday, February 25, 2018, 14:56 (2252 days ago) @ Auge

[image]


I would like to add a link to a specific forum before username.

add a link

by candleman ⌂, Sunday, February 25, 2018, 20:27 (2252 days ago) @ michael

[image]


I would like to add a link to a specific forum before username.

du kannst über das "adminmenu" Seiten hinzufügen, die allerdings dann nicht vor dem Benutzernamen, sondern am Ende stehen.

Da kannste im Seitennamen einen Link schreiben.

Probiers !

Avatar

add a link

by Auge ⌂, Monday, February 26, 2018, 08:35 (2252 days ago) @ michael

Hello

[image]

I would like to add a link to a specific forum before username.


Let's summarise: You want to add a lik to the user menu. In your last posting your wish was to add it "after logout" (on the right side of logout link?), in this posting "before username" (in front of the username or on the left side of username?).

Easy way with side effects:

Open the file themes/default/main.tpl, go to line number 56 and add a new list item with your link to the line. If the link should arise in front of the username, add the new code directly after {if $user} at the start of the line. If you want it to follow it to the logout link, search for {#log_out_link#}</a></li>{else} and insert the HTML-code beween the </li> and the {else}.

The HTML-code for your link should look like one of the following examples.

Link to an external site:

<li><a href="https://www.example.net/possibly/path/to/the/page.html">Linktext</a></li>

Link to an internal page

<li><a href="path/to/the/page.html">Linktext</a></li>

The side effect is the unintended possibly overwrite of your changes when you performing an forum update with a new main.tpl. It's your task to bear your changes in mind.

The other, clean but laborious way:

Copy the default template to a new directory beside themes/default and apply the above mentioned changes to this new theme. The directory name would also be the themes name in the admins form (i.e. themes/your_theme => "your_theme"). An unintended overwrite during a forum update is impossible on that way but you would have the task to check all files of your theme for necessary updates and to apply these changes. To be fair, if the main.tpl would be the only file you changed yourself, this would only be a simple transfer of the other files from the default theme.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

RSS Feed of thread