Jump to content

Recommended Posts

Posted

i installed the invision board and now i wanna add a botton to my menu(where calendar,search... are) point to my homepage.well i know that i have to edit GLOBAL_BOARD_HEADER and i see the current bottons forexample this is calendar botton:

<div class='ipb-top-right-link'><a href="{$this->ipsclass->base_url}act=calendar">{$this->ipsclass->lang['tb_calendar']}</a></div>

now,i dont know anything about PHP programming but most of times i manage to find a solution.but i couldnt find this one :realmad:

'so can anyone please give me a hand and tell me how i can edit this so i have a botton that appears as "HOME" and on click it open my homepage?

thanks.


Posted
i installed the invision board and now i wanna add a botton to my menu(where calendar,search... are) point to my homepage.well i know that i have to edit GLOBAL_BOARD_HEADER and i see the current bottons forexample this is calendar botton:

<div class='ipb-top-right-link'><a href="{$this->ipsclass->base_url}act=calendar">{$this->ipsclass->lang['tb_calendar']}</a></div>

now,i dont know anything about PHP programming but most of times i manage to find a solution.but i couldnt find this one :realmad:

'so can anyone please give me a hand and tell me how i can edit this so i have a botton that appears as "HOME" and on click it open my homepage?

thanks.

Try something like this; no php involved, just basic XHTML.

<div class='ipb-top-right-link'><a href="{$this->ipsclass->base_url}act=calendar"><img src="YOUR_IMAGE_LINK_HERE" height="ENTER_HEIGHT"" width="ENTER_WIDTH"  alt="ENTER_ALT_TEXT"  title="ENTER_IMAGE_TITLE" />{$this->ipsclass->lang['tb_calendar']}</a></div>

Posted
Try something like this; no php involved, just basic XHTML.

<div class='ipb-top-right-link'><a href="{$this->ipsclass->base_url}act=calendar"><img src="YOUR_IMAGE_LINK_HERE" height="ENTER_HEIGHT"" width="ENTER_WIDTH"  alt="ENTER_ALT_TEXT"  title="ENTER_IMAGE_TITLE" />{$this->ipsclass->lang['tb_calendar']}</a></div>

:blink: doesnt that still open the calendar page expect that now it shows an image that is pointed to that calendar?

Posted

It does. Apply the same basic concept to suit your needs. ;)

Here's the code that points to your frontpage. (it's the Home code for the top left area)

<if="$this->ipsclass->vars['home_url']">
<div class='ipb-top-left-link'><a href="{$this->ipsclass->vars['home_url']}">{$this->ipsclass->vars['home_name']}</a></div>
</if>

Now if we were to add an image to that...

<if="$this->ipsclass->vars['home_url']">
<div class='ipb-top-left-link'><a href="{$this->ipsclass->vars['home_url']}"><img src="YOUR_IMAGE_LINK_HERE" height="ENTER_HEIGHT"" width="ENTER_WIDTH" alt="ENTER_ALT_TEXT" title="ENTER_IMAGE_TITLE" /> {$this->ipsclass->vars['home_name']}</a></div>
</if>

The above would output something like this:

foruicon.gifMSFN Home

Pretty simple huh?

Posted

this is how it looked after my edit:

<!--ipb.rightlinks.start-->

<if="$this->ipsclass->vars['home_url']">

<div class='ipb-top-left-link'><a href="{$this->ipsclass->vars['home_url']}">{$this->ipsclass->vars['home_name']}</a></div>

</if>

<div class='ipb-top-right-link'><a href="{$this->ipsclass->base_url}act=Help">{$this->ipsclass->lang['tb_help']}</a></div>

and it doesnt work.anything i did wrong?

Posted

<a href="{$this->ipsclass->vars['home_url']}" target="_new">{$this->ipsclass->vars['home_name']}</a> ·

or

<a href="http://wwww.....yoursite.com" target="_blank" title="My homepage">Home</a>·

dont make the <div> tags, just make sure it will look like this after edit:

<!--ipb.leftlinks.start--><a href="{$this->ipsclass->vars['home_url']}" target="_new">{$this->ipsclass->vars['home_name']}</a>·<a href="http://www.msfn.org/board/index.php?showtopic=18408" target="_new"><b>Forum Rules</b></a>·

i think that your code has to be:

<!--ipb.rightlinks.start-->
<a href="{$this->ipsclass->vars['home_url']}" target="_new">{$this->ipsclass->vars['home_name']}</a>·<a href="{$this->ipsclass->base_url}act=Help">{$this->ipsclass->lang['tb_help']}</a>

good luck

Posted (edited)

ok here is what my menu looks like when i use:

<a href="http://mywebsite.com" target="_new">Home</a>·<a href="{$this->ipsclass->base_url}act=Help">{$this->ipsclass->lang['tb_help']}</a>

looks:71a37ab072.jpg

so i tried a simple hyperlink:

<a href="http://mywebsite.com" target="_new">Home</a>
looks:bc7703d02a.jpg

EDIT: OOOMG :blink: ... Pfff you gotta be kiddin me right?

check this out:

<div class='ipb-top-right-link'><a href="http://mysite.com">Home</a></div>

and here is the result:

b82cc99153.jpg

:thumbup im a genius B)

Edited by fatalwoomera

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...