wenchupover
01-20-2007, 02:51 PM
Okies, I had this right, then I was messing around trying to get a small image and link above google adsense in my header.......and now the google adsense is over to the left next to the logo. I know it is staring me in the face but I just cant see what I have wrong to get it to go back over to the right. Also, I have tried various things to get an image with a link above the adsense code and for the life of me I just cant get anything to behave. Yes I am fairly new to coding, but even for me this should not be difficult lol Oh this is fun http://img293.imageshack.us/img293/9803/crazy6no.gif
If anyone can offer me any assistance I would appreciate it. Thank you.
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle] /></a></td>
<td align="right">
<script type="text/javascript"><!--
adsense code
</script>
</td>
</tr>
</table>
<!-- /logo -->
http://www.familybasedimmigration.com/forum/
Xhris
01-20-2007, 03:34 PM
try this:
Find this:
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions /></a></td>
<td align="right">
[B]
After it add this:
<td align="right" valign="middle" width=100%>
GOOGLE CODE HERE!
<br>
You might need to play with it to get it working how you want. That should get you going in the right direction. Let me know if you need more help with it.
Xhris
01-20-2007, 03:41 PM
Oh keep in mind that with the adsense in your header it will show on every page. Make sure that none of the pages it shows on is against googles adsense policies. Just an FYI.
wenchupover
01-20-2007, 08:46 PM
try this:
Find this:
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions /></a></td>
<td align="right">
[B]
After it add this:
<td align="right" valign="middle" width=100%>
GOOGLE CODE HERE!
<br>
You might need to play with it to get it working how you want. That should get you going in the right direction. Let me know if you need more help with it.
I need more help :blush:
Thank you for responding and for your help. I don't know whether I explained myself clearly in my first post. If you take a look at my forum you will see my logo top left. The adsense was up until earlier today all the way to the right of the logo. Now it is resting up against the logo. I tried putting in the above piece of code and playing with it but the google adsense still wanted to cuddle to the logo. At the moment I have given up trying to add a button in the top right above the ads, until I get the ads over to the right. I know I have inadvertantly deleted something from my code that was originally there but for the life of me I have looked at it so much that I just can't see what is right in front of me. I feel so stupid.
www.familybasedimmigration.com
Xhris
01-20-2007, 10:32 PM
Post your complete header template code in here so I can look at it.
wenchupover
01-21-2007, 12:05 AM
Thank you mac :) Here it is.......
<!-- content table -->
$spacer_open
<!-- logo -->
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="http://www.familybasedimmigration.com/forum/register.php?"><p>As a GUEST or a member who is not logged in, you will have limited access to the information available on familybasedimmigration.com If you have not yet registered with our community, you can do so by clicking here...</p></a></div>
</if>
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle] /></a></td>
<td align="$stylevar[right]">
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXX";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
//2007-01-19: www.familybasedimmigration.com
google_ad_channel = "XXXXXXXXXX";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "22229C";
google_color_text = "000000";
google_color_url = "A00000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
<!-- /logo -->
$_phpinclude_output
<script type="text/javascript" src="js/ajax-dynamic-content.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/ajax-tooltip.js"></script>
<link rel="stylesheet" href="css/ajax-tooltip.css" media="screen" type="text/css">
<link rel="stylesheet" href="css/ajax-tooltip-demo.css" media="screen" type="text/css">
Peggy
01-21-2007, 12:35 AM
I feel so stupid.
NO need to feel that way. We've all been new to vB, and we've all been new to editing templates.
Even people who have been editing code for ages get stuck. So no more stupid talk ;)
wenchupover
01-21-2007, 05:14 PM
NO need to feel that way. We've all been new to vB, and we've all been new to editing templates.
Even people who have been editing code for ages get stuck. So no more stupid talk ;)
Thanks Peggy. I just get so frustrated as mostly I have been able to work this stuff out as I pick up on things like coding pretty easy. I promise I won't think of myself as stupid anymore :no:
Xhris
01-21-2007, 09:55 PM
Try this:
take this code <td align="$stylevar[right]"> and change it to this <td align="right">
See if that does it.
wenchupover
01-21-2007, 10:18 PM
Unfortunately Mac, that doesn't work either for some reason. I honestly just don't understand it as it was working. Is it possible when I made another slight change to align the logo with my forum by moving the below piece of code above <!-- logo -->
<!-- content table -->
$spacer_open
If so, do you know where I took it from in the first place so I can put it back and see if that works :p
Xhris
01-21-2007, 10:22 PM
Yes it goes below:
<!-- /logo -->
wenchupover
01-21-2007, 10:31 PM
Well it was worth a shot but alas no luck with reverting that back either lol damm
http://img358.imageshack.us/img358/8610/scratchoneshead7ji.gif
Xhris
01-21-2007, 10:34 PM
If you want give me a temp account and I will look at it for you.
wenchupover
01-21-2007, 10:45 PM
That would be great, thank you darlin'. How do I give you a temp account though? I'm assuming to the ACP?
Xhris
01-21-2007, 10:47 PM
Yes just setup a new user in the adminCP with admin control. Then PM me the login info.