No javascript allowed?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   No javascript allowed?
bxfl
CZ Super Newbie
bxfl has been a member for over 20 year's 20 Year Member
Gender: Female
Website:
Status: Offline
Joined: Mar 22, 2004
0.01 posts per day
Posts: 60
Points: 2,594
AIM Address   
I'm trying to create a block with GoogleAds, and it keeps telling me that "the HTML is not valid". Here is what I am trying to fill the block with. Any ideas on what I should do??? Thanks in advance.


{script type="text/javascript"}{!--
google_ad_client = "pub-9579860722213887";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel ="";
//--}{/script}
{script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"}
{/script}


Realize that I had to add the { } instead of < > for it to even allow me to post it in these forums!!!


Back to top Reply with quote
#2   re: No javascript allowed?
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
The word script is blocked. To many nasty things can happen. If you want to allow the use of it then you will have to edit the mainfile.php and remove it from the banned word list. If you want to use it as block use the block maker under tools and try it that way.




_________________
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
#3   re: No javascript allowed?
bxfl
CZ Super Newbie
bxfl has been a member for over 20 year's 20 Year Member
Gender: Female
Website:
Status: Offline
Joined: Mar 22, 2004
0.01 posts per day
Posts: 60
Points: 2,594
AIM Address   
Hi again. I can't find a censored words list in mainfile.php in PHPNuke 7.0. Any ideas?



Back to top Reply with quote
#4   re: No javascript allowed?
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,440
   
Look again its there or you would be able to post scripts.


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> ]");
    }
}

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> ]");
    }
}




_________________
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
#5   re: No javascript allowed?
bxfl
CZ Super Newbie
bxfl has been a member for over 20 year's 20 Year Member
Gender: Female
Website:
Status: Offline
Joined: Mar 22, 2004
0.01 posts per day
Posts: 60
Points: 2,594
AIM Address   
Thanks!!



Back to top Reply with quote
#6   
dsnail2000
CZ Super Newbie
 Codezwiz Site Donator
dsnail2000 has been a member for over 20 year's 20 Year Member
usa.gif virginia.gif
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Jun 28, 2004
0.00 posts per day
Posts: 36
Points: 6,786
   
How do you add javascript to tpl files? I want to put a googlead in the overall header of my forums.



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