Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: bullbreedluverz on January 17, 2009, 07:49:35 PM

Title: Add image link below copyright
Post by: bullbreedluverz on January 17, 2009, 07:49:35 PM
i want to embed this image link below the copyright on 1.1.7 default theme 

can some 1 tell me where and how and what changes need to be made or added to it to get it centred - cheers

<a href="http://www.**********.com"><img src="http://www.*********.com/*******.jpg" alt="*********" width="88" height="31" border="0" longdesc="http://www.********.com" /></a>"
Title: Re: Add image link below copyright
Post by: Antechinus on January 18, 2009, 03:25:06 AM
Do it like this. Find this bit:

<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';


and replace it with:

<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
                        <tr align="center"><td><a href="http://www.**********.com"><img src="http://www.*********.com/*******.jpg" alt="*********" width="88" height="31" border="0" longdesc="http://www.********.com" /></a></td>
                         </tr>
</table>';
Title: Re: Add image link below copyright
Post by: bullbreedluverz on January 18, 2009, 06:24:21 AM
cheers for your help......... yet again, are you sick of me yet  ;) lol
Title: Re: Add image link below copyright
Post by: Antechinus on January 18, 2009, 06:35:06 AM
Nah. You're ok. Did it work?
Title: Re: Add image link below copyright
Post by: bullbreedluverz on January 18, 2009, 09:57:04 AM
Ive added the code and the image is displayed but its aligning over to the left hand side - if you click the forum link under my signature image you can see its positioning
Title: Re: Add image link below copyright
Post by: Deaks on January 18, 2009, 10:25:53 AM
find:

<tr align="center"><td><a href="http://www.**********.com"><img src="http://www.*********.com/*******.jpg" alt="*********" width="88" height="31" border="0" longdesc="http://www.********.com" /></a></td>
                         </tr>


replace with
<tr><td align="center" colspan="3"><a href="http://www.**********.com"><img src="http://www.*********.com/*******.jpg" alt="*********" width="88" height="31" border="0" longdesc="http://www.********.com" /></a></td>
Title: Re: Add image link below copyright
Post by: bullbreedluverz on January 18, 2009, 10:51:47 AM
cheers runic ill try that in a bit im in the middle of something else at the moment but ill post and let you know

that worked, cheers
Title: Re: Add image link below copyright
Post by: Deaks on January 18, 2009, 12:34:39 PM
when you doing a table and your first row has 3 collumns, and your second row you only need one you need to use the colspan otherwise it lays it out so the collumn on row two ends at end of collumn 1 , for this colspan="3" makes the collumn on row 2 span all the way over to end of table, if I had colspan="2" it would end at end of the second collumn and so forth, also align tags shouldnt be put into the <tr>
Title: Re: Add image link below copyright
Post by: bullbreedluverz on January 18, 2009, 12:44:02 PM
Runic Warrior
Customize Team Mentor
Local Moderator
Simple Machines Hero
*
Online Online

Gender: Male
Posts: 9,740  <--------------------------- maybe when i reach this amount of posts i'll come back and read your post again and fully understand   what you just said lol

im an expert at cut and paste tho lol
Title: Re: Add image link below copyright
Post by: Deaks on January 18, 2009, 12:55:34 PM
lol maybe but it depends on how much spam you do in chat chat :P
Title: Re: Add image link below copyright
Post by: Tyrsson on January 18, 2009, 02:33:29 PM
Those darned colspans again (things drive me crazy lol).
Title: Re: Add image link below copyright
Post by: Antechinus on January 18, 2009, 03:30:14 PM
Damn. Forgot the colspans again. Should know better but it was late. Thanks Runic.
Title: Re: Add image link below copyright
Post by: bullbreedluverz on January 18, 2009, 03:32:06 PM
its ok i'll let you off........ just dont do it again  :D