Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
Nomad
Client



Joined: Jan 21, 2006
Posts: 87
Location: Arizona

PostPosted: Tue May 16, 2006 3:01 pm Reply with quote

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>

_________________
Nomad!~! 
View user's profile Send private message Visit poster's website AIM Address
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Wed May 17, 2006 7:46 pm Reply with quote

You save them locally as text files then add them like an image banner except you make sure you select the type as "Script".

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
Dauthus
Worker
Worker



Joined: Oct 07, 2003
Posts: 211

PostPosted: Wed May 17, 2006 9:24 pm Reply with quote

Hmmm...tried that by naming the file adsense-top.txt

Filled in the blanks like this:

New Source: http://www.samplesite.com/images/banners/adsense-top.txt
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 http://www.samplesite.com/images/banners/adsense-top.txt (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: http://www.samplesite.com/images/banners/adsense-top.txt
Flash: No
Script: Yes
Placement: Header
Status: Pending


Am I missing something.

_________________
Only registered users can see links on this board! Get registered or login!
Vivere disce, cogita mori 
View user's profile Send private message Visit poster's website
Nomad







PostPosted: Wed May 17, 2006 10:08 pm Reply with quote

Well, It worked for me no problems. Thanx Mr. Bob! Very Happy

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







PostPosted: Wed May 17, 2006 10:09 pm Reply with quote

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: http://www.samplesite.com/images/banners/adsense-top.txt
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 http://www.samplesite.com/images/banners/adsense-top.txt (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: http://www.samplesite.com/images/banners/adsense-top.txt
Flash: No
Script: Yes
Placement: Header
Status: Pending


Am I missing something.
 
Dauthus







PostPosted: Wed May 17, 2006 10:18 pm Reply with quote

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....
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©