Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: knightyo on November 28, 2010, 03:41:17 PM

Title: Logo link problem
Post by: knightyo on November 28, 2010, 03:41:17 PM
My first post!

Hopefully I won't look TOO ignorant here; we'll see.

I would like to have the logo at the top left @ http: //craftbenchmodels com/craftbenchmodelsforum/   link to www. craftbenchmodels.com.    I've done a lot of searching here, and have played with the code, but when I click on the image as it stands now, it links to  http: //craftbenchmodels .com/craftbenchmodelsforum/www. craftbenchmodels.com, which of course generates an error.   Can someone spot my errors and put me onto the correct path?  The code is below.. Thanks!!!

if (empty($settings['header_logo_url']))
      echo '
               <span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
   else
      echo '
               <a href="www. craftbenchmodels.com"> <img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" /></a>';

   echo '
            </td>
            <td align="right" class="catbg">
               <img src="', $settings['images_url'], '/poop.gif" style="margin: 2px;" alt="" />
            </td>
         </tr>
      </table>';
Title: Re: Logo link problem
Post by: YogiBear on November 28, 2010, 03:48:29 PM
Welcome to SMF,  :)

The easiest way is to host your logo on, for example, Imageshack then copy and paste the code (but not any img tags) into the Logo field under Current Theme.
Title: Re: Logo link problem
Post by: JimM on December 19, 2010, 05:01:38 PM
Welcome to SMF.

Is this issue solved or do you still require assistance?