Author |
Message |
gstrategic
Hangin' Around
![](modules/Forums/images/avatars/blank.gif)
Joined: Aug 15, 2005
Posts: 46
|
Posted:
Fri Sep 09, 2005 2:37 pm |
|
I'm trying to insert an Adsense module right under neath the logo and the top horizontal bar in PHP Nuke. I try to ad the code in theme.php. Please take a look at the photo because I couldn't include the code here.
Right now, it loads up without the Adsense module.
Thanks, |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Fri Sep 09, 2005 3:11 pm |
|
hi ,
i doubt if that will work between tables.
now the code is more like floating...
try it in a table..
Code:<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table1">
<tr><td>ADSENSE HERE</td></tr>
</table>
|
If that fails try to put it all in original code and before code close php ?>
and after open again <? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Sep 09, 2005 4:35 pm |
|
still doesn't show up. I have the image updated. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Sep 09, 2005 4:37 pm |
|
Try tp put it in plain html..
You put it in a table right?
Now before the table put closing php .. ?>
and after the closing table the php open again like <? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Fri Sep 09, 2005 5:46 pm |
|
As hitwalker said, you need to close php first, then insert your adsense code from google then restart php - I find that the easiest way. Your code would look something like this
Code:
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table1">
<tr>
<td>
<center>
ADSENSE HERE
<center>
</td>
</tr>
</table>
>?
|
If you are still struggling, post a link to your file in plain text format and I'll edit it for you. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/a22ae3b240f0eae302721.jpg)
Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com
|
Posted:
Fri Sep 09, 2005 9:01 pm |
|
You mean, like this?
http://pilot.lenon.com/index.php
Nice colors! You mind if I borrow them?
Oops! I accidently clicked one of my ads. Yep, it works! Did you know you can design your own website on Homestead.com? Interesting...
EDIT:
Bah! Now I see why you used a .GIF file for your example. I was going to post the changes here, but the security proggie skewered me. I'm surprised I'm not banned -- then again, maybe I am.
Anyway, here's the file:
ftp://ftp.lenon.com/gstrategic.tar.bz2
Um... you need to use YOUR OWN Google pub account, of course... please! |
_________________ .:: "The further in you go, the bigger it gets!" ::.
.:: Only registered users can see links on this board! Get registered or login! | Only registered users can see links on this board! Get registered or login! ::. |
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Sep 09, 2005 10:27 pm |
|
Just split up the script tags <scr^ipt> </scr^ipt> And the error screen explains this and also that you really aren't banned - only warned. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 12:17 am |
|
you guys are so funny! Thanks for the help. ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 1:01 am |
|
Raven wrote: | Just split up the script tags <scr^ipt> </scr^ipt>... |
Heh! I just spent 15 minutes trying to 'rig' the code, and I'm still getting warnings. I even did a copy n' paste to MS-Word and did a search for 'script' and 'style' to make sure I didn't miss any instances.
Oh, well, at least I didn't get banned, like over at Maty's MSA web site... ![Groovy](modules/Forums/images/smiles/groovy.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 1:03 am |
|
gstrategic wrote: | you guys are so funny! Thanks for the help. |
You're welcome! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 1:29 am |
|
If the code has any of the tags in mainfile.php it will get blocked. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 3:43 am |
|
Raven wrote: | If the code has any of the tags in mainfile.php it will get blocked. |
Yep, understood!
I like gstrategic's idea -- just take a picture of it...
Transparent .PNG ![Wave](modules/Forums/images/smiles/mexicanwave.gif) |
Last edited by VinDSL on Sat Sep 10, 2005 3:54 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 3:49 am |
|
ok awake again,i thought this was solved now....lol ![Laughing](modules/Forums/images/smiles/icon_lol.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 4:04 am |
|
hitwalker wrote: | ok awake again,i thought this was solved now....lol |
Yeah, we're just having some fun!
Been a good day. I hate to call it 'quits'... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 4:20 am |
|
well it sure is amuzing vin...
i cant remember your replies had so much humor in it.....
Is this the new vin ? ![Dance-Y](modules/Forums/images/smiles/dance.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 2:15 pm |
|
Quote: | ftp://ftp.lenon.com/gstrategic.tar.bz2 |
Vin, I can't download this file you have here. I've never seen .bz2 extension before. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 2:43 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 2:46 pm |
|
and just to help a litle bit...
(zip file is removed by now) |
Last edited by hitwalker on Fri Feb 03, 2006 7:45 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 6:25 pm |
|
Sorry about that! Only registered users can see links on this board! Get registered or login! rocks! I use it as much as possible, but...
As Raven said, WinRAR (as well as many other file compression utilities) will handle bz2 just fine. It's pretty common, these days, and will save you a lot of download time on large distros, so you might consider upgrading your archiver, if it doesn't recognize bz2 files...
I prefer WinRAR to just about anything else out there, but I've played around with this *freeware* proggie, and it works good too: http://www.zipgenius.it/ ![Wink](modules/Forums/images/smiles/icon_wink.gif) |
Last edited by VinDSL on Sat Sep 10, 2005 6:40 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 6:32 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Sep 10, 2005 6:42 pm |
|
Oops! Wrong link... try it again...
That's what happens when you're doing 10 things at once... ![ROTFL](modules/Forums/images/smiles/rotfl.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Sep 11, 2005 12:18 am |
|
vin and hitwalker, thanks for the file.
I don't know why it stil doesn't work (please check my updated gif). is there a java junction somewhere I need to upgrade? It works for Vin. ![Sad](modules/Forums/images/smiles/icon_sad.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Sep 11, 2005 2:44 am |
|
It looks like you have a lot of stuff commented out in your example, plus I can't see the whole thing, so I don't know what the problem is. You're probably missing a table cell, or something.
If it was me, I'd rename the 'theme.php' that you're using, to something like 'theme.bak', and upload the file I tweaked. It should be a drop-in. If it works for you, then you can go from there. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
VinDSL
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 14, 2005 12:40 am |
|
VinDSL wrote: | Only registered users can see links on this board! Get registered or login! rocks! I use it as much as possible... |
If you don't mind me quoting myself, this exemplifies why I use bz2.
I was just updating my phpMyAdmin install. Check out the file sizes...
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Sep 14, 2005 11:49 pm |
|
I did just what you suggested and it works great. Thanks Vin |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|