Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Banner Image Destination URL

edited January 2012 in Vanilla 2.0 - 2.8

Hi

Is there an easy way to change the URL that people are taken to when the click on the banner image?

I've tried searching this site and also googling, but nothing I find is doing what I'm looking for.

To clarify, I still want 'all discussions' to be the page people see when they visit: http://chairexerciseisforyou.net/forum/

However, I want the banner image to instead link to:
http://chairexerciseisforyou.net/

Alternatively, if this is to complicated, what is the easiest way for me to add a 'home' button (directed to http://chairexerciseisforyou.net/) to the main nav bar on the forum?

Please go easy on me. I have taught myself html and css. I can manage javascript too where necessary. However, Vanilla is very new to me and I haven't a clue on PHP.

I can however follow instructions very well! So, if there are any for this, please can someone point me in the right direction?

Thanks,
Kerry

Tagged:
azfibro

Best Answer

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited January 2012 Answer ✓

    Don't know how to change the banner link (someone will, though) but to add a menu item open the default.master.php file in your themes/views folder. If you haven't already got a themes folder see here: http://vanillaforums.org/docs/themequickstart

    Edit after this line (near the top)

    if ($this->Menu) {

    and add

    $this->Menu->AddLink('Linkname', T('Linkname'), 'http://www.yoursite.com /pageref.html');

    mummypig

Answers

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited January 2012 Answer ✓

    Don't know how to change the banner link (someone will, though) but to add a menu item open the default.master.php file in your themes/views folder. If you haven't already got a themes folder see here: http://vanillaforums.org/docs/themequickstart

    Edit after this line (near the top)

    if ($this->Menu) {

    and add

    $this->Menu->AddLink('Linkname', T('Linkname'), 'http://www.yoursite.com /pageref.html');

    mummypig
  • I will give it a go - thank you :)

  • edited January 2012

    Did what you said, got a link which didn't work, and changed it to:

    $this->Menu->AddLink('Home', T('Home'), 'http://chairexerciseisforyou.net');

    It worked perfectly - thank you :)

    Hopefully someone will know the answer to the banner question as well!

  • So glad I saved this here, seeing as it disappeared when I upgraded Vanilla :)

  • Can't seem to find an answer to the original question, anyone know how to change the banner URL?

  • 422422 Developer MVP

    What banner url? And what banner ..you mean the logo?

  • I guess emerett is referring to my first question:

    Is there an easy way to change the URL that people are taken to when the click on the banner image?

    ... I want the banner image to instead link to:

    I wanted to be able to set it to the homepage of my site, rather than anything within the forum. Didn't matter once I knew I could add a home button in, but I guess some people might still prefer to use the banner as the link to their main homepage.

    422
  • 422422 Developer MVP

    Ahh ok, cheers for clearing that up.

  • Is this what you mean?

    chair exercise network header image showing Mr C exercising in a chair!
     <div class="mrc">
        <a href="http://chairexerciseisforyou.net" ><img alt="chair exercise network header image showing Mr C exercising in a chair!" src="http://chairexerciseisforyou.net/images/header-img.png"></a>
        </div>
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    422
  • 422422 Developer MVP
  • if it works in his context, sure.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 422422 Developer MVP

    I think he may be a she .. Bit gay to call yaself mummypig and your a geeza lol

    peregrine
  • I thought of the mummy - the monster - thought "it" was a "he". Saw pig and should have known otherwise it would be a boar. mummyboar - that would have been hard to decipher.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    422
  • 422422 Developer MVP
  • many years ago.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    422
  • Ha! No, I am definitely female and a mum :) Mummyboar would not have worked, unless it was a transgender boar I guess.

    Not sure what you mean by

    Peregrine said: Is this what you mean?

    I can cope with CSS and HTML, so built the main site myself with notepad and the help of Serif drawplus for creating the banner image. Easy peasy for me to set the destination URL for the banner, as you can see seeing as you quoted my code.

    422 - I tend to stick with the full address because then there's less for me to change when I'm uploading new pages. If I did "/" for testing, then I'd need to change it on all the pages again when I uploaded it. I might miss something that way - especially when I am ably assisted by two toddlers wanting to "help".

    Working with someone else's programming is a whole different ballgame however and I don't (yet) know where to start to change the destination URL for the banner on the forum.

    That's something that would also benefit from a basic plugin.... (hint, hint) ;)

    Thanks again both of you, for your time
    Oink :)

  • x00x00 MVP
    edited May 2012

    use <?php echo Url('/');?>

    grep is your friend.

  • Thanks for the reply x00

  • You can edit the logo URL by going to the "applications/dashboard/views/default.master.php" and then editing the H1line like the photo I provided.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited April 2014

    No , it is not recommended to edit the default theme. The same line appears in a custom theme and that is where you would edit that line. in

    themes/yourtheme/views/default.master.php

Sign In or Register to comment.