PDA

View Full Version : Show entire post, not just preview, in 'show posts'


jksgvb
02-03-2007, 10:03 PM
Our business requires that we print a weekly report. I can use the search function to pull all posts over the last week, but the 'show posts' function only shows a preview of the post (about 35 words). How do I make it show the entire post?

Thanks.

Maybe if someone could point out approximately where I would look to try some things...

Regards,

Jay

jksgvb
02-07-2007, 03:14 PM
I figured out how to do this in case anybody else is interested. There's a section of code in search.php (in version 3.6.4) that limits the body of the displayed post to 200 characters. Find it here:

// get first 200 chars of page text
$post['pagetext'] = htmlspecialchars_uni(fetch_censored_text(trim(fetc h_trimmed_title(strip_bbcode($post['pagetext'], 1), 200))));

Change the 200 to some higher value that will display all of the body of the post. I chose 1000.