Need Some Help

This is a discussion for the topic Need Some Help on the board Theme Support.

Author Topic: Need Some Help  (Read 361 times)

0 Members and 1 Guest are viewing this topic.

August 10, 2012, 05:07:27 AM
Read 361 times

Offline Chrisspitz

  • Jr.Member
  • *

  • 23
    Posts
  • Karma: +0/-0

Need Some Help
« on: August 10, 2012, 05:07:27 AM »

Hey Guys.

Alright so on my site http://www.huntingforum.net i'm trying to make my top logo clickable like a typical forum does, but for some reason when I add my a href into the php coding it isn't working. Maybe one of you php experts could help me out. Below is the section of code for my logo in my index.template.php file for my theme:

Code: [Select]
// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="1" border="0" align="center" width="950" class="top">
<tr>
<td valign="middle" height="261" align="left">';

if (empty($settings['header_logo_url']))
echo '
<h1></table><table cellspacing="0" cellpadding="1" border="0" align="center" width="950" class="topnav"', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '</h1><td valign="middle" align="center"><a href="http://www.deerleaselist.com"><img src="http://www.huntingforum.net/images/468x60.png" alt="Deer Lease Advertising and More"></a></td>';
else
echo '
<img src="', $settings['header_logo_url'], '">';

echo '
</td>
<td valign="middle" align="right"><p>';

Please notice that I do have a banner in my header and the href is working, should not be effecting this other issue - i had the problem before.
I have tried adding my before the "<img" part for my header logo, and obviously including a after as well (yet it would still be clickable anyway you get the point)... But that didn't work... Is there another way I can make my logo clickable?

Thanks for any help in advance.




  • Read 361 times
  • Theme Support
  • 7 Replies



August 10, 2012, 12:11:24 PM
Reply #1

Offline Deezel

  • Administrator
  • *

  • Just Another Member

  • 2565
    Posts
  • Karma: +1/-0

  • Gender: Male

    • Owner/Admin
Re: Need Some Help
« Reply #1 on: August 10, 2012, 12:11:24 PM »
This is just a shot in the dark....

Code: [Select]
<a href="http://www.huntingforum.net/index.php">
<img alt="Hunting Forum" src="LOCATION OF YOUR LOGO GOES HERE">
</a>

try putting that in between the <h1></h1>

Thank You, "Guest" For Reading My Post.
Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.     - Dr. Seuss

August 10, 2012, 03:37:18 PM
Reply #2

Offline willemjan

  • Hiatus
  • *

  • 382
    Posts
  • Karma: +0/-0

Re: Need Some Help
« Reply #2 on: August 10, 2012, 03:37:18 PM »
The image you are referring to is set as an background of an table. This is quite an hard trick, and I'm not sure if this is working. What you should do is make the complete table as an link. So the code would then be:

Code: [Select]
// The logo, user information, news, and menu.
echo '
<a href="http://www.YOURLINK.com"><table cellspacing="0" cellpadding="1" border="0" align="center" width="950" class="top">
<tr>
<td valign="middle" height="261" align="left">';

if (empty($settings['header_logo_url']))
echo '
<h1></table><table cellspacing="0" cellpadding="1" border="0" align="center" width="950" class="topnav"', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '</h1><td valign="middle" align="center"><a href="http://www.deerleaselist.com"><img src="http://www.huntingforum.net/images/468x60.png" alt="Deer Lease Advertising and More"></a></td>';
else
echo '
<img src="', $settings['header_logo_url'], '">';

echo '
</td>
<td valign="middle" align="right"><p>';

<- There is some code missing here!! There should be an table closing tag somewhere here ->

</table></a>

If that doesn't work, then I have to redesign your header to make it clickable. I'll have to make it an normal image, and not an background image. That is harder then it sounds....

August 10, 2012, 03:53:05 PM
Reply #3

Offline Deezel

  • Administrator
  • *

  • Just Another Member

  • 2565
    Posts
  • Karma: +1/-0

  • Gender: Male

    • Owner/Admin
