The encluded Plugin
link sorttable javascript in <head>-section on hook
global_complete does not work with vB4 and with vB4.0.1/2 it will even break vb-scripts like
vbulletin_multi_quote.js!
Code:
if(($vbulletin->options['stg_table_options']&64)&&in_array(THIS_SCRIPT, array('announcement','calendar','editpost', 'newreply','newthread','private','showpost','showthread','usernote'))){
$output = str_replace('</head>',"\t".'<style type="text/css">'."\n\t\tspan.sortarrow {position:absolute;}\n\t\tspan.sortarrow img {border:0;}\n\t\ta.sortheader {text-decoration:none; display:block; width:100%;}\n\t</style>\n\t".'<script type="text/javascript">'."\n\t\t".'var IMGDIR_BUTTON = "'.$stylevar['imgdir_button'].'";'."\n\t".'</script>'."\n\t".'<script type="text/javascript" src="clientscript/sorttable.js"></script>'."\n".'</head>',$output);
}
The red part sets IMGDIR_BUTTON to "" since $stylevar['imgdir_button'] cannot be referenced this way any more. Effect: Eg Multiquote cannot be used any more since
vbulletin_multi_quote.js uses it to reference the multiquote-buttons.
Solution: Disable this PlugIn, since the sorting does not work any more in vB4.0.2. I tried to hardencode stylevar['imgdir_button']:
Code:
if(($vbulletin->options['stg_table_options']&64)&&in_array(THIS_SCRIPT, array('announcement','calendar','editpost', 'newreply','newthread','private','showpost','showthread','usernote'))){
$output = str_replace('</head>',"\t".'<style type="text/css">'."\n\t\tspan.sortarrow {position:absolute;}\n\t\tspan.sortarrow img {border:0;}\n\t\ta.sortheader {text-decoration:none; display:block; width:100%;}\n\t</style>\n\t".'<script type="text/javascript">'."\n\t\t".'var IMGDIR_BUTTON = "images/buttons";'."\n\t".'</script>'."\n\t".'<script type="text/javascript" src="clientscript/sorttable.js"></script>'."\n".'</head>',$output);
}
but this helps only for the Multiquote, not for sorting...
German Thread about this Bug:
'Beitrag zum Zitieren ausw?hlen' defekt.
Greetings, Bruno
(Again: The Addon works fine with vB4, but the sorting plugin has to be disabled!)