View Full Version : show new POSTS (not threads like search.php?do=getnew)
mahakala
11-13-2008, 03:04 PM
hi,
is there a way or an addon the show -instead as search.php?do=getnew the treads- the latest posts as fulltext.
for mods and admins this would be a nice way to view faster whats going on.
hope, anybody can help :)
regards,
thomas
Lynne
11-13-2008, 03:37 PM
if you add showposts=true, you will get the results as posts instead of threads. I don't know about getting them displayed as fulltext though. It gets trimmed around line 2879 to only 200 characters. You'd have to modify those lines yourself in search.php
mahakala
11-13-2008, 05:18 PM
hi lynne,
thanks a lot - thats that what i needed :) "fixing" the search.php shouldn't be the problem.
many big thanks,
thomas
for anyone, who want's do do the same (it shows for admin all new posts html-coded):
about line 2533
// get first 200 chars of page text
change arround there to:
// do not show post icon
else
{
$post['posticon'] = false;
$post['posticonpath'] = '';
$post['posticontitle'] = '';
}
// get first 200 chars of page text
if($search['userid'] == 1){
require_once(DIR . '/includes/class_bbcode.php');
$bbcode =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$post['pagetext'] = $bbcode->parse($post['pagetext']);
}
else {
$post['pagetext'] = preg_replace('#\[quote(=("|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe', "process_quote_removal('\\3', \$display['highlight'])", $post['pagetext']);
$post['pagetext'] = $hhr->parse_bbcode($post['pagetext'], $post['forumid'], $post['threadid'], $post['postid'], $post['userid']);
$post['pagetext'] = htmlspecialchars_uni(fetch_censored_text(trim(fetc h_trimmed_title(strip_bbcode($post['pagetext'], 1), 200))));
}
// get post title
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.