I went back to the original script and I had to use the bare bones snippet so I could get the script to work. It only works using [!RandonAd!]
Can it work with friendly URL’s ?
I tried to using...
[!RandomAd? &folder=’assets/images/software’!]
[!RandomAd? &folder=’/assets/images/software’!]
and even [!RandomAd? &folder=’assets/images/random’!]
Nothing worked except [!RandonAd!]. Could this be a problems because of using friendly URL’s?
Here is the error I get when I try anything but [!RandonAd!] :
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: opendir(’assets/images/random’): failed to open dir: No such file or directory
Error type/ Nr.: Warning - 2
File: /..../manager/includes/document.parser.class.inc.php(705) : eval()’d code
Line: 30
Parser timing
MySQL: 0.0019 s s (3 Requests)
PHP: 0.0503 s s
Total: 0.0522 s s
How can I get it to work with friendly URL’s?
Regards,
Ken