12, May 2008

clickbank search engine help needed - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  WebDigity Community  >  HumanWorks network news & feedback  >  Clickbank Contextual Script Support
Topic: clickbank search engine help needed
« previous next »
Pages: [1] Print

Author Topic: clickbank search engine help needed  (Read 210 times)
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« on: Apr 21, 2008, 04:19:53 PM »

Greetings. I have installed the ClickBank Contextual because I really want to create a clickbank search engine on my site askhow.com - ie, all results are clickbank products from search. I read an article said you could do it w/this script:

Here's the article

http://paymentblogger.com/2007/06/19/how-to-create-your-own-clickbank-search-engine/ Visit through proxy

I downloaded the example file and am having initial trouble with the form to show up correctly.

I haven't change anything, except updated the info required.

Any help would be great because I am losing traffic as we speak, thanks

Lisa
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7822
39867 credits
Members referred : 3



« Reply #1 on: Apr 21, 2008, 05:59:25 PM »

Hi.

First of all do you have the clickbank contextual script installed in your server?

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #2 on: Apr 21, 2008, 06:21:08 PM »

Yes, at the root directory (public_html)

thanks
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7822
39867 credits
Members referred : 3



« Reply #3 on: Apr 21, 2008, 07:59:02 PM »

ok, and what is the error that you get?

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #4 on: Apr 21, 2008, 09:18:42 PM »

basically, if you look at www.askhow.com Visit through proxy you can see i get the form info and no search box,

thanks
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7822
39867 credits
Members referred : 3



« Reply #5 on: Apr 21, 2008, 09:32:58 PM »

Yes that's because you are not writing the html code correct. Instead of <> you have &qlt;....

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #6 on: Apr 21, 2008, 09:59:00 PM »

ok let me look, i took it from the example in the article linked above, (downloadable zip)

It's funny the code doesn't have that in it: here's the code:(i changed the user and pass but that's it)
I usually work with html, so I'm not certain what i need to do to make the php form work.

thanks for taking a look.
Code starts here:
<?php
/**
 * PHP function for integration of search results with Clickbank program
 *
 *      Requires : Clickbank contextual script
 *            http://cbcontextual.com/ Visit through proxy
 *
 * For support issues please refer to the webdigity forums :
 *            www.webdigity.com Visit through proxy
 *
 * If you like this script please give us some link love Smiley
 *            paymentblogger.com
 *
 * ==============================================================================
 *
 * @version $Id: Clickbank Search Engine ,v 1 2007/06/19 17:00:32 $
 * @copyright Copyright (c) 2007 Payment Blogger (http://paymentblogger.com Visit through proxy)
 * @author Nick Papanotas <nikolas@webdigity.com>
 * @license http://opensource.org/licenses/gpl-license.php Visit through proxy GNU General Public License (GPL)
 *
 * ==============================================================================
 */

//Settings :
$uname = 'notrealname';//Username in your CBcontextual installation
$pass  = 'notrealpass';//Password in your CBcontextual installation
$instURL = 'http://www.askhow.com Visit through proxy';//The url path to your CBcontextual installation. No trail slash
$limit = 15;//How many results to display

echo htmlspecialchars('<form method="post" action="'.$_SERVER['PHP_SELF'].'" >
   <input type="text" name="q" value="'.$_POST['q'].'" /> <input type="submit" value="Search" />
</form>');

if ( !empty($_POST['q'])){
  $results = unserialize(file_get_contents($instURL.'/api.php?uname='.$uname.'&pass='.$pass.'&nr='.$limit.'&type=php&keywords='.$_POST['q']));
  if ( !$results )
     echo 'No results. Please search again.';
  else{
    foreach ( $results as $res )
       echo '<a href="'.$instURL.'/clk.php?i='.$res['id'].'">'.$res['title'].'</a><br />'.$res['description'].'<br />';
  }
}

?>
« Last Edit: Apr 21, 2008, 10:07:32 PM by askhow »
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #7 on: Apr 22, 2008, 12:39:33 AM »

Ok, I just wanted to show you that the clickbank contextual script is working, but I can't get the search engine, scroll down and you'll see the form mess up, thanks again for your help
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7822
39867 credits
Members referred : 3



« Reply #8 on: Apr 22, 2008, 01:29:59 PM »

Replace this:

echo htmlspecialchars('<form method="post" action="'.$_SERVER['PHP_SELF'].'" >
   <input type="text" name="q" value="'
.$_POST['q'].'" /> <input type="submit" value="Search" />
</form>'
);


with this:

echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'" >
   <input type="text" name="q" value="'
.$_POST['q'].'" /> <input type="submit" value="Search" />
</form>'
;

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #9 on: Apr 22, 2008, 02:01:29 PM »

Thanks, I get the search box now (at the bottom of the page) but each time I type in a search I get this error:

Warning: file_get_contents(http://www.askhow.com/api.php?uname=askhow&pass=lulub3&nr=15&type=php&keywords=how Visit through proxy to) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/askhow/public_html/index.php on line 53
No results. Please search again.

Here is what is on line 53 in my code:
$results = unserialize(file_get_contents($instURL.'/api.php?uname='.$uname.'&pass='.$pass.'&nr='.$limit.'&type=php&keywords='.$_POST['q']));

Thanks again for your time,

Lisa
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7822
39867 credits
Members referred : 3



« Reply #10 on: Apr 22, 2008, 02:29:39 PM »

Change the $instURL directive to where you have installed the CBCS (eg. $instURL = 'http://www.askhow.com/cb'; Visit through proxy)

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #11 on: Apr 22, 2008, 02:34:01 PM »

ok i did that and nothing changed, likely because it is installed not in a folder but at the public_html so there is no cb folder. once I typed in 'test' and got a bunch of random results but otherwise i have this error above,

thanks
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #12 on: Apr 22, 2008, 04:35:02 PM »

Here is something that may be helpful.  I set it back to the way is was, ie, w/o the cb at the end and here is the deal. It works if there are no spaces in the search so if i type in How_to_draw, it works but if i type in how to draw it doesn't. What can i do?

Assuming the string breaking with a space gets fixed, I'm perplexed by results. If you type in bike, then a good result come in. If  you type in how_to_ride_a_bike then it is whack. The best results seem to come from organic_gardening.

I'm really hoping this can work.

thanks,

Lisa
« Last Edit: Apr 22, 2008, 04:59:32 PM by askhow »
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7822
39867 credits
Members referred : 3



« Reply #13 on: Apr 23, 2008, 10:29:08 AM »

Ok, now change this line :

unserialize(file_get_contents($instURL.'/api.php?uname='.$uname.'&pass='.$pass.'&nr='.$limit.'&type=php&keywords='.$_POST['q']));

to this:

unserialize(file_get_contents($instURL.'/api.php?uname='.$uname.'&pass='.$pass.'&nr='.$limit.'&type=php&keywords='.urlencode($_POST['q'])));

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Chicken-run Manager
*
Posts: 9
58 credits
Members referred : 0


« Reply #14 on: Apr 23, 2008, 02:36:33 PM »

ok, it seems to be working, from a form stand point.. is there any way to get better results? ie, the how to ride a bike gets strange results but ride bike gets a real one?

thanks
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7822
39867 credits
Members referred : 3



« Reply #15 on: Apr 30, 2008, 08:38:19 AM »

I don't think this is possible at the moment. You should probably contact the owners of the script for this (I no longer own the clickbank contextual script)

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7703
Tags : clickbank search engine Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  WebDigity Community  >  HumanWorks network news & feedback  >  Clickbank Contextual Script Support
Topic: clickbank search engine help needed
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 12, 2008, 04:22:46 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 34.926
Total Topics: 7.262
Total Members: 3.478
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: kellimy

21 Guests, 2 Users online :

10 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.