News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Iframe with Banner or PHPsds help needed

Started by xtremecruiser, April 08, 2005, 07:15:47 PM

Previous topic - Next topic

xtremecruiser

I figured out how to add phpads with the use of Iframes but I have a little code alignment issue :-X

I am using the default template and would like to add the frame to use for phpads

I created a htm file with the phpad code and saved it and linked it into the Iframe

But I want the images to match up, the smflogo is lower and the phpds are high ?

http://www.golfshackchat.com/forum/index.php

I have been beating my head for a day trying to figure out the code for the Logo image.
I can remove the default logo and add a 1x2 frame with 1 side the php code and the other the logo but it also sits high with extra space before the forum.

Can someone help me out ?
Code used is below

// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<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="float: right;" alt="" />

<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';

echo '
</td>
</tr>
<P ALIGN=left><IFRAME SRC="http://www.golfshackchat.com/phpads.htm"
WIDTH=470 HEIGHT=90 scrolling="no" border="0"
frameborder="0"></IFRAME></P>


BTW the code works great at the bottom for google ads or a bottom phpad

<P ALIGN=center><IFRAME SRC="http://www.xxx.com/phpads.htm"
WIDTH=470 HEIGHT=90 scrolling="no" border="0"
frameborder="0"></IFRAME></P>

A.M.A

I cant see your ads .. maybe it is because of my IS. Anyhow why not divide the td into two.
So instead of this:
<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...

use something like this
<td>phpads or iframe</td>
<td valign="top" style="padding: 5px; white-space: nowrap;">';

// This part is the logo and forum name.  You should be able to change this to whatever
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

xtremecruiser

I see it in all browsers ???
I will give your idea a try tonight, THANKS !

xtremecruiser

#3
Interesting, it brought the PHPads down and made the Logo go up, it well flipped them.
I kinda want them both down.
I will look at the change and see what does what.
Thanks

Got it workiing now, editing a test template is the way to make changes ::)

Thanks for all the help.

Advertisement: