Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] jgh_amazon
Thanks spiller! works now… well actually it breaks my page, but that’s a style sheet issue, it definately posts the content. Guess the documentation should be changed eh?
Offline
#17 2004-07-18 13:42:14
- Rufnex
- Archived Plugin Author
- From: Germany, Munich (Bavaria)
- Registered: 2004-06-23
- Posts: 51
Re: [archived] jgh_amazon
Ups … i’ve updated my plug-in. now you can call it like described with txp:jgh_amazon. delete the old jgh_amazon from you plug-in list an install the new one (look at the link at page top).
i changed it because i have to name plug-ins with a three letter prefix.
sorry about that ;o)
Offline
Re: [archived] jgh_amazon
do you call the custom layout with jgh_amazon also? Your instructions have it as still jg_amazon.
Offline
#19 2004-07-18 18:11:51
- Rufnex
- Archived Plugin Author
- From: Germany, Munich (Bavaria)
- Registered: 2004-06-23
- Posts: 51
Re: [archived] jgh_amazon
@bleveck:
uahhh .. not my day ;o) oki .. standard and custom layout both called with txp:jgh_amazon. New Version is online ;o)
Offline
Re: [archived] jgh_amazon
i know it’s an old thread, but any chance of a new version that i can use TXP tags in? like <txp:jgh_amazon asin="<txp:title />" /> ?
and, for some reason, i always get errors when i try to use a custom layout. so i just hacked the plugin…but i’d rather not have to.
Listen to Kenneth
Offline
Re: [archived] jgh_amazon
Should be doable threw adding in the plugin
<code>
parse($asinattribute);
</code>
Havent checked the actual code but I think you get the idea. Ofcourse, would be nice to have it as a working feature in the plugin, but that is not always the option.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [archived] jgh_amazon
i’ll give that a go and let you know, obeewan. thanks for the advice.
Listen to Kenneth
Offline
Re: [archived] jgh_amazon
no luck, but maybe i just didn’t put it in the right place or use the right variable.
if you have time/feel like it, see if you see anything. thanks.
Listen to Kenneth
Offline
Re: [archived] jgh_amazon
Try this in the plugincode:
after:
<code>$azid = (!empty($azid)) ? $azid : “jgwebdes”;</code>
add:
<code>$asin = (!empty($asin) ? parse($asin) : ‘’;</code>
Since I see no meaning to personally use the plugin I have not installed the table etc to check it out, this was just something I thought up by reading the code. Hopefully it does the job you want it to do.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [archived] jgh_amazon
still no luck. thanks for your help, though. it works if i include it in a post instead of as a form with a post supplying the numbers. guess this’ll have to do. thanks, again.
Listen to Kenneth
Offline
Re: [archived] jgh_amazon
I accomplished the same using another plugin called txp:run, look it up and heres a bit of code:
<code> <txp:run level=“pre,main”><txp:jcv_amazon searchType=“ASIN” searchString=”<txppre:rei_show_custom />” form=“read_amazon” limit=“1” cacheTime=“60” cacheDir=”/tmp” associateId=“station11-20” /></txp:run> </code>
It won’t matter that I used jcv_amazon, the run level skims through the block and it resolves all variables with pre then loops to the beginning and resolves all variables prefixed with main and then it finishes – so good luck.
Last edited by misterk (2004-09-03 00:56:19)
Offline
Re: [archived] jgh_amazon
hey! i didn’t even think of using the runlevel. thanks for the slap in the forehead!
Listen to Kenneth
Offline
Re: [archived] jgh_amazon
I’m completely stumped! Can someone help? I’ve run the install and verified that the table is there. The jgh_amazon plugin is installed and active. The soap and nusoap files are in my textpattern/lib directory. I’ve used the following tag in my template form:
< txp:jgh_amazon asin=“0812551494” / >
And I get nothing. As in, the page isn’t parsed. It’s a blank white page. As soon as I removed the above tag, everything’s fine again.
Any ideas?
Last edited by Jennifer (2004-10-13 00:18:13)
Offline
Re: [archived] jgh_amazon
I have the same error too. My website is hosted on textpattern if that helps anyone.
Offline
Re: [archived] jgh_amazon
I am getting lots of errors of the following type:
<code>Notice: Undefined variable: autor in /Users/username/Sites/path/textpattern/publish.php(764) : eval()’d code on line 247
Notice: Use of undefined constant asin – assumed ‘asin’ in /Users/username/Sites/path/textpattern/publish.php(764) : eval()’d code on line 266</code> etc.
The plugin <code><txp:jgh_amazon asin=”######” /></code> seems to work and retrieve data from amazon. I have placed the txp:jgh_amazon tag on the default page.
Any help in getting rid of the errors would be appreciated …
Last edited by nishark (2004-10-31 08:29:17)
Offline