Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
gstrategic
Hangin' Around



Joined: Aug 15, 2005
Posts: 46

PostPosted: Fri Sep 09, 2005 2:37 pm Reply with quote

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.

Image

Thanks,
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Fri Sep 09, 2005 3:11 pm Reply with quote

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 <?
 
View user's profile Send private message
gstrategic







PostPosted: Fri Sep 09, 2005 4:35 pm Reply with quote

still doesn't show up. I have the image updated.
 
hitwalker







PostPosted: Fri Sep 09, 2005 4:37 pm Reply with quote

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 <?
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Sep 09, 2005 5:46 pm Reply with quote

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.
 
View user's profile Send private message Send e-mail
VinDSL
Life Cycles Becoming CPU Cycles



Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Fri Sep 09, 2005 9:01 pm Reply with quote

You mean, like this?
[ Only registered users can see links on this board! Get registered or login! ]

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... Mr. Green

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:
[ Only registered users can see links on this board! Get registered or login! ]

Um... you need to use YOUR OWN Google pub account, of course... please!

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: VinDSL's Lenon.com | The Disipal Site ::. 
View user's profile Send private message Visit poster's website ICQ Number
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Sep 09, 2005 10:27 pm Reply with quote

Just split up the script tags ROTFL <scr^ipt> </scr^ipt> And the error screen explains this and also that you really aren't banned - only warned.
 
View user's profile Send private message
gstrategic







PostPosted: Sat Sep 10, 2005 12:17 am Reply with quote

you guys are so funny! Thanks for the help. Wink
 
VinDSL







PostPosted: Sat Sep 10, 2005 1:01 am Reply with quote

Raven wrote:
Just split up the script tags ROTFL <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
 
VinDSL







PostPosted: Sat Sep 10, 2005 1:03 am Reply with quote

gstrategic wrote:
you guys are so funny! Thanks for the help. Wink

You're welcome!
 
Raven







PostPosted: Sat Sep 10, 2005 1:29 am Reply with quote

If the code has any of the tags in mainfile.php it will get blocked.
 
VinDSL







PostPosted: Sat Sep 10, 2005 3:43 am Reply with quote

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...

Image

Transparent .PNG Wave


Last edited by VinDSL on Sat Sep 10, 2005 3:54 am; edited 1 time in total 
hitwalker







PostPosted: Sat Sep 10, 2005 3:49 am Reply with quote

ok awake again,i thought this was solved now....lol Laughing
 
VinDSL







PostPosted: Sat Sep 10, 2005 4:04 am Reply with quote

hitwalker wrote:
ok awake again,i thought this was solved now....lol Laughing

Yeah, we're just having some fun!

Been a good day. I hate to call it 'quits'...
 
hitwalker







PostPosted: Sat Sep 10, 2005 4:20 am Reply with quote

well it sure is amuzing vin... Razz
i cant remember your replies had so much humor in it.....
Is this the new vin ? Dance-Y
 
gstrategic







PostPosted: Sat Sep 10, 2005 2:15 pm Reply with quote

Quote:
ftp://ftp.lenon.com/gstrategic.tar.bz2


Vin, I can't download this file you have here. Smile I've never seen .bz2 extension before.
 
Raven







PostPosted: Sat Sep 10, 2005 2:43 pm Reply with quote

Try winrar [ Only registered users can see links on this board! Get registered or login! ]
 
hitwalker







PostPosted: Sat Sep 10, 2005 2:46 pm Reply with quote

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 
VinDSL







PostPosted: Sat Sep 10, 2005 6:25 pm Reply with quote

Sorry about that! BZIP2 rocks! I use it as much as possible, but... Bang Head

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: [ Only registered users can see links on this board! Get registered or login! ] Wink


Last edited by VinDSL on Sat Sep 10, 2005 6:40 pm; edited 1 time in total 
Raven







PostPosted: Sat Sep 10, 2005 6:32 pm Reply with quote

Shocked .asp Shocked - Smack
 
VinDSL







PostPosted: Sat Sep 10, 2005 6:42 pm Reply with quote

Raven wrote:
Shocked .asp Shocked - Smack

Oops! Wrong link... try it again...

That's what happens when you're doing 10 things at once... ROTFL
 
gstrategic







PostPosted: Sun Sep 11, 2005 12:18 am Reply with quote

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
 
VinDSL







PostPosted: Sun Sep 11, 2005 2:44 am Reply with quote

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.
 
VinDSL







PostPosted: Wed Sep 14, 2005 12:40 am Reply with quote

VinDSL wrote:
BZIP2 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... Mr. Green

    Image
 
gstrategic







PostPosted: Wed Sep 14, 2005 11:49 pm Reply with quote

I did just what you suggested and it works great. Thanks Vin
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©