Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can't get it to work
05-01-2008, 06:02 AM
Post: #1
can't get it to work
Hi,

I installed wpauctions on my blog (the page is http://blog.gettingrichthecertainway.net/store/ebay ) and as you can see there, the test with the php "hello world" runs, but not wpauctions.
I think I set my id correctly, as my ebay editor kit seems to work fine. the page code reeds something like this:

This is test for an ebay store on all items related to the law of attraction.

<script language='JavaScript1.1'>
document.write("<a href='http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=3&campid=5335889257&toolid=10001&customid=test1&ext=law+of+attraction&satitle=law+of+attraction' target='_blank'>click here<img style='text-decoration:none; border: 0; padding: 0; margin: 0;' src='http://rover.ebay.com/ar/1/711-53200-19255-0/1?mpt=" + Math.floor(Math.random()*999999999999) + "&adtype=1&size=1x1&type=3&campid=5335889257&toolid=10001&customid=test1&ext=law+of+attraction&satitle=law+of+attraction'></a>");
</script>
<noscript>
<a href='http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=3&campid=5335889257&toolid=10001&customid=test1&ext=law+of+attraction&satitle=law+of+attraction&adtype=3' target='_blank'>click here<img style='text-decoration:none; border: 0; padding: 0; margin: 0;' src='http://rover.ebay.com/ar/1/711-53200-19255-0/1?mpt=[CacheBuster]&adtype=1&size=1x1&type=3&campid=5335889257&toolid=10001&customid=test1&ext=law+of+attraction&satitle=law+of+attraction'></a>
</noscript>
<?php echo "This is the Exec-PHP 'Hello World'"; ?>


<?php
$epn_campaign_id = "5335888811"; // EPN campaign id
$customid = "test"; // EPN custom id (optional)
$keyword = "law of attraction"; // put your keyword here
$display = "15"; // how many items to display
$country = "us"; // see country_codes.txt for info
include "twpauctions.php";
?>


<br><br>
this is some inserted text
<br><br>
<script language="JavaScript" src="http://lapi.ebay.com/ws/eBayISAPI.dll?EKServer&ai=o%7D%25%7D&bdrcolor=FFCC00&bin=y&cid=0&eksize=1&encode=UTF-8&endcolor=FF0000&endtime=y&fbgcolor=FFFFFF&fntcolor=000000&fs=0&hdrcolor=FFFFCC&hdrimage=1&hdrsrch=y&img=y&lnkcolor=0000FF&logo=3&num=25&numbid=y&paypal=n&popup=y&prvd=9&query=law+of+attraction&r0=3&shipcost=y&sid=loa&siteid=0&sort=MetaNewSort&sortby=endtime&sortdir=desc&srchdesc=y&tbgcolor=FFFFFF&tlecolor=FFCE63&tlefs=0&tlfcolor=000000&toolid=10004&track=5335889257&width=570"></script>


Do you have any suggestions?

Kind regards,

Olivier.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-01-2008, 12:31 PM
Post: #2
RE: can't get it to work
You need to make sure that the TWP Auctions files are in the same directory as the page that's trying to include it.

If you've got a separate directory called 'store' then try putting the TWP Auctions files there.

eBay affiliates! Find out what people are buying from your ePN eBay affiliate links - myEPNreport.com
------
Make money uploading files!
Visit this user's website Find all posts by this user
Quote this message in a reply
05-01-2008, 04:22 PM
Post: #3
RE: can't get it to work
Hi,

thanks for replying, but "store" is a Wp page and "ebay" is a sub-page of "store". I do not think that they are real directories.
I tried setting the absolute path, and then he complains : Warning: include(/blog.gettingrichthecertainway.net/twpauctions.php) [function.include]: failed to open stream: No such file or directory in ....

So I reset it and he does not complain, so I guess he find the file. The result however is unchanged, he does not want to display the auctions.

Regards,

Olivier.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-01-2008, 05:35 PM
Post: #4
RE: can't get it to work
I think the script is getting confused as to where to find lastRSS.php.

Try this:

Open up twpauctions.php in a text editor (e.g notepad), and change this line:

Quote:include_once './lastRSS.php';

to

Quote:include_once 'http://blog.gettingrichthecertainway.net/lastRSS.php';

eBay affiliates! Find out what people are buying from your ePN eBay affiliate links - myEPNreport.com
------
Make money uploading files!
Visit this user's website Find all posts by this user
Quote this message in a reply
05-02-2008, 05:39 AM
Post: #5
RE: can't get it to work
Hi,

my server does not allow this, but that does not seem to be the problem as when he does not find the script, he does complain (I changed the filename in the code).

Then I did something else: I removed your condition on the display of your link and I added the same peace of code outside of the loop if ($rs = $rss->get($url)) { }
The link inside the loop does not display, the one outside does. I manually checked the query that is send to the ebay site in my browser and it does return an xml that is non empty.

Thanks again for your time.

Olivier.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-29-2008, 04:44 AM
Post: #6
RE: can't get it to work
Hi,
I have the same problem here
i can put php code in my post as you can see ( the 'hello world' is in php)
but the script doesn't work.
please if you can take a look it will be great.
hxxp://my-golf-tournament-gifts.com/testing-page/test-php/
(change the xx to tt at the beginning)

Also , i see you made a beta version for the next release...
can i get a link and help you test it (assuming it will work...)?

Again thanks for your help
Find all posts by this user
Quote this message in a reply
05-30-2008, 01:25 AM
Post: #7
RE: can't get it to work
Hi, I actually found out why it did not work at my site:
My site is hosted at dreamhost and they restrict the use of the fopen command in php. So all commands using it are also affected (like rss_reader and so on).
The trick is to go via curl. I have been writing my own script, and this page: http://wiki.dreamhost.com/CURL_PHP_tutorial contains all the info needed. I fear that more and more hosts will switch to this.
If you need testing, I can also do it at dreamhost.

Olivier.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-26-2008, 07:45 AM
Post: #8
RE: can't get it to work
ol4lo Wrote:Hi, I actually found out why it did not work at my site:
My site is hosted at dreamhost and they restrict the use of the fopen command in php. So all commands using it are also affected (like rss_reader and so on).
The trick is to go via curl. I have been writing my own script, and this page: http://wiki.dreamhost.com/CURL_PHP_tutorial contains all the info needed. I fear that more and more hosts will switch to this.
If you need testing, I can also do it at dreamhost.

Olivier.

Hello,
I'm wondering if you would be willing to share your modified twpauctions.php and lastRSS.php code of where/what changes you made for this to work? I'm not really an expert in php, but would be able to take a look and see where/what changes you did make in order for this to work. I also have Dreamhost and am just pulling my hair out trying to get this going.

Thanks!
Find all posts by this user
Quote this message in a reply
08-26-2008, 10:35 AM
Post: #9
RE: can't get it to work
@ slurpee7 - try the beta of Version 3.
http://forum.thewebsiteprofessionals.com...php?tid=45
Smile

eBay affiliates! Find out what people are buying from your ePN eBay affiliate links - myEPNreport.com
------
Make money uploading files!
Visit this user's website Find all posts by this user
Quote this message in a reply
08-26-2008, 04:00 PM
Post: #10
RE: can't get it to work
Thank you for replying.
I tried v3.0 beta but I get the following error:

Fatal error: Call to undefined function: simplexml_load_file() in /home/[domain]/wp/twpauctions.php on line 13

Any ideas?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: