Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #22  
Old 07-19-2004, 04:17 PM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snake-boy

Hi,

Everything looking good, I hit a snag right at the start:

This line does not exist in my forumdisplay.php? (V3.0.3) Am I just crazy?

-snake
If you check the instructions, you will see that that line is found in the ForumDisplay Template, not the PHP file.
Reply With Quote
  #23  
Old 07-19-2004, 06:13 PM
snake-boy snake-boy is offline
 
Join Date: Jul 2004
Location: Bangkok
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doh! Sorry, I opened my eyes and followed the instructions, and everything went fine (installation-wise), but now I have a problem:

The sort creation date column is there, but I should mention that column "Date of Creation", although it is there, it is not clickable. And in the dropdown options "Sort By", I don't have an option to sort by Creation Date?

Threads still appear to be sorted by most-recently-replied to.

Update: I just went through all the changes I made to make sure I didn't miss something, and everything's there.

Do I need to rebuild something or enable this feature in the admincp somewhere before it becomes active? Your advise would be greatly appreciated to acomplish this.

-snake
Reply With Quote
  #24  
Old 07-19-2004, 07:08 PM
turbidblue's Avatar
turbidblue turbidblue is offline
 
Join Date: Apr 2004
Location: Indiana
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks ocean, yours worked great!

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

Quote:
Originally Posted by turbidblue
thanks ocean, yours worked great!

Are you running 3.0.3? Is your "date of creation" column clickable? Do you have the option to sort by date of creation from the dropdown?

-snake
Reply With Quote
  #26  
Old 07-19-2004, 11:02 PM
turbidblue's Avatar
turbidblue turbidblue is offline
 
Join Date: Apr 2004
Location: Indiana
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually no, i didnt know it was supposed to do that, i wouldnt want it to do that anyway..

yes i am on 3.0.3

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

Ocean - I guess maybe I missed the point? Does your hack allow sorting by thread creation date or not? If not, then I guess it is working correctly, (my misunderstanding), but I would like to ask if you could give us the code that will allow sorting by this new column. (newest to oldest preferrably)?

I know frighfully little about php, but surely this can't be too hard to do now that there is a field that can be sorted?

I'd really appreciate it if you could add this feature to this mod?

-snake
Reply With Quote
  #28  
Old 07-20-2004, 12:01 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

KirbyDE's instructions work to sort by Creation Date - follow those after using Ocean's code and you should be apples ...

This is of course dependant on whether you want to be apples ...
Reply With Quote
  #29  
Old 07-20-2004, 01:09 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 - I guess maybe I missed the point? Does your hack allow sorting by thread creation date or not? If not, then I guess it is working correctly, (my misunderstanding), but I would like to ask if you could give us the code that will allow sorting by this new column. (newest to oldest preferrably)?

I know frighfully little about php, but surely this can't be too hard to do now that there is a field that can be sorted?

I'd really appreciate it if you could add this feature to this mod?

-snake
That was one improvement I had not gotten around to testing. The changelog in my post and the Instructions lists the new features/fixes that I put in.

Even without the sorting (which I will hopefully add to my instructions soon), it's still worth using over VBDev's, because of all of the other improvements.

But I'll try to update my instructions soon to add Sorting.
Reply With Quote
  #30  
Old 07-20-2004, 01:41 PM
Ocean's Avatar
Ocean Ocean is offline
 
Join Date: Mar 2004
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have revised my instructions (which are now Version 1.3).


I added KirbyDE's code modifications so that you can sort by Thread Creation Date on ForumDisplay. However, I did some further modification so that you can also sort by Creation Date for Thread Subscriptions as well.


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

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

Edit: Oh, and how do I make this the default sort order?
Reply With Quote
Reply

Thread Tools

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 12:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09561 seconds
  • Memory Usage 2,302KB
  • 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
  • (3)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
  • (4)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