This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Forum Commenting


avatar
ManagerJosh 11
From: -
Forum Commenting

How do I instruct CT to display the entire contents of a news posts and format the News Link ?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Forum Commenting
avatar
OP 11
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
avatar
Editor
0
From: -
This requires a few code modifications

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.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.