News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

PLEASE!!! Help me! I've messed up!

Started by AmandaB71, May 26, 2007, 01:58:11 PM

Previous topic - Next topic

AmandaB71

I have installed my board, and added my image at the top ~ but it was aligned to the left ~ as are the little boxes.  So I tried to be clever and went in and messed and now I have made it even worse.  All I want is my image and the boxes aligned in the center. 

Please.  Can someone help me.  I am a bit slow so if you can and could tell me exactly hwre and what I need to edit it would be wonderful.

The link to my board so you can see what I mean (my image is now so far to the right it has given me a scrollbar at the bottom  :-[)

hxxp:rememberinghannah.co.uk/pixelthings/index.php [nonactive]

Thanks you so much if you can help me out here.

xenovanis

It would be easier if you posted the code you used, and some lines before and after that.
"Insanity: doing the same thing over and over again and expecting different results."

AmandaB71

Sure!

Okay it is somewhere in all of this.  But I haven't really a clue what I changed now  :-[

But thanks for taking the time to reply  :D


        smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>
</head>
<body>';

   // Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
   echo '
   <div id="headerarea" style="padding: 12px 30px 4px 30px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">';

   // The logo and the three info boxes.
   echo '
      <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
         <tr>
            <td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';

   // This part is the logo and forum name.  You should be able to change this to whatever you want...
   echo '
               <img src="', $settings['images_url'], '/smflogo.gif" style="width: 250px; float:"center" ', !$context['right_to_left'] ? 'right' : 'left', ';" alt="" />';
   if (empty($settings['header_logo_url']))
      echo '
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
   else
      echo '
               <img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';

   echo '
            </td>
         </tr>

xenovanis

It looks different now. Were you able to fix the problem?
"Insanity: doing the same thing over and over again and expecting different results."

AmandaB71

No.  I tried moving the SMF logo, thinking it was because they were side by side, but now there is just a red x where it used to be.   :'(  I am making it worse everytime I try to fix it.   :o

xenovanis

Sorry for the late reply. If you want to remove the smf-logo, delete this part of the code:


   echo '
               <img src="', $settings['images_url'], '/smflogo.gif" style="width: 250px; float:"center" ', !$context['right_to_left'] ? 'right' : 'left', ';" alt="" />';
"Insanity: doing the same thing over and over again and expecting different results."

Advertisement: