| Author |
Message |
Nomad Client

Joined: Jan 21, 2006 Posts: 87 Location: Arizona
|
Posted:
Tue May 16, 2006 3:01 pm |
|
I use the latest Raven Distro and NSN_Banner_Ads_75-77_130.
My question is this: How do you add banners that contain Java scripts, such as this:
| Code: |
<scr ipt type="text/javascr ipt"><!--
google_ad_client = "pub-476xxxxxxxxxxxx";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQlYyYhAIaCNFy17maAhMqKOm293M";
//--></scr ipt>
<scr ipt type="text/javascr ipt" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</scr ipt> |
|
|
|
|
 |
BobMarion Site Admin

Joined: Oct 30, 2002 Posts: 1039 Location: RedNeck Land (known as Kentucky)
|
Posted:
Wed May 17, 2006 7:46 pm |
|
You save them locally as text files then add them like an image banner except you make sure you select the type as "Script". |
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 210
|
Posted:
Wed May 17, 2006 9:24 pm |
|
Hmmm...tried that by naming the file adsense-top.txt
Filled in the blanks like this:
New Source:
Click URL: "Left Blank"
Alt Text: "Left Blank"
Height: 60
Width: 468
Flash: No
Script: Yes
All I get are errors. I know the file path is correct.
| Quote: | Warning: filesize(): Stat failed for (errno=2 - No such file or directory) in /var/www/vhosts/samplesite.com/httpdocs/admin/modules/bannerads.php on line 382
Warning: fread(): Length parameter must be greater than 0. in /var/www/vhosts/samplesite.com/httpdocs/admin/modules/bannerads.php on line 382
Client ID: Adsense
Imp. Total: 0
Enddate: 2007-06-24
Image Source:
Flash: No
Script: Yes
Placement: Header
Status: Pending |
Am I missing something. |
|
|
|
 |
Nomad Client

Joined: Jan 21, 2006 Posts: 87 Location: Arizona
|
Posted:
Wed May 17, 2006 10:08 pm |
|
Well, It worked for me no problems. Thanx Mr. Bob!
The only difference is that I used a relative path instead of the absolute path.
I.e.. I put
New Source: graphics/firefoxbanner.txt
Click URL: (left Blank)
ALT Text: (left Blank)
Height: 60
Width: 468
Flash: No
Script: Yes |
|
|
|
 |
BobMarion Site Admin

Joined: Oct 30, 2002 Posts: 1039 Location: RedNeck Land (known as Kentucky)
|
Posted:
Wed May 17, 2006 10:09 pm |
|
Did you CHMOD 777 the images/banners/ directory? Or did you upload to that directory?
| Dauthus wrote: | Hmmm...tried that by naming the file adsense-top.txt
Filled in the blanks like this:
New Source:
Click URL: "Left Blank"
Alt Text: "Left Blank"
Height: 60
Width: 468
Flash: No
Script: Yes
All I get are errors. I know the file path is correct.
| Quote: | Warning: filesize(): Stat failed for (errno=2 - No such file or directory) in /var/www/vhosts/samplesite.com/httpdocs/admin/modules/bannerads.php on line 382
Warning: fread(): Length parameter must be greater than 0. in /var/www/vhosts/samplesite.com/httpdocs/admin/modules/bannerads.php on line 382
Client ID: Adsense
Imp. Total: 0
Enddate: 2007-06-24
Image Source:
Flash: No
Script: Yes
Placement: Header
Status: Pending |
Am I missing something. |
|
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 210
|
Posted:
Wed May 17, 2006 10:18 pm |
|
Well, following Nomad's advice, I removed the domain from the url and it works perfectly. Thanks. I always wondered what I was doing wrong. DOH!
Now if I could just get the client ID to show instead of a blank field.......
Hint....Hint.... |
|
|
|
 |
|
|
|
|