Pooka
03-12-2006, 08:42 AM
Here's a tenative answer. In file defaultvb.theme find this line
function defaultvb_node($node, $main = 0, $page = 0) {
global $user;
Replace with
function defaultvb_node($node, $main = 0, $page = 0) {
global $user, $vb_dir, $vbulletin;
Find this
if ($main && $node->teaser) {
$ncontent = $node->teaser;
}
else {
$ncontent = $node->body;
}
Add immediately after add
//Parse it
require_once("$vb_dir/includes/class_bbcode.php");
$vbparser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$ncontent = $vbparser->do_parse($ncontent, 1, 0, 1, 1);
Still working on getting the standard vbulletin editor and wysiwyg editor up. I also would like to know if it is possible to prevent drupal from adding line breaks to code. BTW, if you want smilies in your news posts change the 0 in the last line above to 1.
function defaultvb_node($node, $main = 0, $page = 0) {
global $user;
Replace with
function defaultvb_node($node, $main = 0, $page = 0) {
global $user, $vb_dir, $vbulletin;
Find this
if ($main && $node->teaser) {
$ncontent = $node->teaser;
}
else {
$ncontent = $node->body;
}
Add immediately after add
//Parse it
require_once("$vb_dir/includes/class_bbcode.php");
$vbparser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$ncontent = $vbparser->do_parse($ncontent, 1, 0, 1, 1);
Still working on getting the standard vbulletin editor and wysiwyg editor up. I also would like to know if it is possible to prevent drupal from adding line breaks to code. BTW, if you want smilies in your news posts change the 0 in the last line above to 1.