Re: Need Some Help
« Reply #3 on: August 10, 2012, 03:53:05 PM »
please ignore that Deezel guy, LOL!!!

willemjan has him beat!!!

Thank You, "Guest" For Reading My Post.
Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.     - Dr. Seuss

August 10, 2012, 04:20:52 PM
Reply #4

Offline willemjan

  • Hiatus
  • *

  • 382
    Posts
  • Karma: +0/-0

Re: Need Some Help
« Reply #4 on: August 10, 2012, 04:20:52 PM »
LOL, Deezel, you know  :urock:

August 10, 2012, 11:37:16 PM
Reply #5

Offline Chrisspitz

  • Jr.Member
  • *

  • 23
    Posts
  • Karma: +0/-0

Re: Need Some Help
« Reply #5 on: August 10, 2012, 11:37:16 PM »
The image you are referring to is set as an background of an table. This is quite an hard trick, and I'm not sure if this is working. What you should do is make the complete table as an link. So the code would then be:

Code: [Select]
// The logo, user information, news, and menu.
echo '
<a href="http://www.YOURLINK.com"><table cellspacing="0" cellpadding="1" border="0" align="center" width="950" class="top">
<tr>
<td valign="middle" height="261" align="left">';

if (empty($settings['header_logo_url']))
echo '
<h1></table><table cellspacing="0" cellpadding="1" border="0" align="center" width="950" class="topnav"', $context['page_title'] != "$context[forum_name] - Index" ? "$context[forum_name] - " : '', $context['page_title'], '</h1><td valign="middle" align="center"><a href="http://www.deerleaselist.com"><img src="http://www.huntingforum.net/images/468x60.png" alt="Deer Lease Advertising and More"></a></td>';
else
echo '
<img src="', $settings['header_logo_url'], '">';

echo '
</td>
<td valign="middle" align="right"><p>';

<- There is some code missing here!! There should be an table closing tag somewhere here ->

</table></a>

If that doesn't work, then I have to redesign your header to make it clickable. I'll have to make it an normal image, and not an background image. That is harder then it sounds....


Thank's alot Willemjan and thank's for trying to help Deezel :P
Yeah I was messing with this code a while back and now I remember it was a background image and was trying to figure out how to do the same thing. I was doing that before to be honest, but I now realized what I was doing wrong - had my [/url] in the wrong place and the entire page became a link lol. My coding there was a little messy because at the time I was editing the theme to my liking and moved some things around I was in a rush.

Originally the "Hello guest.. blah blah blah" was in the same table as the "logo". But as you can see I added another table below and also put a link to my other new site there. The logo has been unclickable for a while and when I posted this I didn't feel like trying to troubleshoot the problem (because I remembered I already tried), so I just posted this with as many details as I could remember.

Hopefully all of that makes sense ^ sorry for the life story there haha.

Thanks again everyone for your help.
Considering putting a static camo background as the background, what do you think?
Would it be alright for me to just "use" a camo background off Google?

August 14, 2012, 11:33:51 AM
Reply #6

Offline Deezel

  • Administrator
  • *

  • Just Another Member

  • 2565
    Posts
  • Karma: +1/-0

  • Gender: Male

    • Owner/Admin
Re: Need Some Help
« Reply #6 on: August 14, 2012, 11:33:51 AM »
what size do you need the background to be?

Thank You, "Guest" For Reading My Post.
Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.     - Dr. Seuss

August 14, 2012, 11:42:19 AM
Reply #7

Offline Deezel

  • Administrator
  • *

  • Just Another Member

  • 2565
    Posts
  • Karma: +1/-0

  • Gender: Male

    • Owner/Admin
Re: Need Some Help
« Reply #7 on: August 14, 2012, 11:42:19 AM »
Here i found this pack you can use....

Thank You, "Guest" For Reading My Post.
Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.     - Dr. Seuss