Version: 1.0.2, by Chris M
Developer Last Online: Feb 2013
Version: 3.5.0
Rating:
Released: 06-14-2005
Last Update: 10-21-2005
Installs: 316
Uses Plugins
No support by the author.
[high]Installation Instructions[/high]
Step 1: Upload the .xml file to the Product Manager Step 2: Alter the plugin code variables to reflect your signature image limits in height and width Step 2: Click [high]INSTALL[/high]
[high]Credits[/high] Zero Tolerance - For helping with the regex and troubleshooting my annoying problems
[high]Updates[/high] 1.0.1 - Nothing major, just removed some code that is not needed
To remove this without re-uploading the plugin, find in your plugin code:
PHP Code:
print_r($imginfo);
and remove it - I put this in there for testing purposes and forgot to remove it
1.0.2 - This is just a bug fix update
Find in the plugin code:
PHP Code:
$this->registry->options['allowdynimg']
replace with:
PHP Code:
$vbulletin->options['allowdynimg']
As always, no need to upload the new plugin if you apply the fix directly to your plugin code
Exactly where do you add an "Error Message" phrase? I've looked in the phrases manager and can't find any category for Error Messages to add the phrase into.
There should be a phrasegroup called "Error Messages" beneath or above (I forget) the "Front-end Redirect" phrasegroup...
If you upgraded from 3.0.x you may have it named as "Front-end Error Messages" as the upgrade didn't (not sure about the Beta 3 one ) update the phrasegroup name
Would it be possible to place the error in to vBulletin's $errors[] array in profile.php instead of printing the error in a separate standard_error page? I guess I'm a perfectionist, but I used to have it this way with 3.0.7 and I'm still struggling with the plugin system myself..
Would it be possible to place the error in to vBulletin's $errors[] array in profile.php instead of printing the error in a separate standard_error page? I guess I'm a perfectionist, but I used to have it this way with 3.0.7 and I'm still struggling with the plugin system myself..
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):
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:
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):
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: