PDA

View Full Version : Plugin question - Is it possible ?


cclaerhout
07-01-2006, 02:41 PM
I'm ready to release a new modification, but before doing it i'd to know if i can simply the installation.

To make a function work the class_bbcode.php must be edited manually. Here is the modification :

search (appears 4 times in the code):
eval('$html = "' . fetch_template($template) . '";');

and put above :

// BBcode Manager start
if ($vbulletin->options['quote_vba'] and !$GLOBALS['FIRSTPOSTID'])
{
if ($vbulletin->options['quote_vba_forums_all'] or in_array($GLOBALS[forumid], array($vbulletin->options['quote_vba_forums'])))
{
switch ($template)
{
case 'bbcode_quote':
$template = 'bbcode_quote_vba';
break;
case 'bbcode_code':
$template = 'bbcode_code_vba';
break;
case 'bbcode_php':
$template = 'bbcode_php_vba';
break;
case 'bbcode_html':
$template = 'bbcode_html_vba';
break;
}
}
}
// BBcode Manager end



Is there a way to automatically make this modification thanks to a plugin ? And if yes, how to do that ?