News:

Join the Facebook Fan Page.

Main Menu

Where and how do i

Started by smo1722, October 18, 2007, 01:37:54 PM

Previous topic - Next topic

smo1722

Put a image or a gif next to my forum name is there a specific size i have to use.
Thanks
smo1722

spottedhog

Look in your Index.template.php file, and look for the logo or sitename ($mbname) somewhere after the body html tag.  I do not know which theme that is so I cannot be more specific.  Sorry...

greyknight17

If that theme already has a logo, you can always right click on it and go to Properties. Then see what size it has and make your logo the same size.

smo1722

It is the default modified theme i am running 1.1.4 will this make any difference also i am running firefox with firebug can i do this on the fly.
cheers
smo1722

greyknight17

Did you check the size of your logo and the one from SMF? If they are about the same, you probably won't notice much change in size. Even if your logo is bigger or smaller, it shouldn't affect the forum's overall appearance unless it's a huge logo. Look for smflogo.gif in Themes/default/images and rename that file. Put your file in and rename it to smflogo.gif

smo1722

Sorry about the delay in replying. i have been working away.

Ok the pic i have is 7kb and i want to position it after the title of my forum i have tried uploading as you say through ftp without success(message come's back critical error in uploading) is there any other way i can do this please make it simple as possible as i am totally new to this.
I am running1.1.4 with a modified theme does this make a difference.
Thanks for your help.
smo1722

Bulakbol

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

smo1722

http://www.pattayapeople.co.uk/

I just want to place a pic(jpg) at the end of the forum name.
Thanks
smo1722

Bulakbol

Let's try this. Edit your index.template.php, find

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

echo '
</td>


and add at the bottom of the </td>

<td>
<img src="', $settings['images_url'], '/filename_of_yourlogo.gif" width="200" alt="" />
</td>


your filename_of_yourlogo.gif should be in default/images directory. Change the width="200" to adjust the width of your logo.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

smo1722

Thanks JohnyB
But it didn't work i have attached a copy of what i did.. i think i did as you said i hope this helps.
Thanks for your help
smo1722

Bulakbol

You forgot <td> just before the <img src... It should be like this

echo '
   </td>
<td>
<img src="', $settings['images_url'], '/kob.jpg" width="100" alt="" />
</td>


Try that.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

smo1722

#11
I have just copied and paste what you said JB and still no joy..if you go to my forum you will see what it as changed it to i have left it up there any ideas.
Thanks
smo1722

Bulakbol

I'll tell you what. Put back the original codes and we'll work from there. The original codes...

echo '
</td>
<td align="left" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>


Replace the smflogo.gif with kob.jpg. If still won't display your logo, then the filename is wrong or it is in different directory.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

smo1722

Done what you said JB and it works fine with sm logo,but no other pics that i have uploaded into the image folder  going back to what greyknight posted about the smflogo.gif well i cant see that in the images folder either.
Cheers
smo1722

greyknight17

It should be in /Themes/default/images/ folder. If not, download the install package here. Then extract only that smflogo.gif file and upload it to that folder.

Advertisement: