Digital Jedi
07-27-2007, 02:43 PM
https://vborg.vbsupport.ru/showthread.php?t=72980
This gets asked periodically, but so far, I don't think anyone has attempted it yet. Can anyone make this work for vB 3.6? I know my attempts have failed, but my knowledge is limited.
The problem, I believe, stems from the fact this code...
if (!empty($bbuserinfo['fieldX']))
{
require_once('./includes/functions_bbcodeparse.php');
$mylinks = parse_bbcode2($bbuserinfo['fieldX'], 0, 0, 0, 1);
$mylinks = str_replace('<br />', '', $mylinks);
$mylinks = str_replace('</a>', '</a></td></tr>', $mylinks);
$mylinks = str_replace('<a', '<tr><td class="vbmenu_option"><a', $mylinks);
}
... was to be placed in the include_start template. But now that is handled by the global_start hook.
I tried putting this in global_start, but I don't really know what I'm doing. We've been using the old code on 3.0 for years now, and I know it will be missed if I can't make it work on the upgrade. If anyone can address this and it would be greatly appreciated.
This gets asked periodically, but so far, I don't think anyone has attempted it yet. Can anyone make this work for vB 3.6? I know my attempts have failed, but my knowledge is limited.
The problem, I believe, stems from the fact this code...
if (!empty($bbuserinfo['fieldX']))
{
require_once('./includes/functions_bbcodeparse.php');
$mylinks = parse_bbcode2($bbuserinfo['fieldX'], 0, 0, 0, 1);
$mylinks = str_replace('<br />', '', $mylinks);
$mylinks = str_replace('</a>', '</a></td></tr>', $mylinks);
$mylinks = str_replace('<a', '<tr><td class="vbmenu_option"><a', $mylinks);
}
... was to be placed in the include_start template. But now that is handled by the global_start hook.
I tried putting this in global_start, but I don't really know what I'm doing. We've been using the old code on 3.0 for years now, and I know it will be missed if I can't make it work on the upgrade. If anyone can address this and it would be greatly appreciated.