I am having some problems with this mod.
Like SonjaST, I too replaced displayimage.php with standard_mounts.php to "preview this mod," but no PayPal buttons showed up when I hit enter.
So I decided to go ahead and install the mod. I am using a copy of the Classic theme. When I copied and pasted the following below the if define('THEME_IS_XHTML10_TRANSITIONAL',1); line, I added the following just like in the instructions:
function replace_forbidden2($str)
{
static $forbidden_chars;
if (!is_array($forbidden_chars)) {
global $CONFIG, $mb_utf8_regex;
if (function_exists('html_entity_decode')) {
$chars = html_entity_decode($CONFIG['forbiden_fname_char'], ENT_QUOTES, 'UTF-8');
} else {
$chars = str_replace(array('&', '"', '<', '>', ' ', '''), array('&', '"', '<', '>', ' ', "'"), $CONFIG['forbiden_fname_char']);
}
preg_match_all("#$mb_utf8_regex".'|[\x00-\x7F]#', $chars, $forbidden_chars);
}
/**
* $str may also come from $_POST, in this case, all &, ", etc will get replaced with entities.
* Replace them back to normal chars so that the str_replace below can work.
*/
$str = str_replace(array('&', '"', '<', '>',' ','''), array('&', '"', '<', '>', ' ', "'"), $str);;
return str_replace($forbidden_chars[0], ' ', $str);
}
$album2 = $HTTP_GET_VARS['album'];
$pos2 = (int)$HTTP_GET_VARS['pos'];
$cat2 = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
After doing this, I get a blank page when I try to access my gallery. Do I need to put something at the end that is not shown in the instructions?
To sort of get the mod to work (by that I mean to at least get my gallery to show), I left the above code out but pasted the code for:
To install this mod as buttons under the intermediate image:
After doing this, the buttons show up (Standard Mounts, Custom Mounts, Continue Browsing), but when I click on any of them, I get the message, "The selected album/file does not exist !"
Any ideas?
Thanks!