PDA

View Full Version : New Posts show with actual post details


lionheart53
02-14-2006, 08:09 AM
Okay, I'm looking to see if either of the two options I currently have on my current forums has a hack to make them possible with vbulletin (or if I need to find someone to build it).

First, I'd like to be able to have something just like new postsbut have it so they could select the date range to show (it would default to posts since last visit but then they could change it). Yes, I know they could use search to get the same but just thought I'd see if anyone's got something already (this isn't critical but it is nice).

Second, are there any mods which show new posts but display the the entirety of the new posts (not just the new threads but the actual new posts with the content themselves)? So basically like viewing a single thread except it puts all the threads on the page (with spaces between threads) and lists under each the new posts (old posts don't show at all). I know many of my users use this currently.

Thanks in advance.

lionheart53
02-17-2006, 12:06 AM
Okay, I think I've found a hook (search_getnew_start) I can use and I put in the following and it seems to work (definitely let me know if you see problems with this).

$prefs = array(
'exactname' => 1,
'starteronly' => 0,
'childforums' => 1,
'showposts' => 0,
'titleonly' => 0,
'searchdate' => 0,
'beforeafter' => 'after',
'sortby' => 'lastpost',
'sortorder' => 'descending',
'replyless' => 0,
'replylimit' => 0,
);

if ($vbulletin->userinfo['searchprefs'] != '')
{
$prefs = array_merge($prefs, unserialize($vbulletin->userinfo['searchprefs']));
}


$vbulletin->GPC['showposts'] = $prefs['showposts'];


Now I just need to see if there is a way to modify the template for the look to make it look a bit nicer. Currently if there are 3 new posts in a thread it lists the thread 3 times with one post under each. What I want to have it do is only list the thread once and then list the posts individually (so basically the table around the thread info doesn't close until the last post in that thread). if anyone knows how to put in logic to determine in the search_results_postbit template (think that's the one I need) if it's in the same thread as previous then not to write the table and thread info, let me know. Otherwise I'm going to see if I have any other ideas.

Okay, I guess I'm just rambling to myself but hopefully this helps someone else if they want it. I was able to edit the search_results_postbit template as well as the search_results_postbit and search_results_prebits hooks in order to have it know when it's in the same thread and it doesn't close the thread box until the end of the thread.

Very nice system for the hooks and templates, and it's lots of fun. :)

sickboy6ths
05-26-2006, 11:49 AM
Ok this is mainly what I was searching for in my own new posts thread/question...

vb.org is so hard to search for this kind if tiny features lol...

Now I would love to see your other edits in the templates etc, to make it look lovely! Thanks in advance!