Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Display threads creation date Details »»
Display threads creation date
Version: 1.00, by VBDev VBDev is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-24-2004 Last Update: Never Installs: 19
 
No support by the author.

Display thread's creation date

Total hack's description : http://www.vbulletindev.net/forums/h...hack&hackid=69



Please click if you like this hack


I've created this hack, and I saw then that it was already done here, but with my hack, you can display the date from the searcH.php and it adds a new column :nervous:

With this small hack, you'll add the thread's creation date in the forumdisplay (and search results)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 07-20-2004, 03:40 PM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snake-boy

Thanks a mil for this! I have just downloaded this, but as I already made the V1.2 changes, I'm not sure which parts are 'new'.

Would it be possible to have a 'diff' of the two versions so that I can upgrade the code to allow the sorting, or must I go through it all again going over the changes I previously made?

Thanks again for this long awaited mod

-snake
I've updated my original post with upgrade instructions.
Reply With Quote
  #33  
Old 07-20-2004, 06:20 PM
snake-boy snake-boy is offline
 
Join Date: Jul 2004
Location: Bangkok
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ocean - thank you!

I only have two questions:

- How do I make this the default order for all forums?

- Only the column's heading is clickable to select this. In the dropdown for "Sorted by", should there also be an option for "Date of Creation"?

I only have the (usual) options from the dropdown:

Thread Title
Last Post Time
Number of Replies
Number of Views
Thread Starter
Thread Rating

-snake
Reply With Quote
  #34  
Old 07-20-2004, 06:58 PM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snake-boy

Ocean - thank you!

I only have two questions:

- How do I make this the default order for all forums?

- Only the column's heading is clickable to select this. In the dropdown for "Sorted by", should there also be an option for "Date of Creation"?
1. I'm not sure, at the moment, how to set anything other than Last Post Date as the default order, as I have never needed to change this myself. I'm sure someone else here can pipe in, or you can post a quick question on vBulletin.com.

2. Oops! I never use that, so it just slipped right past me. I've revised my original post. We're now up to v1.31. I have upgrade instructions from 1.3 to 1.31 at the bottom of that post.


Reply With Quote
  #35  
Old 07-20-2004, 09:44 PM
snake-boy snake-boy is offline
 
Join Date: Jul 2004
Location: Bangkok
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
2. Oops! I never use that, so it just slipped right past me. I've revised my original post. We're now up to v1.31. I have upgrade instructions from 1.3 to 1.31 at the bottom of that post
I applied the new settings, and it's working just fine.

The ONLY item I still have on my wishlist is to be able to set this as the default sort order for all forums. (On a per-forum would be better, but I'd settle for a global setting.)

Now, if anyone out there can advise on how to acomplish this, I think this mod can be classified as 100% perfect for my needs.

I'd appreciate any input on this, perhaps if someone could supply the code, it could be added to the mod in a final revision?

Anyone?

-snake


PS - Thanks once again to Ocean and KirbyDE for helping me implement the most requested change of all time to my forums.
Reply With Quote
  #36  
Old 07-20-2004, 11:28 PM
crabacus crabacus is offline
 
Join Date: May 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really good mod here, thanks.

what do you suggest if i want to setup a few of my forums to sort this way by default? not the entire forums, just certain ones.

thanks again, good mod.
Reply With Quote
  #37  
Old 07-20-2004, 11:45 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snake-boy
The ONLY item I still have on my wishlist is to be able to set this as the default sort order for all forums. (On a per-forum would be better, but I'd settle for a global setting.)
Global (this is for formumdisplay only) is simple:

In forumdisplay.php FIND
PHP Code:
default:
        
$sqlsortfield 'lastpost';
        
$sortfield 'lastpost'
REPLACE that with
PHP Code:
default:
        
$sqlsortfield 'thread.dateline';
        
$sortfield 'threadstarted'
Instructions on how to do this on a per-forum basis will follow.
Reply With Quote
  #38  
Old 07-21-2004, 01:05 AM
snake-boy snake-boy is offline
 
Join Date: Jul 2004
Location: Bangkok
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My wish is complete! :-)

Just made the change to sort like this globally, and it's working 100% perfectly. I cannot express enough thanks for this mod. It's great to finally get this feature working (that I feel should be part of the default vb choices, but that's a separate issue).

Thank you very much for your help. It is really appreciated.

-snake - one happy camper! :-)
Reply With Quote
  #39  
Old 07-21-2004, 01:13 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So here is a solution for doing this on a per-forum basis.
  • You can select a global default sort field
  • For each forum you can specify a default sort field. If this is not specified it will use the global default instead

@Ocean
Feel free to include this too if you want.

@snake-boy
If you want to use this instead, undo the previous change first.
Reply With Quote
  #40  
Old 07-21-2004, 02:30 AM
snake-boy snake-boy is offline
 
Join Date: Jul 2004
Location: Bangkok
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Although I am 100% satisfied with the results as I have them right now, I would be interrested to hear if it is possible with vBulletin to have the sort method be selectable on a per-user basis in his/her profile settings?

It does seem reasonable to me that users may wish to set a sort order that THEY want.

I don't know enough about the internal workings of vBulletin to know if this is viable to consider? If so, perhaps a feature request or a mod? Is this do-able and if so, is it a major undertaking?

-snake (still a very happy camper
Reply With Quote
  #41  
Old 07-21-2004, 02:34 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is pretty easy. I'll post smth. tomorrow
Reply With Quote
Reply


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 08:39 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.04809 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete