News:

Wondering if this will always be free?  See why free is better.

Main Menu

hotlinking logo on the right

Started by saw, December 01, 2004, 10:26:11 AM

Previous topic - Next topic

saw

Some time ago I managed to add my logo w/hotlink to the upper left (and replace the smflogo.gif on the upper right).

Now that I want to replace my customized smflogo with a hotlinked one I seem unable to do it without bolloxing everything up. Help.

ALSO
I'm wondering if there's some way I can have a much deeper ad on the right than seems currently possible; I've done away with the various information boxes normally up there, so it's just blank space now. Obviously there's some invisible stuff in the way...

Oldiesmann

If you can post the code from that area that you were using when you had the hotlinked logo on the left and the customized logo on the right, I can probably help you out.
Michael Eshom
Christian Metal Fans

saw

<img src="', $settings['images_url'], '/smflogo.gif" width="250" style="float: right;" alt="" />
               <span style="font-family: Georgia, sans-serif; font-size: xx-large;">
                    <a href="http://www.prettygoodbritain.com"><img src="', $settings['images_url'], '/pgb2.gif" /></a></span>';

Any help greatly appreciated.
btw, I'm not a programmer, but it seems to me that all that font family stuff is no longer necessary as I did away with the original text up there.

Oldiesmann

Yeah. You can get rid of that span tag.

Ok... If you're just replacing the SMF logo with a hotlinked one (and not getting rid of your current hotlinked image):

<a href="http://www.somesite.com"><img src="', $settings['images_url'], '/image.gif" width="imagewidth" style="float: right;" alt="" /></a>
                    <a href="http://www.prettygoodbritain.com"><img src="', $settings['images_url'], '/pgb2.gif" /></a>


Or, if you're replacing your SMF logo with the current hotlinked image and doing something else where the current hotlinked image is:

<a href="http://www.prettygoodbritain.com"><img src="', $settings['images_url'], '/pgb2.gif" style="float:right" /></a>
Michael Eshom
Christian Metal Fans

saw

#4
Works like a charm (thanks!) except for those EEEEs on the upper left...

Also - can I now have a deeper ad on the right, or am I still limited to the current size? I'd like to go down to the bottom of the User Info box.

http://www.prettygoodbritain.com/forums/index.php

Note that I've now gone back to my last saved version, so the EEEEEs won't be there if you look (nor will the hotlinking, alas).

Oldiesmann

What do you mean "except for those EEEEs"? Sounds like maybe you've got a messed up color code there... (#EEEEEE is a really light gray - looks like this). I will look into that ad thing for you. I would assume you can go deeper, but I'm not sure.
Michael Eshom
Christian Metal Fans

saw

What I really mean is a line of &ecirc;s. You should see them if you go there now (unless it's just my Mac playing funny).

Oldiesmann

First, sorry about my last post. I didn't realize that was the same color as windowbg2...

Second, try downloading index.template.php to your computer, then open it in your text editor and replace the space before that linked image with a tab and save it, then upload it again. I have a feeling those funny-looking characters are due to some strange spacing that somehow got in there... (I'm using Windows XP with Firefox and they show up for me too).
Michael Eshom
Christian Metal Fans

saw

#8
Indeed, there was unnecessary spacing in there. I had no idea there was a difference between spacebar spaces and tabs.

I've since checked the page on a PC and note that the ad on the right has shrunk down to an insignificant (but linked) couple of pixels. How odd. It shows up on my Mac. Unfortunately most of the world doesn't run on Macs.

AS TO making the ad (again on the right) deeper, the last time I tried it it just shoved the rest of the page elements down. I'm a fan of white space, but not that big a fan.

ONE MORE QUESTION would be how to remove the blue frame which indicates an ad/logo is also a link.

Oldiesmann

Add border="0" to the image tag to get rid of that (rather annoying) border.
Michael Eshom
Christian Metal Fans

saw

Thanks for that.

Back to my missing ad on the right. Any idea where it's gone?

saw

#11
Quote from: Oldiesmann on December 01, 2004, 05:43:28 PM
Add border="0" to the image tag to get rid of that (rather annoying) border.

Where (and how) exactly does that go?
In here somewhere, right?
<img src="', $settings['images_url'], '/pgb2.gif" /></a>

I could do it hit or miss but I grow weary.

Oldiesmann

<img src="', $settings['images_url'],'/pgb2.gif" border="0" />

Your ad shouldn't have gone anywhere...
Michael Eshom
Christian Metal Fans

saw

Never mind. I figured out what I was doing wrong there.

All that remains is to unclutter the invisible clutter beneath it so I can go deep.

Advertisement: