Forum Commenting
ManagerJosh 11
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Forum Commenting
ManagerJosh
OP
11
From: -
From: -
That vB news import script is great...except that after I import the news from an RSS feed or using the vB News Source, I wasn't able to comment on the respective thread or view it on CT.
1 Re: Forum Commenting
Philipp Esselbach
From: -
Editor
0From: -
This requires a few code modifications
1) Open cadmin/news/admindoaddnewsstory.php in an editor and replace
with:
and:
with:
2) Open classes/class_uwrapper_vb38.php in an editor and find:
This line will output the news link.
Additionally, uncomment/remove the following line:
This is needed to allow vBulletin parsing the news story over it's own bbcode parser.
A possibility better alternative to this modification is the vB news import script of the vBulletin Extensions.
1) Open cadmin/news/admindoaddnewsstory.php in an editor and replace
$threadid = $uwrapper -> addthread( $input_newsstory_title, $input_newsstory_description, $link, $input_forum, $loginname, $userid );
with:
$threadid = $uwrapper -> addthread( $input_newsstory_title, $input_newsstory_story."\n\n".$input_newsstory_extendedstory, $link, $input_forum, $loginname, $userid );
and:
$threadid = $uwrapper -> addthread( $input_newsstory_title, $input_newsstory_description, $link, $input_forum, $login_username, $userid );
with:
$threadid = $uwrapper -> addthread( $input_newsstory_title, $input_newsstory_story."\n\n".$input_newsstory_extendedstory, $link, $input_forum, $login_username, $userid );
2) Open classes/class_uwrapper_vb38.php in an editor and find:
$text_plain = stripslashes( $text ) . "\n\n" . stripslashes( $title ) . "";
This line will output the news link.
Additionally, uncomment/remove the following line:
$uwrapper -> bbquery( "INSERT INTO " . $uwrapper -> bbescape( $preferences[ 'website_uwrapper_prefix' ] ) . "postparsed (postid, dateline, styleid, languageid, hasimages, pagetext_html) VALUES ('" . $postid . "', '" . $date . "', '1', '1', '0', '" . $uwrapper -> bbescape( $text_html ) . "')" );
This is needed to allow vBulletin parsing the news story over it's own bbcode parser.
A possibility better alternative to this modification is the vB news import script of the vBulletin Extensions.
How do I instruct CT to display the entire contents of a news posts and format the News Link ?