vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Display threads creation date (https://vborg.vbsupport.ru/showthread.php?t=64378)

Ocean 07-19-2004 04:17 PM

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. :)

snake-boy 07-19-2004 06:13 PM

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

turbidblue 07-19-2004 07:08 PM

thanks ocean, yours worked great!

;)

snake-boy 07-19-2004 07:20 PM

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

turbidblue 07-19-2004 11:02 PM

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

:)

snake-boy 07-20-2004 12:06 AM

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

Natch 07-20-2004 12:01 PM

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 ...

Ocean 07-20-2004 01:09 PM

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. :)

Ocean 07-20-2004 01:41 PM

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!

snake-boy 07-20-2004 03:25 PM

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?


All times are GMT. The time now is 09:16 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.01174 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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