vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Sort Forumdisplay by First Post Date (https://vborg.vbsupport.ru/showthread.php?t=229187)

Lynne 11-29-2009 10:00 PM

Sort Forumdisplay by First Post Date
 
1 Attachment(s)
This just allows users to sort by First Post Date via a new clickable link in the table head next to Thread Starter.

Version History:
1.0 2009-11-30: initial release by Lynne at vbulletin.org

To install:

1. Import product-lynne_sort_dateline.xml

2. If you are using Andreas' Template Modification System, then the template edits to the FORUMDISPLAY template should import and install when you install this product. If you aren't using TMS, then you will have to make the template modification yourself via the following instructions.

Open the FORUMDISPLAY template and find the following line:
HTML Code:

<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a>
Add below:
HTML Code:

/ <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_dateline}}" rel="nofollow">{vb:rawphrase first_post_date}{vb:raw sortarrow.dateline}</a></span>
This is an image of what you will end up with. However, currently the code to show the first post date is not in the forumdisplay.php page. It's supposed to be there (hover over the Posted by xxxx under the title), so hopefully it shows up soon.

https://vborg.vbsupport.ru/attachmen...1&d=1259608181


To uninstall:

1. Uninstall "Forumdisplay - Sort by First Post Date"

2. If you had to do the template edit above manually, then you will need to undo it.


Until they fix the issue with the first post date not showing on hover, you can add a plugin using the threadbit_display hook location with the following code:
PHP Code:

$thread['fdate'] = vbdate($vbulletin->options['dateformat'], $thread['dateline']);
$thread['ftime'] = vbdate($vbulletin->options['timeformat'], $thread['dateline']);

$thread['postdate'] = $thread['fdate'] .' '$thread['ftime']; 


Eric 11-30-2009 06:28 PM

"4.0.0 RC1" ? I thought it was still in Beta.

Nice mod though :)

mokujin 11-30-2009 06:38 PM

This Mod's version, not VBB version (maybe) :)

Lynne 11-30-2009 06:59 PM

Whoops, I left the version at the default. It looks like they are getting ahead of themselves in the versions there!

Zaiaku 11-30-2009 07:27 PM

I notice that on a few mods. I kept looking at vb.com to see if I mised something lol.

abdobasha2004 11-30-2009 10:57 PM

thanks lynne
always the best

Dr.osamA 12-03-2009 11:44 AM

installed

thnxxxx
________
Herbal vaporizer

SİMAR 12-03-2009 01:32 PM

installed

thanks
__________

encryption 12-12-2009 06:25 PM

I tried this on 3 and it took my forum down. I didn't realize it was 4 only! oops...

does anybody know of a version for 3.8x? I plan on upgrading to 4, so I fear I'll just have to wait

Blooded 03-13-2010 12:56 AM

work in 4.0.2? really miss this option since 3.8 they took it away :(


All times are GMT. The time now is 01:13 AM.

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.01013 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete