TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 639
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Error adding scripts to scriptbox

Started by Dream, October 12, 2007, 05:34:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dream

TP Version 0.9.8

SMF Version: SMF 1.1.4

Im trying to add some google ad scripts to script box's but each time I try I get the following ...

403 Forbidden
You don't have permission to access /chat/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have tried deleting all temp internet files/cookies. Another admin has also tried with the same result.

I also tried to add the script using the ad mod with the same result...

HELP!!!!!!! lol

G6Cad

What code do you use in the scriptblock ? Also make sure you have the correct permissions and files the script calling for

Dream

Its a google ad script, I had no problems with the scripts until I set up on a new server. I can add the script to a plain html page so its not the server blocking it.

As you can see from the error...

403 Forbidden
You don't have permission to access /chat/index.php on this server.

That is the index page, everyone has permsission to access it.

Except for trying to redo the whole site I can't think how else to fix it (if that will fix it).

I'll see if I can post the script here...

<center>
<script type="text/javascript"><!--
google_ad_client = "pub-6567210147369801";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>

G6Cad

It might be that your host doesent allow outside scripts to be run through the php server. ( the script is being read through the php server when you add it inside SMF and tp, but as standalone it's not)
Ask your host about it :)

This website is proudly hosted on Crocweb Cloud Website Hosting.