Welcome to SMF Helper

Please login.

If you are not a member please take a minute and consider registering on the site for all member benefits.

Registration:

Please click here to register an account

Something will be put here soon.



Author Topic: Make Banner image a link to Home page?  (Read 133 times)

0 Members and 1 Guest are viewing this topic.

Offline peps1

  • New Member
  • *
  • Posts: 42
  • Karma: 47
  • Gender: Male
    • www.pipechat.tk
  • SMF Version: 1.1.13 default
Make Banner image a link to Home page?
« on: January 26, 2012, 01:05:24 AM »
Hey guys wanted to make my banner a button to link back to the forum home page.

thought I could just hop into indext.template and link it, but cant even find my banner in indext.template, let alone edit it  :hlp 


Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Make Banner image a link to Home page?
« Reply #1 on: January 26, 2012, 08:49:11 PM »
I did this to one of my templates. Let me see if I can find it.

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Make Banner image a link to Home page?
« Reply #2 on: January 26, 2012, 09:11:39 PM »
Have you searched the forum at all yet. ???

Offline peps1

  • New Member
  • *
  • Posts: 42
  • Karma: 47
  • Gender: Male
    • www.pipechat.tk
  • SMF Version: 1.1.13 default
Re: Make Banner image a link to Home page?
« Reply #3 on: January 26, 2012, 09:17:18 PM »
Yes and all I could find was this guide



Chad if you want to give it a go editing it yourself.

Download the index.template.php to your PC open with an editor like notepad++ or php designer

Find

:
<a title="" href="http://www.mydomain.com/index.php?action=forum"><span id="logo"> </span></a>

Edit

:
http://www.mydomain.com/index.php?action=forum

Make the link whatever you wish to be directed to.




But I could not find the first bit of code to edit.......so thought Id ask here and attache my index.template.php  :unde

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Make Banner image a link to Home page?
« Reply #4 on: January 26, 2012, 09:28:01 PM »
Search for this in the index.template.php:

<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe'])

Edit like so:

<a href="yourfullwebsiteaddressurl">', empty($context['header_logo_url_html_safe'])

Offline peps1

  • New Member
  • *
  • Posts: 42
  • Karma: 47
  • Gender: Male
    • www.pipechat.tk
  • SMF Version: 1.1.13 default
Re: Make Banner image a link to Home page?
« Reply #5 on: January 26, 2012, 09:33:54 PM »
Thats no in there....... ??? 

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Make Banner image a link to Home page?
« Reply #6 on: January 26, 2012, 09:36:38 PM »
Let me take another look. ;)

Offline peps1

  • New Member
  • *
  • Posts: 42
  • Karma: 47
  • Gender: Male
    • www.pipechat.tk
  • SMF Version: 1.1.13 default
Re: Make Banner image a link to Home page?
« Reply #7 on: January 26, 2012, 09:44:22 PM »
thank you, and sorry for being such a pain!

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Make Banner image a link to Home page?
« Reply #8 on: January 26, 2012, 09:55:35 PM »
Can you link me to your site please. Your not a pain. This is what we are here for. :)

Offline peps1

  • New Member
  • *
  • Posts: 42
  • Karma: 47
  • Gender: Male
    • www.pipechat.tk
  • SMF Version: 1.1.13 default
Re: Make Banner image a link to Home page?
« Reply #9 on: January 26, 2012, 09:56:49 PM »

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Make Banner image a link to Home page?
« Reply #10 on: January 26, 2012, 10:14:42 PM »
Make a backup of the original index.template.php file and put this in. Before you do that though. Find line 194 in the file and fill in the "link to site" and the "link to banner". If it does not work delete this one and put the original back. It should work though. :)

Offline peps1

  • New Member
  • *
  • Posts: 42
  • Karma: 47
  • Gender: Male
    • www.pipechat.tk
  • SMF Version: 1.1.13 default
Re: Make Banner image a link to Home page?
« Reply #11 on: January 27, 2012, 12:14:19 AM »
 :dnc  yes thats worked........but iv not got the blue gradient fade in the back ground now, can I get that back some how? (or just block color would be fine?)


ooooh and can i center it too?  :gtw
« Last Edit: January 27, 2012, 12:16:45 AM by peps1 »

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: Make Banner image a link to Home page?
« Reply #12 on: January 27, 2012, 07:40:44 AM »
Glad it worked, not sure about the blue but I will take a look sometime today.