Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 02-14-2006, 08:09 AM
lionheart53 lionheart53 is offline
 
Join Date: Jan 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default New Posts show with actual post details

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.
Reply With Quote
  #2  
Old 02-17-2006, 12:06 AM
lionheart53 lionheart53 is offline
 
Join Date: Jan 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 05-26-2006, 11:49 AM
sickboy6ths sickboy6ths is offline
 
Join Date: Apr 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03668 seconds
  • Memory Usage 2,171KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete