This is special integration case only for vaultwiki. This is needed only because vaultwiki is not compatible to vBulletin in area of BBCodes and changes the API adding new parameter to BBCode parser functions. This is why normal integration with parsers for vBulletin is not working and gives warnings:
To solve the issue you have to do few simple steps. You will have to repeat it after each vBET update.Warning: Missing argument 2 for vB_WikiCodeParser::handle_bbcode_code(), called in /includes/vbenterprisetranslator_functions_bbcode.php on line 25 and defined in /vault/class/bbcode.php on line 1488
Warning: Missing argument 2 for vB_WikiCodeParser::handle_bbcode_html(), called in /includes/vbenterprisetranslator_functions_bbcode.php on line 28 and defined in /vault/class/bbcode.php on line 1506
Warning: Missing argument 2 for vB_WikiCodeParser::handle_bbcode_php(), called in /includes/vbenterprisetranslator_functions_bbcode.php on line 22 and defined in /vault/class/bbcode.php on line 1470
Integration steps:
1. Open /includes/vbenterprisetranslator_functions_bbcode.php
2. Find:
3. Add AFTER:PHP Code:function vbet_handle_bbcode_php(&$parser, &$value) {
4. Find:PHP Code:if($parser instanceof vB_WikiCodeParser) {
return '<!--vBET_SNTA-->' . $parser->handle_bbcode_php(0, $value) .'<!--vBET_ENTA-->';
}
5. Add AFTER:PHP Code:function vbet_handle_bbcode_code(&$parser, &$value) {
6. Find:PHP Code:if($parser instanceof vB_WikiCodeParser) {
return '<!--vBET_SNTA-->' . $parser->handle_bbcode_code(0,$value) .'<!--vBET_ENTA-->';
}
7. Add AFTER:PHP Code:function vbet_handle_bbcode_html(&$parser, &$value) {
Next steps are OPTIONAL - use it only if you are using virtual directory which is redirected by .htaccess to showwiki_proxy.php file and only when you are using vBET SEO links:PHP Code:if($parser instanceof vB_WikiCodeParser) {
return '<!--vBET_SNTA-->' . $parser->handle_bbcode_html(0,$value) .'<!--vBET_ENTA-->';
}
1. Open file showwiki_proxy.php
2. Find:
3. Add AFTER:PHP Code:define('VAULT_FRIENDLY_ENTRY', 1);
4. Open .htaccess filePHP Code:if ($_REQUEST['language']) {
$_SERVER['REQUEST_URI'] = str_replace('/'.$_REQUEST['language'].'/', '/', $_SERVER['REQUEST_URI']);
}
5. BEFORE wiki rules add this rule:
6. Change in the rule YOUR_WIKI_DIRECTORY to your virtual wiki directory (in booth places)Code:RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/YOUR_WIKI_DIRECTORY(.*)?$ YOUR_WIKI_DIRECTORY$2?language=$1 [QSA]


Reply With Quote
