
07-10-2005, 05:40 PM
|
 |
|
|
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Oblivion Knight
Unfortunately it didn't work, and was pretty close to what I'd tried already..
This is the function fetch_error (in includes/functions.php):
Code:
// #############################################################################
/**
* Fetches an error phrase from the database and inserts values for its embedded variables
*
* @param string Varname of error phrase
* @param mixed Value of 1st variable
* @param mixed Value of 2nd variable
* @param mixed Value of Nth variable
*
* @return string The parsed phrase text
*/
function fetch_error()
{
$args = func_get_args();
// Allow an array of phrase and variables to be passed in as arg0 (for some internal functions)
if (is_array($args[0]))
{
$args = $args[0];
}
if (!function_exists('fetch_phrase'))
{
require_once(DIR . '/includes/functions_misc.php');
}
$args[0] = fetch_phrase($args[0], PHRASETYPEID_ERROR, '', false);
if (sizeof($args) > 1)
{
return call_user_func_array('construct_phrase', $args);
}
else
{
return $args[0];
}
}
This is the function of the array, $errors (in profile.php):
Code:
if (is_array($errors))
{
$errorlist = '';
foreach ($errors AS $key => $errormessage)
{
eval('$errorlist .= "' . fetch_template('newpost_errormessage') . '";');
}
$show['errors'] = true;
}
I could easily do it editing the source file, but I'd like to try and get my head around this darned Plugin system with hooks.. Hopefully I'm not the only one struggling with it? :nervous:
|
Yes with the source code it should be easy to modify, and in theory it should work with the plugin :ermm:
Satan
|