PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Nomad
Client


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

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

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>
View user's profile Send private message Visit poster's website AIM Address
BobMarion
Site Admin


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

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

You save them locally as text files then add them like an image banner except you make sure you select the type as "Script".
View user's profile Send private message Send e-mail Visit poster's website
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 210

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

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

Filled in the blanks like this:

New Source:
Only registered users can see links on this board!
Get registered or login to the forums!

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
Only registered users can see links on this board!
Get registered or login to the forums!
(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:
Only registered users can see links on this board!
Get registered or login to the forums!

Flash: No
Script: Yes
Placement: Header
Status: Pending


Am I missing something.
View user's profile Send private message Visit poster's website
Nomad
Client


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

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

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
View user's profile Send private message Visit poster's website AIM Address
BobMarion
Site Admin


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

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

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:
Only registered users can see links on this board!
Get registered or login to the forums!

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
Only registered users can see links on this board!
Get registered or login to the forums!
(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:
Only registered users can see links on this board!
Get registered or login to the forums!

Flash: No
Script: Yes
Placement: Header
Status: Pending


Am I missing something.
View user's profile Send private message Send e-mail Visit poster's website
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 210

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

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....
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum