<?php $dr_global["path"] = " assets/images/ "; $dr_local["header"]["all"] = ' <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/frameworks/jquery.js"></script> <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/thickbox/thickbox-compressed.js"></script> <link rel="stylesheet" href="'.DIRECTRESIZE_PATH.'libs/thickbox/thickbox.css" type="text/css" media="screen" /> <script type="text/javascript"> var tb_pathToImage = "'.DIRECTRESIZE_PATH.'libs/thickbox/loadingAnimation.gif"; </script> '; $dr_local["tpl_thumb"]["all"] = <<<HTML [+dr.shortcut.source2thumb+] HTML; $dr_local["tpl_lightbox"]["all"] = <<<HTML <a href="[+dr.big.src+]" title="[+dr.source.title+]" class="thickbox"> [+dr.shortcut.tpl_thumb+] </a> HTML; // Custom Configuration $dr_local["bind_config_to_css_selector"] = "img.imgcaption"; $dr_global["bindings_priority"] = "css"; ?>
$dr_local["bind_config_to_css_selector"]["teamMember"] = "img.teamMember"; $dr_local["thumb_resize_method"]["teamMember"] = 0; $dr_local["thumb_use_defaults"]["teamMember"] = 1; $dr_local["thumb_width"]["teamMember"] = 100; $dr_local["thumb_height"]["teamMember"] = 100; $dr_local["thumbonly"]["teamMember"] = true; $dr_local["tpl_thumb"]["teamMember"] = "[+dr.shortcut.source2thumb+]"; $dr_local["tpl_thumb"]["teamMember"] = <<<HTML <img src="[+dr.thumb.src+]" alt="[+dr.source.alt+]" title="[+dr.source.alt+]" /> HTML;
<?php $dr_global["path"] = " assets/images/ "; $dr_local["bind_config_to_css_selector"][ "caption"] = "img.imgcaption"; $dr_local["header"]["caption"] = ' <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/frameworks/jquery.js"></script> <script type="text/javascript" src="'.DIRECTRESIZE_PATH.'libs/thickbox/thickbox-compressed.js"></script> <link rel="stylesheet" href="'.DIRECTRESIZE_PATH.'libs/thickbox/thickbox.css" type="text/css" media="screen" /> <script type="text/javascript"> var tb_pathToImage = "'.DIRECTRESIZE_PATH.'libs/thickbox/loadingAnimation.gif"; </script> '; $dr_local["tpl_thumb"]["caption"] = <<<HTML [+dr.shortcut.source2thumb+] HTML; $dr_local["tpl_lightbox"]["caption"] = <<<HTML <a href="[+dr.big.src+]" title="[+dr.source.title+]" class="thickbox"> [+dr.shortcut.tpl_thumb+] </a> HTML; ?>

images/f9dcbf718322ab0dd5b9751064a52c05/thumb_forside-57x57.jpg
<?php $tpl = <<<HTML <li> <a href="/[+dr.bigPath+]" rel="prettyPhoto[id]"> <img src="/[+dr.thumbPath+]" width="[+dr.thumbWidth+]" height="[+dr.thumbHeight+]" alt="[+dr.title+]" title="[+dr.title+]"/></a></li> HTML; $lightbox_mode = 2; $allow_from="assets/images"; $resize_method = 0; ?>
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Function eregi_replace() is deprecated
Error type/ Nr.: - 8192
File: C:\wamp\www\assets\plugins\directresize\directResize.php
Line: 459
Line 459 source: $currentImgPath = eregi_replace("^.+src=('|\")","",$imgs[0][$n]);<img src="assets/images/covers/1991-charly/xls21cd Charly (CD).jpg" alt="cd" width="128" height="128" />
Thank you! It’s strange, I haven’t assests/snippets/phpthumb folder.
Looks like you’re using PHP 5.3, which introduces several new deprecations. There are a bunch of places in phpthumb that need to be updated with non-deprecated functions (in this case all the ereg* ones need to be replaced by preg* counterparts).
I just went through this myself, thankfully quentinwolf on the phpthumb forums had already gone to the trouble to make the replacements. See this link for the info and download (I believe you’ll need to register with the forum first):
http://support.silisoftware.com/phpBB3/viewtopic.php?f=4&t=142&p=617#p611
I’m attaching the zip of the modified files here too, for convenience. It’s suggested to make a backup of the assets/snippets/phpthumb directory and then replace the relevant files with those in the zip. There is an ereg in the phpThumb.config.php file, so be sure to copy the fix into your own config.
Hope this all makes sense and helps!