Woomera Posted January 23, 2007 Posted January 23, 2007 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 '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.
Tarun Posted January 23, 2007 Posted January 23, 2007 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 '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>
Woomera Posted January 23, 2007 Author Posted January 23, 2007 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> doesnt that still open the calendar page expect that now it shows an image that is pointed to that calendar?
Tarun Posted January 23, 2007 Posted January 23, 2007 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:MSFN HomePretty simple huh?
Woomera Posted January 23, 2007 Author Posted January 23, 2007 it doesnt work i inserted it but nothin appears
Tarun Posted January 24, 2007 Posted January 24, 2007 Did you edit the correct skin? -- I know, it may seem silly to ask; but it's a common error.
Woomera Posted January 24, 2007 Author Posted January 24, 2007 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?
Martin L Posted January 24, 2007 Posted January 24, 2007 <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
Woomera Posted January 24, 2007 Author Posted January 24, 2007 (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:so i tried a simple hyperlink:<a href="http://mywebsite.com" target="_new">Home</a>looks:EDIT: OOOMG ... 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: im a genius B) Edited January 24, 2007 by fatalwoomera
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now