Still trying, but not getting anywhere. Would really appreciate any insight!
The error output (Which displays once at the head of the page for each call) is:
Parse error: syntax error, unexpected ’)’ in /assets/plugins/phx/phx.parser.class.inc.php(226) : eval()’d code on line 1
Parse error: syntax error, unexpected ’)’ in /assets/plugins/phx/phx.parser.class.inc.php(226) : eval()’d code on line 1
The snippet (phx:fileExists) is:
<?php
condition[] = intval(file_exists($output));
?>
The call is:
[+phx:if=`products/[*category_code*]/[*product_filename*]_im.pdf`:fileExists:then=`<img src="assets/images/adobelogo.gif" border="0" height="16" /> <a href="products/[*category_code*]/[*product_filename*]_im.pdf">Instruction Manual</a><br />`:else=`Contact Us for Manual<br />`+]
Currently, an example of a file this would check for is
http://www.comnet.net/products/Video/FVTFVR100MS1_im.pdf
Web Server:
* Network Solutions
* PHP version 5.2.6 running via CGI
* Linux vux21 2.6.33.2 Apache/2.2.8 (Unix) (includes FrontPage/5.0.2.2635, not used)
Database:
* MySQL version 5.0.75
* Tables over 1MB in size: fvt_manager_log
MODx:
* Version 1.0.2
* No changes made to the core code
* Custom phx:fileExists snippet
* PHx 2.1.3
Browser/Client:
* FireFox 3.6.3
* Mac OS X 10.5.8
I realize that bS hasn’t been around in 6 months, but I’m hoping someone else has some idea of what’s wrong. The modifier seems so simple I feel like I’m trying to troubleshoot a pushpin.