Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: rockinaway - elokuu 30, 2006, 03:20:40 IP

Otsikko: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 03:20:40 IP
Well I am trying to set the logo through the Admin Panel... and I am using Aa_New_Damage theme...

but I dont know which address to use to locate the image...

This option is found in 'Current Theme' option
Otsikko: Re: Trouble setting logo!
Kirjoitti: xenovanis - elokuu 30, 2006, 03:30:14 IP
Did you upload the image to your server? You'll need to enter the url to the image, for instance

http://www.yoursite.com/images/logo.jpg
Otsikko: Re: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 03:32:07 IP
does it have to be jpg?

and i have tried that address format.. but i am using gif....
Otsikko: Re: Trouble setting logo!
Kirjoitti: xenovanis - elokuu 30, 2006, 03:33:42 IP
No, could be also gif, png, ... Can you copy and paste the url to your image here?
Otsikko: Re: Trouble setting logo!
Kirjoitti: Fizzy - elokuu 30, 2006, 03:34:10 IP
Then you should be able to use the GIF url in exactly the same way (unless the theme dictates it has to be a jpg)
Otsikko: Re: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 03:35:01 IP
the URL is... http://www.adminfuel.com/forum/logo.gif
Otsikko: Re: Trouble setting logo!
Kirjoitti: Fizzy - elokuu 30, 2006, 03:39:40 IP
The quick and easy way, rename your gif file to smflogo.gif and load it in to /images/
Otsikko: Re: Trouble setting logo!
Kirjoitti: xenovanis - elokuu 30, 2006, 03:40:55 IP
I'm thinking this may just be an "empty" option, left from the default theme. It doesn't look like that theme offers the possibility of using a custom logo. You should ask this in the topic about the theme to make sure.
Otsikko: Re: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 03:42:47 IP
I did PM the author... and he gave me this:

LainaaLook arround in the template file to see how you do images. It's some kind of php call.

Which template file?.. in index.template.php?
Otsikko: Re: Trouble setting logo!
Kirjoitti: xenovanis - elokuu 30, 2006, 03:45:28 IP
Yes, index.template.php. Best to look at the default theme first, to see how the logo is called for, and use that code.
Otsikko: Re: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 03:55:50 IP
Right i edited it and added it.. now the problem is the actual heard image in theme is too small so whole header broken!
Otsikko: Re: Trouble setting logo!
Kirjoitti: xenovanis - elokuu 30, 2006, 04:23:02 IP
This looks fine to me? I like it  :)
Otsikko: Re: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 04:24:10 IP
The header has broken though... and the logo isnt in line with background
Otsikko: Re: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 04:25:24 IP
<td width="910" height="139" background="', $settings['images_url'], '/forum_body_02.jpg" align="center" valign="bottom">
<div class="title-text" style="padding:0 0 18px 0;"><img src="http://www.adminfuel.com/forum/logo.gif"/></div>


That is the bit of code.. should I align the image or something?
Otsikko: Re: Trouble setting logo!
Kirjoitti: xenovanis - elokuu 30, 2006, 04:31:04 IP
Best way to learn is to keep trying. Use align and padding to get the image where you want it.
Otsikko: Re: Trouble setting logo!
Kirjoitti: rockinaway - elokuu 30, 2006, 04:33:40 IP
Yes sorted the middle image.. just the side ones hard to do..