Ads in a php page

Status
Not open for further replies.

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Hello,
I've learning php, but don't know it fully, so how do I stick the new ads in there? BTW, this is for PHPNuke.

Alacritous
 

Richard

Active Member
Messages
2,028
Reaction score
0
Points
36
Hi Alacritous

Your best option would be to put the ad code in your theme or get an ad block for phpnuke :)

*I'm feeling helpful today hehe*

Hope you have security patches :)

Otherwise I recomend you have a look at www.opensourcecms.com you can test some other CMS's like PHPnuke :D
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
This question is directed to the admins/moderators.

I got the image in the PHPNuke place, but I couldn't get the Java script, because it wouldn't let me in the footer.

This is what I have:

Code:
<a href='http://x10hosting.com/advert/adclick.php?n=a7a73694' target='_blank'>
<img src='http://x10hosting.com/advert/adview.php?what=zone:2&amp;n=a7a73694' border='0' alt=''>
</a>

Thanks,
Alacritous
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Theory said:
You are not allowed to modify any part of the advertisement code we provide. If the ad doesn't work with your software, change the software ;).

OK. I'm working on it.

I'm sure others use PHPNuke... can anyone help me put the ad in?

Alacritous
 

Richard

Active Member
Messages
2,028
Reaction score
0
Points
36
Code:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>
 <script language='JavaScript' type='text/javascript'>

 <!--
    if (!document.phpAds_used) document.phpAds_used = ',';
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
    
    document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
    document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:3&amp;target=_blank");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
       document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
 //-->
 </script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a4cb53dd' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:3&amp;n=a4cb53dd' border='0' alt=''></a></noscript>

Thats the new code :D

Do you have any form of live site i could look at.
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Wow....

I found the solution...

http://www.karakas-online.de/EN-Book/javascript-php.html

You can use javascript in PHP if you follow the rules located there.

I thought the ad code you gave me was for me, x10Advanced, but it wasn't, so I spent tons of time correcting it and finally get a text link :(.

I'll do it over, lol.

Sorry admins for not having the ads correctly, but now it does.
Alacritous
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Seeker_952 said:
Glad you got your problem sorted

Yeah, I didn't want to get suspended.

I think I might make a quick little program that adds all the echo's and "'s and /n's.

Alacritous
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Seeker_952 said:
I checked out your site looks interesting. One thing you'll need to move the ad's towards the top 'cause of new reguraltions

http://www.x10hosting.com/showthread.php?t=489

Thank you... I didn't read that. Argh, I have to obey, but man with these new ads it doesn't match my black background :(. They said they will pre aprove sites for google ads, so it will help.

I have 2 forums, well one phpbb forums and one phpnuke. The one that is phpbb, which is alac.x10hosting.com/forum/ is horrible. I am changing that layout because it is horrible. Is that what you are calling interesting? The phphnuke, which is alac.x10hosting.com/legion/ is for my guild on World of Warcraft which consists of mostly real life friends.

Alacritous
 

Chris

New Member
Messages
1,538
Reaction score
0
Points
0
Theory said:
The phpBB forum is kind of fruity :eek:.

Yeah, I said it was horrible, lol. I was working on my guild site, but I will get a new style. Problem is, there arn't other black styles. I'll probably end up making my own, just another time waster. See I got a black style, didn't like the colors, so I decided to make it interesting, but it turned out bad.

Just so I can save time, does anyone know what file the image at the top of a PHP Nuke portal is? Like mine says Horde Legion, I'm trying to get the ads to the right of it, just cannot find the file. Edit: I found it, within seconds, lol. If you want to know, it's in the header file of the style you are using.

Alacritous
 
Status
Not open for further replies.
Top