dapaintballer333 wrote: fine lets call it v.0.1.0 if it lets you sleep at night
and to answer the useful reply, yes, if you convert the forum recipes become normal posts.
Code: Select all
#
#-----[ OPEN ]----------------------------------------------
#
viewforum.php
#
#-----[ FIND ]----------------------------------------------
#
$template->assign_block_vars('switch_no_topics', array() );
#
#-----[ IN-LINE FIND ]--------------------------------------
#
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
#
#-----[ FIND ]-------
Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/folder/public_html/forums/posting.php on line 605
Code: Select all
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length, addslashes(htmlspecialchars_decode($_POST['title'])));
Code: Select all
addslashes(htmlspecialchars_decode($_POST['title']))
Code: Select all
if (!function_exists('htmlspecialchars_decode'))
{
/**
* A wrapper for htmlspecialchars_decode
* @ignore
*/
function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT)
{
return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
}
}
eviL<3 wrote: Here's what you can add to functions.php if you want to use htmlspecialchars_decode() anyway (this is from phpBB3):Code: Select all
if (!function_exists('htmlspecialchars_decode')) { /** * A wrapper for htmlspecialchars_decode * @ignore */ function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) { return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style))); } }
Code: Select all
geoffers@gmail
14-Jul-2005 03:38
[Update of previous note, having noticed I forgot to put in quote style]
PHP4 Compatible function:
<?php
function htmlspecialchars_decode_php4 ($str, $quote_style = ENT_COMPAT) {
return strtr($str, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
}
?>
cavallino wrote: Well,
let's hope dapaintballer333 when he has time, will take the suggestions here and update the mod accordingly![]()