News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Logo link problem

Started by knightyo, November 28, 2010, 03:41:17 PM

Previous topic - Next topic

knightyo

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. hxxp:craftbenchmodels.com [nonactive], 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. hxxp:craftbenchmodels.com [nonactive]"> <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>';

YogiBear

#1
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.
SMF v2.1.4  Mods : Snow & Garland v1.4, Simple Image Upload v2.0.0,  PHP  v.8.1

JimM

Welcome to SMF.

Is this issue solved or do you still require assistance?
Jim "JimM" Moore
Former Support Specialist

Advertisement: