Google Adsense on Banners module ?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Google Adsense on Banners module ?
teNtiOn
CZ Newbie
teNtiOn has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 08, 2004
0.00 posts per day
Posts: 17
Points: 1,143
   
Anyone knows how to put Google Adsense ads to the banners module of phpnuke ? I can't enter the full script of Google Adsense into, will get error. Anyone knows how ? I'm currently using phpnuke 7.5. Thanks



Back to top Reply with quote
#2   re: Google Adsense on Banners section ?
teNtiOn
CZ Newbie
teNtiOn has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 08, 2004
0.00 posts per day
Posts: 17
Points: 1,143
   
I have download the CZBanners from the sticky topic on this forum. But i got an "Access Denied" error when i click on the CZBanner in the Administration. Can someone help me out ?



Back to top Reply with quote
#3   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
You will need to change the CZBanners to work with 7.5. Try this:
[ Register or login to view links on this board. ]




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#4   re: Google Adsense on Banners module ?
teNtiOn
CZ Newbie
teNtiOn has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 08, 2004
0.00 posts per day
Posts: 17
Points: 1,143
   
Can you help me change the files ? I try to change it just now and got the whole control panel crash... icon_sad.gif



Back to top Reply with quote
#5   re: Google Adsense on Banners module ?
teNtiOn
CZ Newbie
teNtiOn has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 08, 2004
0.00 posts per day
Posts: 17
Points: 1,143
   
Finally i get the thing works but whatever script i enter such as Google Adsense script will get me an error like below. Anyone have any idea on it ?



The html tags you attempted to use are not allowed



Back to top Reply with quote
#6   re: Google Adsense on Banners module ?
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
Its because of your mainfile.php you need to edit that to allow yourself to post scripting. Open your mainfile.php and find these two sections:

1.
foreach ($_GET as $secvalue) {
    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
   (eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
   (eregi("\"", $secvalue))) {
   die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
    }
    }


2.

foreach ($_POST as $secvalue) {
    if (eregi("<[^>]script*\"?[^>]*>", $secvalue)) {
        die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
    }
    }



And remove them. Then scroll down in the mainfile.php and find the function is_admin after that place these two sections that are replacing the two you deleted from above:

1.

foreach ($_GET as $secvalue) {
if (!is_admin($admin)) {
    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
   (eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
   (eregi("\"", $secvalue))) {
   die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
    }
}
    }


2.

foreach ($_POST as $secvalue) {
if (!is_admin($admin)) {
    if (eregi("<[^>]script*\"?[^>]*>", $secvalue)) {
        die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
    }
}
    }




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: Google Adsense on Banners module ?
teNtiOn
CZ Newbie
teNtiOn has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Jun 08, 2004
0.00 posts per day
Posts: 17
Points: 1,143
   
Thanks for that ! icon_razz.gif

But is the mod not functionable in phpnuke 7.5 ? I have successful install it and submit a javascript on it but no banner displayed...



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum