Modificatie & Versie: Prime Links: 1.2.8
Directe link naar de modificatie: zie bovenin dit topic
Adres van je forum:
http://www.t3-forum.nl/php3/phpBB3/index.php
phpBB versie: 3.0.8
Heb je onlangs een andere modificatie of stijl geïnstalleerd? Nee!
Wat is het probleem?
Hallo mensen,
Ik ben ook al een tijdje bezig met het installeren van deze MOD maar bij mij gaat het al meteen helemaal fout. Als ik de functions_content.php bijwerk zoals beschreven krijg ik "
Fatal error: Call to a member function assign_var() on a non-object in /home/t3forum/domains/t3-forum.nl/public_html/php3/phpBB3/includes/prime_links.php on line 83" op het scherm in plaats van het forum. De code ziet er dan als volgt uit:
Code: Selecteer alles
{
// custom BBCodes might contain carriage returns so they
// are not converted into <br /> so now revert that
$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
return $text;
}
//-- mod: Prime Links -------------------------------------------------------//
if (!function_exists('prime_links'))
{
global $phpEx;
include($phpbb_root_path . 'includes/prime_links.' . $phpEx);
}
$text = prime_links($text);
//-- end: Prime Links -------------------------------------------------------//
/**
* Smiley processing
*/
function smiley_text($text, $force_option = false)
{
global $config, $user, $phpbb_root_path;
if ($force_option || !$config['allow_smilies'] || !$user->optionget('viewsmilies'))
{
return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#', '\1', $text);
}
else
{
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_root_path;
return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/(.*?) \/><!\-\- s\1 \-\->#', '<img src="' . $root_path . $config['smilies_path'] . '/\2 />', $text);
}
}
Iemand een idee om me op weg te helpen?