# DirectResize Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^images/([a-z0-9]{32})/.*\.(png|gif|jpe{0,1}g)$ assets/plugins/directresize/furl.php?q=$1 [NC,L,QSA]
Quote from: FuryDE at Jan 27, 2010, 04:06 AM
Are the thumbnaisl not visible, either?
Do you have a writeable folder [tt]/assets/drgalleries[/tt]? Did you upload the [tt]image.php[/tt] to your MODX root directory?
Yes, I uploaded it. phpThumb create thumbnails and they are in assets/snippets/phpthumb/cache folder, but they are not visible and enlarge images too.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="modx directResize" stopProcessing="true">
<match url="^images/([a-z0-9]{32})/.*\.(png|gif|jpe{0,1}g)$" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="assets/plugins/directresize/furl.php?q={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration><a href="images/1d921c9a8ca267852a5261c800362d15/xycqp_avo_aytful19.jpg" title="" class="thickbox"> <img src="images/76e0dd057a270aaeedc581b72e7cea46/thumb_xycqp_avo_aytful19.jpg" width="100" style="float:left;">

$PHPTHUMB_CONFIG['allow_local_http_src'] = true; // If true, 'src' parameter can be "http://<thishostname>/path/image.ext" instead of just "/path/image.ext"; if false then display warning message to encourage more efficient local-filename calling.
// END USER CONFIGURATION SECTION
// append full http url to relative source-path:
// workaround for problems with UNC paths!
if (isset($_GET['src'])){
if (substr($_GET['src'],0,14) == 'assets/images/'){
$_GET['src'] = 'http://'.$_SERVER['HTTP_HOST'].'/'.$_GET['src'];
}
}$html = new simple_html_dom(); $html->load($content);
$html = new simple_html_dom(); $html->load($content, false);