Topic: Help with the clickbank contextual script pls (Read 1648 times)
Chicken-run Manager
Posts: 9
58 credits Members referred : 0
« on: Jun 29, 2007, 02:55:56 PM »
Hi, I needed a script that uses the clickbank xml feed and displays contextual text ads based on my web page content. Thinking that it appears like the best suited contextual clickbank script for my new article directory I purchased the clickbank contextual script a few nights ago.
However, its not working like I hoped it would. It displays text ads just fine, however is not displaying ads related to keywords in my web pages.
The update goes fine as there is no error and I have clickbank ads in my database.
But when I go to run the maintenance script I get this:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/theprint/public_html/ccs/includes/context.fun.php on line 45
That is the exact error I get when the maintenance script finds web pages I have put clickbank contextual script ads are in. Anyone have any idea what the problem could be?
Also I have the impression if this maintenance script finishes its job successfully I'll get ads based on my page content. Is this correct? Or did I buy this script for the wrong reason?
My web site is www.theprintoffice.com if anyone needs to have a closer look at the way the clickbank contextual script is running. Its in all the article pages. Right now it is nothing more than a text ad banner rotator.
Mark
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6279
38500 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Jun 29, 2007, 04:11:06 PM »
Quote
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/theprint/public_html/ccs/includes/context.fun.php on line 45
you need a (mature) webserver with the php value safe_mode = On
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7970
40777 credits Members referred : 3
« Reply #2 on: Jul 02, 2007, 05:05:51 PM »
Hello tpo and sorry for the delay from me as I was out of the city for a few days.
In order to have contextual ads (based on your content) you should have the maintenance script working. Now the problem you have is because of the safe mode, but I have just fixed it, and mailed it to you. Please tell me if it works.
Chicken-run Manager
Posts: 9
58 credits Members referred : 0
« Reply #3 on: Jul 04, 2007, 12:05:09 AM »
I was to just replace the context.fun.php you emailed me with the one on my server right? well....it didn't work. I tried to view another page on my site (that I have clickbank contextual script in), then tried to preform some more maintenance but I get the same error: Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/theprint/public_html/ccs/includes/context.fun.php on line 45.
If I'm to understand right this is a PHP problem? that started around php 4.0.2 in an effort to make PHP more secure?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7970
40777 credits Members referred : 3
« Reply #4 on: Jul 04, 2007, 12:09:30 AM »
I have already tested this on safe mode and it works. Are you sure you've replaced the file?
If the problem persists I can logon to your ftp and fix it for you. Please let me know how do you want to proceed.
Chicken-run Manager
Posts: 9
58 credits Members referred : 0
« Reply #7 on: Jul 05, 2007, 09:19:09 PM »
Thanks Nikolas, I am no longer having the error when running the maintenance script, however after running maintenance, the ads appear no more relevant to the content, than they were before I run maintenance. Why is this?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7970
40777 credits Members referred : 3
« Reply #8 on: Jul 05, 2007, 09:40:09 PM »
In order to get relevant ads before running the maintenance script you should have first a pageview in the page.
The process is this :
Pageview -> If there are assigned keywords to this page show relative ads. Else it will use the default keywords until the next maintenance.
Now if there are words that appear frequently in a page and you want to remove them open the settings.php and add this :
Chicken-run Manager
Posts: 9
58 credits Members referred : 0
« Reply #9 on: Jul 06, 2007, 11:15:02 AM »
Since I only want the contextual script relevant to the current article on the page, is it possible to put in a few lines (like google adwords) - 1 before the article 1 after the article?
This would make it much easier than removing all the keywords as I don't want the script to use the rest of the page to base its relevant ads on.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7970
40777 credits Members referred : 3
« Reply #10 on: Jul 06, 2007, 12:33:37 PM »
That's not possible but I will add it to the next version (thanks for the nice idea)
Chicken-run Manager
Posts: 9
58 credits Members referred : 0
« Reply #13 on: Jul 08, 2007, 11:52:50 AM »
Understandable. It should be worth the wait.
Chicken-run Manager
Posts: 9
58 credits Members referred : 0
« Reply #14 on: Jul 11, 2007, 07:32:47 PM »
What am I doing wrong? I have added a list of keywords to eliminate from the script in settings.php and I still cant get this script working in contextual mode. The ads simply are not relevant to the content.
Just another rainy day
Posts: 1
6 credits Members referred : 0
« Reply #15 on: Jul 11, 2007, 08:39:25 PM »
Have you looked at the actual database through phpMyAdmin or whatever?
I just recently set the script up for the first time and had a similar problem, although it looked like everything was set up fine. When I looked at the data in the database, there were only about 100 items. I updated the database again and things worked much better after that.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7970
40777 credits Members referred : 3
Have you looked at the actual database through phpMyAdmin or whatever?
I just recently set the script up for the first time and had a similar problem, although it looked like everything was set up fine. When I looked at the data in the database, there were only about 100 items. I updated the database again and things worked much better after that.
The update process take a long time to finish. Maybe that was the problem?
Chicken-run Manager
Posts: 9
58 credits Members referred : 0
« Reply #17 on: Jul 14, 2007, 12:08:13 PM »
Nope. I just ran the update again (for about the 8th time) and the contextual ads are no more relevant than before. The only difference is that I have more ads in the database. I do notice though that the most keywords in the contextual part of the database mainly say article & articles but the funny thing is I omitted those words through settings.php. Also the maintenance I just run after the update show no key words.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7970
40777 credits Members referred : 3