TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 11:40:50 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 78
  • Total: 78

Changing destination of menu text?

Started by [JB], October 25, 2006, 12:30:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[JB]

Hey everyone, this is hopefully my last `bug the forums` post before my own forums are finished  :)

I am using the TP_Themis theme.

The themis theme forum navigation can be done by a row of images or text at the top left of the forums. There is a button that says `Home` that links to the main page and a button thats says `forum` that links to..well you guessed it :)

what I want to do is have the home button so it links to my webpage rather than the main portal.

I have managed to get it so if I click on the `home` image it goes to my webpage by using this code in the index.template.php:



        // Show the [home] and [help] buttons.

        $menu1 = '
                                <a href="http://sasmod.ofpcentral.co.uk"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="' . $txt[103] . '" title="Home" style="margin: 2px 0;" border="0" /></a>
                                <a href="?action=forum'. $scripturl. '"><img src="' . $settings['images_url'] . '/gnome/forum.gif" alt="Forum" title="Forum" style="margin: 2px 0;" border="0" /></a>
                                <a href="'. $scripturl. '?action=help" target="_blank"><img src="' . $settings['images_url'] . '/gnome/help.gif" alt="' . $txt[119] . '" title="Help" style="margin: 2px 0;" border="0" /></a>';


This worked a treat however,

the actual `home` text still links to the main portal page and not my webpage. I dont know where to find the part of the code that controls this so I can change it.

can anyone help?

Thanks in advance


akulion

thats because the address u put in the code:
http://sasmod.ofpcentral.co.uk

is the address for your portal and not your homepage

[JB]

No its not mate, thats the address of my homepage, the portal main page is deactivated as I only want the forums showing that are loacated @ http://sasmod.ofpcentral.co.uk/forum/index.php

The link in the code works fine when I click onto the image, but when I click on the text below the image it only takes me back to the the forums (it should direct to portal home but as I said its deactivated)

Maybe im not making myself as clear as i should, I dont know how else to expalin it  :-\

akulion

ill give u a hint....

move ur mouse over the GLOBE (on ur portal page) then move it a bit down on to the text link below it ;)

it seems there is another instance of the link as a text link somewhere..

i havent used this theme...so try and search for it

akulion

just checked in the theme file after downloading

just under the buttons is:

$menu2='<a href="'.$scripturl. '">'.$txt[103]. '</a>

put ur homepage link there

$menu2='<a href="http://sasmod.ofpcentral.co.uk">'.$txt[103]. '</a>

[JB]

Quote from: Aku on October 25, 2006, 12:55:06 PM
ill give u a hint....

move ur mouse over the GLOBE (on ur portal page) then move it a bit down on to the text link below it ;)

it seems there is another instance of the link as a text link somewhere..

LOL! yeah I figured that bit out, I just needed some help finding out how to change the code so the text would link to the same place as the image.

The code you provided works absolutely perfect and is just what I needed. Thank you so much Aku.

Im gonna stick a link to this site on my web links page - you guys and gals have been so helpfull  :up: