vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Default Sort Field/Order for Forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=93074)

Andreas 07-27-2005 10:00 PM

Default Sort Field/Order for Forumdisplay
 
Default Sort Field/Order for Forumdisplay

Description
This Hacks allows you to specify default Sort Field/Order for Thread Display on a System, Forum and User basis.
It also adds Thread Start Date.
Please note: Current selection > User Default > Forum Default > Board/System Default.

Details
1 Product XML with 2 Queries, 12 Plugins, 19 Phrases and 2 Settings
4 Template Edits

History
1.0.0
Initial Version

1.0.1
Added missing Template Edit in readme.txt (shame on me for forgetting this in first place!) and fixed a slight issue with "Default" not working properly.

1.0.2
Updated for RC3 => Code cleanup :)
Thread Start Date is now also being displayed in UserCP, Subscribed Threads and Search.

Subscribed Threads can be sorted by Thread Starte Date.
Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!

Attention
This Modification does not work with vBulletin 3.6+ as this is a built-in feature now.
To upgrade an existing board from 3.5.x to a newer version:
  • Disable this modification
  • Upgrade vBulletin
  • [sql]
    UPDATE forum SET defaultsortfield = defsortfield, defaultsortorder = defsortorder[/sql]
  • Save Forum Display Oder
  • Uninstall this modification

Christine 07-28-2005 09:07 PM

You rock, Kirby. :)

Thanks!

FleaBag 07-28-2005 11:43 PM

Awesome Kirby! Thanks...

Boofo 08-01-2005 12:44 PM

Kirby, is there a way to add the start time as well as the start date to this?

Andreas 08-01-2005 12:51 PM

That's a secret ;)
Place $thread[creationtime] where you want to have it in Template threadbit

Boofo 08-01-2005 12:59 PM

Thanks! The reason I asked is because I changed the phrase Today to read Today at and now it looks kind of wierd. ;)

endquote 08-03-2005 07:32 PM

Nice. This is something I was going to make myself.

How do you get the admincp settings to come out in the product XML? I've been having trouble with that.

Andreas 08-03-2005 07:46 PM

Hmm ... they should be installed automatically.
Did you import this as a Product?

endquote 08-03-2005 07:47 PM

I mean in the hack I'm creating, I can't get the CP settings to come out for other people to install, even though they're associated with the product. I'm sure yours works fine. :)

Andreas 08-03-2005 07:56 PM

Did you check that they are actually in the XML?

endquote 08-03-2005 08:15 PM

When I export my product, I get the phrases for the settings in the XML, but not the optiongroups or whatever. It's over here: https://vborg.vbsupport.ru/showthread.php?t=93308

chikkoo 08-06-2005 12:37 PM

I have problem in installing this plug in.

I get an error message:

Warning: Invalid argument supplied for foreach() in /includes/functions/php on line 769

Can u tell me how to fix this?
I am using vb 3.5.0 beta 3.
Do I have to upgrade?

Andreas 08-06-2005 12:52 PM

This is a Product XML, does Beta 3 support Products?

chikkoo 08-07-2005 07:35 AM

I installed a test board with RC1, there too I get the same error.
So it seems I am doing something wrong.

Can somebody tell me how to install this Mod step by step.

Andreas 08-07-2005 08:52 AM

Did you import this as a Product (ACP / Plugin System / Manage Products)?

endquote 08-08-2005 12:42 AM

I'm not sure if this is working. I installed it (RC2) and edited the templates. I can go to a forum page and sort it by "thread started", and it works fine. However if I set "default sort field" in "forum display options" to "thread start date" and then visit my forums, they are all still sorted by last post.

If I change the setting on an individual forum, it is also still sorted by last post.

Brinnie 08-08-2005 06:28 AM

Hi Kirby, how are you?
I just made a request, without seeing this. Anways;

I have a personals/classifieds section that I want to have sorted by Thread Creation Date. It's the only forum on my board that I need to have set up like this, but I'm a little confused about my options...

From my understanding this has 2 queries. Are they executed as the search is being performed, or everytime a forum dex is loaded?

Also, my users are very basic people and I do not want to load them with too many buttons and menus. That said, I would really like to just go "bare bones" and only install the admin part, is that possible?

Please respond in n00b speak... I'm still learning vB terminology.
Thank you. :)

GrendelKhan{TSU 08-08-2005 09:09 AM

RC1 installed :D

everything seems to work except:

the thread sort option does NOT appear in the USER CP. admin ones seem to be fine. But the User CP one is MIA. :(

any thoughts? did I forget something?

Boofo 08-08-2005 10:14 AM

LOL I never noticed that until you posted. I don't have it in the User CP either. ;)

Lord Brar 08-08-2005 12:56 PM

Just what I was looking for :D Thanks mate!

Andreas 08-08-2005 02:12 PM

LOL. I totally forgot the Template Edit for the UserCP part in the readme and nobody noticed so far ^.^
Works fine for me on RC2, except that there was slight issue that selecting "Default" in Forum Manager did not work.
Should be fixed now

@Brinnie
This does not add any queries upon execution.
You can just leave out the modifyoptions Template Edit and you will only have the Admin Part.

Boofo 08-08-2005 02:15 PM

Do we need to un-install and then re-install?

Boofo 08-08-2005 02:23 PM

I don't see the additional file edits in the readme text file. And the files have a 7/28 date stamp on them. And, yes, I cleaned my cache before downloading the zip file. ;)

Andreas 08-08-2005 02:39 PM

I thought I did upload it ... hmm, uploaded again.
Just import and tick Overwrite, then make the missing Template Edit.

Boofo 08-08-2005 02:53 PM

It uploaded fine this time. Thank you, sir. ;)

Marco van Herwaarden 08-08-2005 08:10 PM

Quote:

Originally Posted by KirbyDE
I thought I did upload it ... hmm, uploaded again.

Easy to say it doesn't add queries, if you have no file. :D

Andreas 08-08-2005 08:28 PM

Quote:

Originally Posted by MarcoH64
Easy to say it doesn't add queries, if you have no file. :D

Yeah, that's for sure that it doesn't add queries when there is no file :D

Brinnie 08-09-2005 12:05 AM

Quote:

Originally Posted by KirbyDE
LOL. I totally forgot the Template Edit for the UserCP part in the readme and nobody noticed so far ^.^
Works fine for me on RC2, except that there was slight issue that selecting "Default" in Forum Manager did not work.
Should be fixed now

@Brinnie
This does not add any queries upon execution.
You can just leave out the modifyoptions Template Edit and you will only have the Admin Part.

Cool thx. :D

(i always click install)

chikkoo 08-09-2005 06:04 AM

Quote:

Originally Posted by KirbyDE
Did you import this as a Product (ACP / Plugin System / Manage Products)?

Yes, I did the same thing. Still I am getting the same Warning message.

Andreas 08-09-2005 01:45 PM

Uninstall, make sure you don't have any Plugins enabled (as those could interfere and cause Problems), then Reinstall

chikkoo 08-10-2005 01:15 PM

I upgraded to rc2, uninstalled and reinstalled it..
Wow.. it started working..
This was a strange problem in my beta4 & rc1 problems.

Thanks... KirbyDE

Fj?rgyn 08-16-2005 11:18 PM

XML file not work, install an empty hook.

I added manually the hooks and phrases, but how I add settings?

Edit: Settings can be add over phpMyAdmin :devious: *hrhr*

Andreas 08-16-2005 11:27 PM

Common Mistake: You imported this as a Plugin while it is a Product and must be imported this way.

Stormwolf 08-30-2005 07:17 PM

Thanks for pointing me in this direction from the older topic kirby installed and so far its working like a charm.

wilky49 08-30-2005 11:35 PM

KirbyDE,

Another great hack.

-Wilky49

feldon23 09-07-2005 07:56 PM

Quote:

Originally Posted by wilky49
KirbyDE,

Another great hack.

-Wilky49

What about a 'lite' version just for Admins to specify the sort order of certain forums?

Shouldn't require any template mods, just XML bitfield and XML admincp.

Andreas 09-08-2005 03:41 AM

Lite Version = Don't do the Template Edits :)
Btw: Bitfield XML?

Omega Prime 09-08-2005 03:51 AM

Kinda random to ask this here, but is there a way to have the creation date appear in its own column (similar to this thread)? Thanks in advance :)

Andreas 09-08-2005 04:15 AM

Sure - edit the Templates as needed.

Andreas 09-09-2005 04:16 AM

Updated for RC3.
Details see first Post.


All times are GMT. The time now is 04:02 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.01201 seconds
  • Memory Usage 1,807KB
  • 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
  • (5)bbcode_quote_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
  • (40)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