SpeedUp
Forum Replies Created
-
Forum: Plugins
In reply to: [Amazon Link] Template keywords aren't replacedHi,
thank’s for your ideas and help. I tried the changes in the regex, but unfortunately they didn’t help, too. It was still not working with the changes.
I was trying to inspect this issue for so long, but couldn’t get it to work. Because I was thinking the problem lies in the PHP version / server configuration I checked if I could switch to another PHP version.
I was lucky, via htaccess I could switch now from PHP Version 5.2.6-1+lenny16 to PHP Version 5.3.6 – and now I am glad – it works!!!
So whenenver you come across this weird problem again, I think it is some kind of bug in this special php version…
Thank’s for your time!
Forum: Plugins
In reply to: [Amazon Link] Template keywords aren't replacedHello,
I looked into the amazonSearch.php again.
I assume something is not working with the regex / php_replace_callback… In the callback function these lines:
$keyword = strtolower($args['keyword']); $keywords = $this->alink->get_keywords(); $settings = $this->settings;$keyword doesn’t contain anything because the key ‘keyword’ doesn’t exist (I tried to echo $args[‘keyword’]). If I make a print_r on $args I get an array like this:
Array ( [0] => %TAG% [1] => TAG ) Array ( [0] => %ASINS% [1] => ASINS ) Array ( [0] => %TEXT% [1] => TEXT ) Array ( [0] => %MPLACE% [1] => MPLACE ) Array ( [0] => %TLD% [1] => TLD ) Array ( [0] => %MPLACE% [1] => MPLACE )Template previews are also wrong:
http://i42.tinypic.com/9ie4j7.png
Template help shows up ok:
http://i39.tinypic.com/o7or4p.png
Cheers!
Forum: Plugins
In reply to: [Amazon Link] Template keywords aren't replacedHi Paul,
my php version is (excerpt from phpinfo()):
PHP Version 5.2.6-1+lenny16
I tried different versions of the Amazon Link Plugin. First I started out with the one from the repository (3.0.4). Because this one didn’t seem to work I downloaded the most recent version (3.1.0-rc3).
WordPress: 3.5.1 german version
I tried several hours to find out why this is happening, but wasn’t successful. Could you tell me in which file the replacement of the keywords is done?
I also tried several shortcodes, but no one worked:
[amazon template=iframe image&chan=default&asin=B008R9JVPG] [amazon asin=0893817449&text=Static Link] [amazon template=image&chan=default&asin=B008R9JVPG]