Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Jun 16, 2004, 11:41 PM
mkiwi mkiwi is offline
Junior Member
 
Member Since: Jan 2002
Location: New Zealand
Posts: 11
Hello Guys

I have been serving Google adverts on my POD directory.

But I got an email from Google to say that I cannot serve their adverts on error pages.

Whenever someone types in a partial url pod displays an error message.

To comply with the Google conditions I need to redirect to a custom error page that I can serve without the Google adverts.

I have had to remove Google adverts from my Pod directory as an interim fix

Can someone please help with the cgi code to achieve this?

Kind Regards

Kevin


advertisement
  #2  
Old Jun 18, 2004, 02:39 AM
mkiwi mkiwi is offline
Junior Member
 
Member Since: Jan 2002
Location: New Zealand
Posts: 11
I found a rough and ready fix

I changed:

} else {
$pod_validpage=1;
$pod_status=$pod_res->status_line;
$pod_output="$pod_output<h3>POD encountered the following error while trying to run:
$pod_status\n";
$pod_output="$pod_output
Attempted retrieval URL: $pod_url</h3>\n\n";
}

for:

} else {
use CGI qw/:standard/;
my $url = 'http://www.australian1.com/services/error.html';
print redirect($url);
}

It would be nice to have this in podvars rather than changing the program

Reply
Views: 386

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any bipolar ADDs out there, I've got a med question JonB Attention Deficit Disorder (ADD/ADHD) 5 Jan 09, 2007 02:04 AM
New server isn't serving very well partlycloudy Community Feedback & Technical Support 5 Sep 03, 2004 07:22 AM
DocJohn's Error Page dexter Other Mental Health Discussion 2 Aug 22, 2004 04:14 PM
It all adds up dexter Depression 9 Dec 14, 2003 12:53 PM


All times are GMT -5. The time now is 04:40 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.