Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: codenaught on July 10, 2006, 07:06:30 PM

Title: Custom Board Sort
Post by: codenaught on July 10, 2006, 07:06:30 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=382)

This mod allows you to go edit a board in Admin / Boards and set a custom sort order that is different from the default order when you view the board's message index. You can have particular boards be sorted by:
and you can have it in ascending or descending order. Users can still change the sorting of the board just as they were before.
Title: Re: Custom Board Sort
Post by: PrizeLive.com on July 10, 2006, 07:09:27 PM
Cool mod.. I'll check it out..

Just a few questions first..

How can a user set their personal default order? If they click "subject" to sort it by subject, will it always be that way for them until they sort it again?
Title: Re: Custom Board Sort
Post by: qtime on July 10, 2006, 07:58:33 PM
thx for this great option.
you wrote 2 x last post
Last post
Started by
Last post
Replies
Views
First post

I am waiting a long time for this feature.

I have one request so far, is it possible to have an option to sort on the first post on a board on visiting?

Now we can click on:
Subject     Started by     Replies     Views     Last post
to sort, but not first post
Title: Re: Custom Board Sort
Post by: PrizeLive.com on July 10, 2006, 07:59:24 PM
Can't you just click last post twice?
Title: Re: Custom Board Sort
Post by: qtime on July 10, 2006, 08:04:29 PM
Yes it's working, thx for the tip, is this normal or due this mod???
Title: Re: Custom Board Sort
Post by: PrizeLive.com on July 10, 2006, 08:06:29 PM
Quote from: qtime on July 10, 2006, 08:04:29 PM
Yes it's working, thx for the tip, is this normal or due this mod???

I believe it's normal...  ;)
Title: Re: Custom Board Sort
Post by: codenaught on July 10, 2006, 10:59:48 PM
Quote from: SurfExcelerator.com on July 10, 2006, 07:09:27 PM
Cool mod.. I'll check it out..

Just a few questions first..

How can a user set their personal default order? If they click "subject" to sort it by subject, will it always be that way for them until they sort it again?

It will only sort it by subject for the time the user is viewing it that way. If they returned back to the board the board would be sorted by the custom sort order set for the board. So the user cannot view it in their own default order permanently, so they have to click the link to sort it the way they want each time they enter the board.
Title: Re: Custom Board Sort
Post by: PrizeLive.com on July 10, 2006, 11:02:55 PM
Thanks for your reply..

WOuld it be hard to allow the user to set their own default?
Title: Re: Custom Board Sort
Post by: Vinspire on July 11, 2006, 01:11:20 PM
can i see screenie ? :)
Title: Re: Custom Board Sort
Post by: kezayah on July 12, 2006, 09:45:37 AM
Quote from: Vinspire on July 11, 2006, 01:11:20 PM
can i see screenie ? :)
yes a screen please
Title: Re: Custom Board Sort
Post by: codenaught on July 12, 2006, 02:58:03 PM
Okay, added a screenshot to the mod page, although not the best of screenshots. ;)

http://mods.simplemachines.org/index.php?action=download;mod=382;id=16927;image

The screenshot is when you are editing a board in the admin panel. You will see a dropdown that lets you select the sort method for that board and the order: ASC meaning ascending and DESC meaning Descending.
Title: Re: Custom Board Sort
Post by: geekleader on October 21, 2006, 02:26:41 PM
Not sure why but the search order is not being remembered, and I'm getting error messages like:

http://chuckie.bmdistros.co.uk/php/smf/index.php?action=manageboards;sa=board;ID_BOARD=31 
8: Undefined index: sort_method
File: /home/default/public_html/php/smf_1-0-8/Themes/default/ManageBoards.template.php (eval?)
Line: 391

http://chuckie.bmdistros.co.uk/php/smf/index.php?action=manageboards;sa=board;ID_BOARD=31 
8: Undefined index: sort_method
File: /home/default/public_html/php/smf_1-0-8/Themes/default/ManageBoards.template.php (eval?)
Line: 395

http://chuckie.bmdistros.co.uk/php/smf/index.php?action=manageboards;sa=board;ID_BOARD=31 
8: Undefined index: sort_order
File: /home/default/public_html/php/smf_1-0-8/Themes/default/ManageBoards.template.php (eval?)
Line: 402

http://chuckie.bmdistros.co.uk/php/smf/index.php?action=manageboards;sa=board;ID_BOARD=31 
8: Undefined index: sort_order
File: /home/default/public_html/php/smf_1-0-8/Themes/default/ManageBoards.template.php (eval?)
Line: 403

If anyone could help with this I'd really appreciate it
Title: Re: Custom Board Sort
Post by: codenaught on October 21, 2006, 02:36:02 PM
Unfortunately the mod wasn't designed for SMF 1.0 so I don't think it will work on versions below 1.1 RC2.
Title: Re: Custom Board Sort
Post by: edchapman on December 02, 2006, 04:12:55 PM
Anyone have this working on their site? I would love to see it in action.
Title: Re: Custom Board Sort
Post by: Krysia on December 14, 2006, 03:17:07 PM
For clarification purposes, this mod is specifically for boards only?

And not, say, custom sort of topics within the board?
Title: Re: Custom Board Sort
Post by: codenaught on December 15, 2006, 07:24:46 PM
Not entirely sure of your question.

It sorts topics within a board's list of topics. Such as by last post, number of replies, number of views, etc. If you are asking if it sorts posts within a topic, then no it does not.
Title: Re: Custom Board Sort
Post by: Krysia on December 17, 2006, 07:59:45 PM
QuoteIt sorts topics within a board's list of topics.
Would it do it alphabetically?

For example, if I want to make it so that the board's list of topics reads like follows:

Chapter 01
Chapter 02
Chapter 03
Chapter 04
Chapter ...

It will make it so?
Title: Re: Custom Board Sort
Post by: codenaught on December 17, 2006, 08:27:14 PM
Yes you can sort it by subject in alphabetical order. I forgot to include "Subject" in the first post of this topic, so sorry if I caused any confusions. :)
Title: Re: Custom Board Sort
Post by: Krysia on December 18, 2006, 10:55:37 AM
Oh, that is just kick ass.  :D

<off to go try it>
Title: Re: Custom Board Sort
Post by: Krysia on December 18, 2006, 12:46:50 PM
This mod is so exceptionally kick freaking ass that I can't even believe it.

I've attached a screen cap of the mod in use.

This is FREAKING AWESOME!

I am sooooo happy right now: I have the 2 essential to message boarding, IMO mods in use:
This Custom Default Sort mod and the Show Signature mod...

Life. Is. Good.

THANK YOU!

<Snoopy dances offline>
Title: Re: Custom Board Sort
Post by: dpiercey on December 18, 2006, 07:33:25 PM
Thanks - this is fantastic!
Title: Re: Custom Board Sort
Post by: Krysia on December 18, 2006, 08:25:25 PM
Quote from: edchapman on December 02, 2006, 04:12:55 PM
Anyone have this working on their site? I would love to see it in action.

I posted a screencap. :)
Title: Re: Custom Board Sort
Post by: chaos_gamer on January 03, 2007, 08:16:12 AM
I tried to install Sort board package and after uninstalling i am seeing this error i am attaching the screenshot plz help
Title: Re: Custom Board Sort
Post by: Flying Drupalist on January 03, 2007, 08:44:22 AM
Is it possible to tweak it to sort by the number of "Thank yous" from the thanks mod or the number of votes from the star rankings?
Title: Re: Custom Board Sort
Post by: actoguitar on January 03, 2007, 12:02:29 PM
i installed this mod, and everything was fine. then i installed a few other mods -- smfshop, tagging system, and tinyportal -- and now the dropdown menu in the custom board sort section no longer lists all the options to sort by; the only option listed is "default". the ASC and DESC options are visible.

i am assuming something in the other mods conflicted with this mod. based on that, i wanted to uninstall/reinstall teh customboardsort mod. i tried to uninstall, but then got a failure message:

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.

!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Uninstall Actions
Uninstall Actions "Custom Board Sort":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/MessageIndex.php    Test failed
2.    Execute Modification    ./Sources/ManageBoards.php    Test failed
3.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test failed
5.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
6.    Execute Modification    ./Sources/Load.php    Test failed

is it safe for me to proceed with an uninstallation anyway? or any idea how i can resolve this problem?

thanks :)
Title: Re: Custom Board Sort
Post by: Krysia on January 03, 2007, 12:47:23 PM
Quote
is it safe for me to proceed with an uninstallation anyway? or any idea how i can resolve this problem?
I've learned that whenever I've come into this type of problem, it means that I have to install the mod manually (sometimes in addition to via the Package Manager). The original code has just been modified, and now the package manager directions may not apply. You can do this via a text editor, and there's also a tutorial on this site somewhere as to how (if you've never done it before).

:)
Title: Re: Custom Board Sort
Post by: codenaught on January 09, 2007, 08:27:28 PM
Quote from: Miraploy on January 03, 2007, 08:44:22 AM
Is it possible to tweak it to sort by the number of "Thank yous" from the thanks mod or the number of votes from the star rankings?
I will have to look at those mods and I can probably include a check to see if those mods are installed and if they are include them as options. I assume those fields are currently sortable when inside a board?

@chaos_gamer, it looks like the text strings are outside the Themes/default/languages/Modifications.english.php file. If you are still having this problem, make sure all text in that file is between the beginning <?php line and the ending ?> line.

@actoguitar, because all those files failed, you shouldn't try uninstalling it. Most of the strings that appear in the dropdown come right from SMF, so is it possible you have a problem with your language files? You may want to try viewing it in the default theme if you are not already doing so.
Title: Re: Custom Board Sort
Post by: vcomp on March 08, 2007, 07:05:48 PM
I tried to install on 1.1.2 and received the following error at step 3:

1.  Execute Modification  ./Sources/MessageIndex.php     Test successful
2. Execute Modification   ./Sources/ManageBoards.php    Test failed
3. Execute Modification   ./Themes/default/ManageBoards.template.php    Test successful
4. Execute Modification   ./Themes/default/languages/Modifications.english.php    Test successful
5. Execute Modification   ./Sources/Subs-Boards.php    Test successful
6. Execute Modification   ./Sources/Load.php    Test successful
7. Execute Code        database.php    

Any idea how to fix?  I really want this mod.

TIA
Title: Re: Custom Board Sort
Post by: Krysia on March 08, 2007, 11:08:28 PM
The test failed probably means that some other mod tweaked the code enough so that the auto-installer can't install it; you'll have to install manually.

That's my take on what happened.
Title: Re: Custom Board Sort
Post by: vcomp on March 09, 2007, 01:55:09 PM
It seems that this bit of code cannot be found in ManageBoards.php:

         'permission_mode' => 'normal',
      );

in order to add this after it:

   $context['board']['sort_method'] = 0;
   $context['board']['sort_order'] = 0;

But I found the general area and my new code block looks like this:

   if ($_REQUEST['sa'] == 'newboard')
   {
      // Some things that need to be setup for a new board.
      $curBoard = array(
         'memberGroups' => array(0, -1),
         'category' => (int) $_REQUEST['cat']
      );
      $context['board_order'] = array();
      $context['board'] = array(
         'is_new' => true,
         'id' => 0,
         'name' => $txt['mboards_new_board_name'],
         'description' => '',
         'count_posts' => 1,
         'theme' => 0,
         'override_theme' => 0,
         'category' => (int) $_REQUEST['cat'],
         'no_children' => true,
         'is_redirect' => 0,
         'count_clicks' => 0,
         'target' => '',
         'url' => '',
      );
      
      $context['board']['sort_method'] = 0;
      $context['board']['sort_order'] = 0;
   
   }

It seems to be working.  Excellent Mod!!! :D :D :D
Title: Re: Custom Board Sort
Post by: bobbbb on March 25, 2007, 12:19:08 AM
You rock dude, I just realized a needed this mod for a downloads board. I have several files I wanted to sort by date, and I posted them in different orders... this mod is perfect for me! Thanks!
Title: Re: Custom Board Sort
Post by: calv on May 01, 2007, 02:32:51 AM
Hi,
Nice mod! Been looking for something similar...
Just installed in on 1.1.2 but cant see where it's added the functionality?
lol, might just be me? where is it supposed to be?

thanks!
Title: Re: Custom Board Sort
Post by: calv on May 03, 2007, 06:42:17 AM
still cant find it? keen to get it going...

cheers!  8)
Title: Re: Custom Board Sort
Post by: TheCyberKid on May 04, 2007, 05:28:44 AM
i can't have ads put up on alienation, only the default smf core theme, why?

even though i have swapped to SMF core, the ads do appear, but once i view the forum as a guest, i see no ads, why? and how can i solve this?
Title: Re: Custom Board Sort
Post by: ArkServer on May 04, 2007, 09:15:07 AM
Unknown column 'b.sort_order' in 'field list'

any idea how to fix this?
Title: Re: Custom Board Sort
Post by: codenaught on May 04, 2007, 08:50:30 PM
@calv, go to Admin / Boards and select Modify next to any board. On the modify board page you should see a new dropdown which allows you to select the default board sort type for that particular board. Do you see it?

@TheCyberKid, ads? This mod doesn't have to do with ads. Are you saying it is not compatible with the ad mod? Please post any problems you are having with your ad mod in the ad mod's support topic. In anycase, it sounds like you need to manually apply the theme changes to your custom themes because by default, mods only install to the SMF default theme.

@ArkServer, I'm not sure why the mod didn't successfully add that column to the boards table but if you have phpmyadmin you can try running this query:

ALTER TABLE smf_boards ADD `sort_order` TINYINT NOT NULL

Changing the smf_ to your own database prefix if it is any different.

If the sort_method column is also missing you could also run the following query:

ALTER TABLE smf_boards ADD `sort_method` VARCHAR(60) NOT NULL
Title: Re: Custom Board Sort
Post by: ArkServer on May 05, 2007, 07:09:43 AM
Thanks, it worked!
great mod  :D
Title: Re: Custom Board Sort
Post by: calv on May 08, 2007, 05:19:00 AM
Hi akabugeyes,
Thanks for the reply! Very handy mod  :D No cant see any new dropdowns? guess I might need to manually install it? any idea's first?

thanks  8)
Title: Re: Custom Board Sort
Post by: codenaught on June 15, 2007, 01:06:15 PM
calv, sorry that this was overlooked. Are you still having issues with the mod?

If it still doesn't work, when you installed the mod did it report any failures for any of the files it was to modify? Are you using a custom theme that has its own ManageBoards.template.php file? (Really no reason why any theme should though)
Title: Re: Custom Board Sort
Post by: ltdeta on June 16, 2007, 09:00:52 AM
SMF 1.12

Field 'sort_order' doesn't have a default value
Datei: D:\Projekte\PHP_PROJEKTE\kosforum\Sources\Subs-Boards.php
Zeile: 1108

then i want to create a new Board

Title: Re: Custom Board Sort
Post by: codenaught on June 16, 2007, 03:18:34 PM
ltdeta, I have just released version 1.0.1 of the mod that should fix the issue you have.

Just uninstall the mod, download "CustomBoardSort_1.0.1_smf1.1.zip" from the mod's page and upload that. The installer will update the column to have a default value when the column already exists from installing it previously.
Title: Re: Custom Board Sort
Post by: goodsamaritan55 on July 26, 2007, 05:39:30 AM
Please update this MOD for SMF 1.1.3
I'd love to SORT BY CREATED (the time and date the topic / thread / first post was created)
Something like: http://drupal.org/forum/2?sort=desc&order=Created&%24Version=1&%24Path=/

Thanks!
Title: Re: Custom Board Sort
Post by: goodsamaritan55 on July 26, 2007, 12:00:44 PM
Does not work with a new install of SMF 1.1.3

There is no label for CUSTOM BOARD SORT

And the available choices are
    * Last post
    * Started by
    * Subject
    * Views
    * Replies

This is not available!
    * First post

Yet this is what I'm looking for.

Maybe the mod needs updating to 1.1.3?
Title: Re: Custom Board Sort
Post by: goodsamaritan55 on July 26, 2007, 12:15:05 PM
I tested the custom sort mod again.
This time I picked the INVISIBLE option.
It works!
The invisible option is the sort by * First Post
Please make the correction for 1.1.3 to show the * First Post sorting option in the drop down menu.
Title: Re: Custom Board Sort
Post by: Krysia on July 30, 2007, 12:41:48 AM
Hmm. That's odd.
It seems to work fine with my 1.1.3 SMF version. Granted, it was already installed prior to my updating the SMFware to 1.1.3... maybe that's why.
Title: Re: Custom Board Sort
Post by: 7earitup on September 01, 2007, 10:04:08 PM
I am getting this error after installing it:
$txt['first_post'] = 'First post'; $txt['asc'] = 'ASC'; $txt['desc'] = 'DESC'; $txt['asc_full'] = 'Ascending'; $txt['desc_full'] = 'Descending'; $txt['sort_desc'] = 'Here you can set the sort method and sort order for this board. Setting the sort method to the default will make it so the board uses the default sort method which in turn makes the sort order use the default as well.'; $txt['sort_title'] = 'Default Sort Method';

Check it out at the top of my page:
http://under-oath.org/forums/index.php

How can I fix this?
Title: Re: Custom Board Sort
Post by: codenaught on September 01, 2007, 10:22:23 PM
Open your Themes/default/Modifications.english.php file. You should see that same code somewhere outside of the <?php (first line) and ?> (last line). Move all the text so it is somewhere in between the <?php and ?>.

How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
Title: Re: Custom Board Sort
Post by: sharethefun on October 01, 2007, 03:20:44 PM
i have install this mod.
im going to sort one of my boards but  it returns again to overall forum default.
how can i change it ?
Title: Re: Custom Board Sort
Post by: codenaught on October 01, 2007, 05:18:06 PM
Can you describe the steps you have taken? Have you gone to Admin / Boards / Board Name - Modify to set the default sort method and order for a board?
Title: Re: Custom Board Sort
Post by: sycodelic on October 02, 2007, 03:16:57 PM
I try and install this on version 1.1.4 and get parse errors when useing the package manager
Title: Re: Custom Board Sort
Post by: codenaught on October 02, 2007, 07:08:21 PM
What are the parse errors? It doesn't seem like it would be coming from this mod. When exactly do you get them? What stage? When entering the package manager? When actually installing this mod?
Title: Re: Custom Board Sort
Post by: sycodelic on October 03, 2007, 05:54:36 AM
When I try and install, a screen shot below would explain it better.

Thanks.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg526.imageshack.us%2Fimg526%2F7088%2Fparsecustomboardzp8.th.jpg&hash=ba9ce1b2f80d52bd49c08b4cd94e2959110b7e2c) (http://img526.imageshack.us/my.php?image=parsecustomboardzp8.jpg)
Title: Re: Custom Board Sort
Post by: LanciaSport on April 01, 2008, 07:44:43 PM
Hi
I've tried this with 1.1.4
I've copied the 3 files into where index.php is and run intall.xml
No joy
Any ideas what I need to do?
thanks
JPL
Title: Re: Custom Board Sort
Post by: S3NTYN3L on April 30, 2008, 04:25:25 PM
This REALLY needs to be a feature in SMF by DEFAULT!!!
Title: Re: Custom Board Sort
Post by: LanciaSport on April 30, 2008, 05:14:07 PM
I've not heard anything. 

It would be really great to have this worked on but I've tried a lot and have no success.

:-(
Title: Re: Custom Board Sort
Post by: _Anthony_ on April 30, 2008, 07:48:22 PM
Ooo, Very nice :)
Title: Re: Custom Board Sort
Post by: codenaught on May 01, 2008, 06:32:01 PM
Hi LanciaSport, this mod will work for both 1.1.4 and 1.1.5 I just forgot to update the mod page to state that it would work for 1.1.4.

How are you trying to install the mod? You want to go to Admin / Packages / Download Packages to install it.
Title: Re: Custom Board Sort
Post by: codenaught on May 01, 2008, 10:30:31 PM
The Custom Board Sort modification package has been updated for SMF 2.0 Beta 3.

Before I upload it to the mod site I would appreciate it if a few people could test it and report back of any problems encountered if any.

Important: You need to clear your forum cache (Admin / Forum Maintenance) if you want to immediately see the changes you make when changing a board's sort method or order.

Thanks. :) The file is attached.
Title: Re: Custom Board Sort
Post by: LanciaSport on May 02, 2008, 03:01:32 AM
Hi akabugeyes

I've removed all the old packages relating to the mod and started again.  All this is done in the package manager.

I was led to the mod :
SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update

And have done this.  No trouble during this mod, but Admin homepage still thinks I'm on 1.1.4.

Moving on to the alpha mods...

After successful upload, I then tried to install the original CustomBoardSort_1.0.1_smf1.1.zip mod. This showed some errors so I didn't install

I then tried the modification in your last post.  It comes up in the table as 1.0.1 but when I try and install it, it tells me my version of SMF is wrong (or the file is corrupt)

I've now deleted all the alpha mods and will wait to see what you reckon it could be.

thanks
Title: Re: Custom Board Sort
Post by: michelangelo on May 04, 2008, 05:54:29 PM
Hello, thanks for this wonderful mod. I use your mod for my own forum and want to know, if it is possible to allow the users to select one permanent sorting option for each forum. So that they don't have to sort the topics manually, each time they are unsatisfied with the forum default sorting order.
Title: Re: Custom Board Sort
Post by: LanciaSport on May 05, 2008, 02:35:10 PM
Having a major headache with it...

any help would be greatly appreciated.  The 1.1.5 update doesn't register in the admin central area, even though it said it had no problems.

Tried the alpha mod - no joy
Title: Re: Custom Board Sort
Post by: kai920 on June 07, 2008, 03:06:24 AM
Quote from: goodsamaritan55 on July 26, 2007, 05:39:30 AM
I'd love to SORT BY CREATED (the time and date the topic / thread / first post was created)
Something like: http://drupal.org/forum/2?sort=desc&order=Created&%24Version=1&%24Path=/ (http://drupal.org/forum/2?sort=desc&order=Created&%24Version=1&%24Path=/)

Thanks!

I am looking for the same feature: sort by created time/date in reverse order... making that board somewhat like a blog.

Is this the option I choose? "First Post" - see attachment.
Title: Re: Custom Board Sort
Post by: Burke ♞ Knight on June 13, 2008, 09:21:06 AM
Tried to Apply Mod, and got this:

QuoteInstallations actions for "Board Default Sort":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Any ideas?
Title: Re: Custom Board Sort
Post by: kai920 on June 13, 2008, 09:32:54 AM
What version of SMF do you use?
Title: Re: Custom Board Sort
Post by: Burke ♞ Knight on June 14, 2008, 07:13:22 PM
1.1.5

3 forums, same thing.
Title: Re: Custom Board Sort
Post by: kai920 on June 14, 2008, 10:40:34 PM
edit the packagae xml file in the archive to include 1.1.5. works great
Title: Re: Custom Board Sort
Post by: Burke ♞ Knight on June 15, 2008, 10:15:40 AM
Ok, the only version info in that file is the mod's version.
So, how would I edit it to include SMF v. 1.1.5?

I re-downloaded it, and now get this:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/MessageIndex.php    Test successful
2.    Execute Modification    ./Sources/ManageBoards.php    Test failed
3.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
6.    Execute Modification    ./Sources/Load.php    Test successful
7.    Execute Code    database.php   
Title: Re: Custom Board Sort
Post by: kai920 on June 15, 2008, 11:06:49 AM
Oh ok, my mistake maybe I didn't edit the xml file to add 1.1.5... But your tests failed means you probably need to make manual edits.

Have you taken a look at this? http://docs.simplemachines.org/index.php?topic=402.0
Title: Re: Custom Board Sort
Post by: argggghh on June 19, 2008, 08:34:13 PM
how to make post show from newest to oldest
Title: Re: Custom Board Sort
Post by: General_Naga on August 25, 2008, 06:12:21 PM
Would it be possible for you to make a version for 2.0? This is just such a great idea and I could put it to a lot of use on my SMF 2.0 board.

Thanks
Title: Re: Custom Board Sort
Post by: dazzyl on August 28, 2008, 04:02:11 PM
Hello, I am trying to install on SMF 115 and get the following error message;

Execute Modification     ./Sources/Subs-Boards.php     Test failed

I have read the manual installation instructions and like it says, it's a bit confusing.  Before I starting messing with code thought I would see if you have any suggestion.

Thanks!
Title: Re: Custom Board Sort
Post by: General_Naga on September 17, 2008, 03:14:18 PM
Would it be possible to have a yay or nay on a SMF 2.0 version?

Thanks
Title: Re: Custom Board Sort
Post by: lluks on October 05, 2008, 01:58:38 AM
Quote from: General_Naga on September 17, 2008, 03:14:18 PM
Would it be possible to have a yay or nay on a SMF 2.0 version?

Thanks

I agree, please update for 2.0
Title: Re: Custom Board Sort
Post by: kanza on October 24, 2008, 07:58:45 AM
how about the latest version? 1.1.6?
Title: Re: Custom Board Sort
Post by: dougsbrat on November 11, 2008, 05:30:30 PM
just installed on my forum.

SMF 1.1.6 and upgraded to v1.1.7
added package
works fine!
Title: Re: Custom Board Sort
Post by: sbt on November 14, 2008, 11:21:27 AM
Installed this on 1.1.7, it said all tests successful, and it has it as installed properly, but the option is not in boards modify anywhere.
No new drop boxes to select that have been mentioned in this topic.

Did have to use a workaround since 1.1.7 broke the ability to un-install mods correctly, edited packages.php per THIS (http://dev.simplemachines.org/mantis/view.php?id=2734) topic. Also did make a temp folder in packages just to get it to upload and install, however this mod is not in that temp folder, it is in packages separately.

If uninstall board sort is selected, it errors with
1. Execute Modification .Sources/MessageIndex.php Test failed
2. Execute Modification .Sources/ManageBoards.php Test failed
3. Execute Modification .Themes/default/ManageBoards.template.php Test failed
4. Execute Modification .Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification .Sources/Subs-Boards.php Test failed
6. Execute Modification .Sources/Load.php Test successful

Would really like to have this so our permissions remain alphabetized.
Title: Re: Custom Board Sort
Post by: taha116 on December 08, 2008, 12:18:48 AM
Can you make a beta version please i really want this mod!
Title: Re: Custom Board Sort
Post by: kragno on December 17, 2008, 04:08:30 AM
I'm really interested also to this mod, i get it, tried an installation on 1.1.7 and had this:

2.    Execute Modification    ./Sources/ManageBoards.php    Test failed

All other modifications went well.

What's the matter?

Thanks,
Stefano
Title: Re: Custom Board Sort
Post by: kragno on December 18, 2008, 10:14:15 AM
Any idea? :(
Title: Re: Custom Board Sort
Post by: marcie3 on December 31, 2008, 01:14:50 AM
Hi, We're using smf 1.1.7 with the default theme and uploaded this mod using the package manager.  The indication was that the installation was successful, however I don't see the option to set the board order.

It looks like someone else here has the mod successfully working with 1.1.7.

Any suggestions? Thanks
Title: Re: Custom Board Sort
Post by: marcie3 on January 06, 2009, 04:40:49 PM
I installed the mod again (smf 1.1.7) and now I see TWO drop-down boxes where I can select the sort option in the Admin/Boards/Modify options. There is no title/description to the left of the two boxes but I can select SUBJECT which is the sort order I want. There is no place to select ASCending or DEScending.

If I select using the bottom box, both boxes take the same selection. If I select using the top box, the selection doesn't take.

When I select SUBJECT, the sort order of the topics is REVERSE alphabetical, rather than alphabetical, which is what I want.

I accidentally deleted, rather than uninstalled the mod. Can you please help me correct the problem? (uninstall everything and start over or just get the sort order option to sort SUBJECT alphabetically).  I'll need simple steps as I'm obviously a newbie. thanks
Title: Re: Custom Board Sort
Post by: General_Naga on January 09, 2009, 06:48:27 AM
Any news on a SMF 2.0 version? Or is this mod project now dead?
Title: Re: Custom Board Sort
Post by: marcie3 on January 09, 2009, 01:45:40 PM
In case anyone else has the same problem of not seeing the ASC and DES choices.... I am using Firefox 2.0 or Safari on a Macintosh.  I now see the box where the ascending and descending order choices are, next to the "sort order" box,  but the titles (ASC and DES) don't show. I can still select the bottom choice (ASC) --which looks blank to me-- and now I have the alphabetical sort order I want in the board.
Title: Re: Custom Board Sort
Post by: ɔɔɔɔɔɔuɥoɾ on January 24, 2009, 03:09:57 PM
Quote from: General_Naga on January 09, 2009, 06:48:27 AM
Any news on a SMF 2.0 version? Or is this mod project now dead?

I'm looking for a SMF 2.00 beta 4 version of this great mod too,

i hope its not dead, its a great mod  :'(
Title: Re: Custom Board Sort
Post by: drhamad on January 30, 2009, 01:10:53 PM
I have the system itself working under SMF 2.0rc1 now, but the management portion is not working (I'm having to make changes directly in the database).  Trying to figure out why that is, haven't gotten it yet.
Title: Re: Custom Board Sort
Post by: ɔɔɔɔɔɔuɥoɾ on January 30, 2009, 02:31:33 PM
sweet..

well im willing to wait, thanks :)
Title: Re: Custom Board Sort
Post by: drhamad on January 30, 2009, 02:38:52 PM
Only one last bug to work out :)  If I don't finish it today (I have to leave early today) I will in the next couple days.

Uh, unless I'm lying and I don't, but ya know, I'll get it done ASAP.

Edit: It is now 100% working.  I just need to package it.  Perhaps tonight, but I can't be sure.
Title: Re: Custom Board Sort
Post by: ɔɔɔɔɔɔuɥoɾ on January 30, 2009, 02:45:19 PM
/me waits patiently and hopes its soon :)
Title: Re: Custom Board Sort
Post by: drhamad on January 31, 2009, 06:35:42 PM
To keep you all up to date, I have packaged this now and am just working out a last couple bugs in the package itself (the code is 100% working).  Hopefully it'll be submitted soon.
Title: Re: Custom Board Sort
Post by: GreenBean |HH| on February 10, 2009, 06:02:07 PM
I'm using 1.1.7 and have the same problem that no text is showing up except for the larger drop-down menu...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi302.photobucket.com%2Falbums%2Fnn83%2Farc362%2FPicture22.png&hash=6e262d175758c9b842593ec8ca94f62d2c76c7fe)
Path:  Admin>Boards>Modify (specific board)>scroll to bottom to see above image...


But the MOD works perfectly anyway.  I sorted by subject to get alphabetical order and decending order (bottom 'blank' space of the little drop down menu).

Here it is in use: http://www.hackhunters.com/forum/index.php?board=10.0

Thanks for a great mod... I've been wishing for this for months and finally made a 'feature request' which lead me to the mod.  Exactly what I was looking for.  peace.
Title: Re: Custom Board Sort
Post by: fotografo74 on February 13, 2009, 08:26:48 AM
Quote from: drhamad on January 31, 2009, 06:35:42 PM
To keep you all up to date, I have packaged this now and am just working out a last couple bugs in the package itself (the code is 100% working).  Hopefully it'll be submitted soon.
News for SMF 2 ?
Thanks!
Antonio
Title: Re: Custom Board Sort
Post by: drhamad on February 13, 2009, 03:14:12 PM
Quote from: fotografo74 on February 13, 2009, 08:26:48 AM
Quote from: drhamad on January 31, 2009, 06:35:42 PM
To keep you all up to date, I have packaged this now and am just working out a last couple bugs in the package itself (the code is 100% working).  Hopefully it'll be submitted soon.
News for SMF 2 ?
Thanks!
Antonio

It has actually been done for some time, and I also talked to akabugeyes and received approval to release it.  Unfortunately, I'm having problems with the simplemachines.org site when I try to submit it.  One of the support people is working with me to get it functional.

If somebody wants to test it on their site, I'll take the first person to PM me their e-mail address.  I make no warrantees as to whether or not it will work correctly or not - it works on my site, but that is the only place it has been tested.
Title: Re: Custom Board Sort
Post by: fotografo74 on February 27, 2009, 01:43:55 AM
Quote from: drhamad on February 13, 2009, 03:14:12 PM
Quote from: fotografo74 on February 13, 2009, 08:26:48 AM
Quote from: drhamad on January 31, 2009, 06:35:42 PM
To keep you all up to date, I have packaged this now and am just working out a last couple bugs in the package itself (the code is 100% working).  Hopefully it'll be submitted soon.
News for SMF 2 ?
Thanks!
Antonio

It has actually been done for some time, and I also talked to akabugeyes and received approval to release it.  Unfortunately, I'm having problems with the simplemachines.org site when I try to submit it.  One of the support people is working with me to get it functional.

If somebody wants to test it on their site, I'll take the first person to PM me their e-mail address.  I make no warrantees as to whether or not it will work correctly or not - it works on my site, but that is the only place it has been tested.
Thanks drhamad,
i sent you PM. This is very important Mod for my photography forum!
antonio
Title: Re: Custom Board Sort
Post by: drhamad on February 27, 2009, 02:33:49 PM
Do we have any other mod authors in this thread?  I want someone with some knowledge to test this package once, then I'll release it publicly.  PM me.
Title: Re: Custom Board Sort
Post by: drhamad on March 01, 2009, 03:25:04 PM
Good news everyone.  My version (that is compatible with SMF2) has now been submitted here: http://custom.simplemachines.org/mods/index.php?mod=1677

It isn't yet approved.  Once it is, we should move all discussion of that mod to that thread.
Title: Re: Custom Board Sort
Post by: marcie3 on March 01, 2009, 03:41:00 PM
We're not using SMF 2 yet but thank you in advance for keeping this mod up to date.

Quote from: drhamad on March 01, 2009, 03:25:04 PM
Good news everyone.  My version (that is compatible with SMF2) has now been submitted here: http://custom.simplemachines.org/mods/index.php?mod=1677

It isn't yet approved.  Once it is, we should move all discussion of that mod to that thread.
Title: Re: Custom Board Sort
Post by: drhamad on March 12, 2009, 01:41:51 PM
For SMF2 users, my mod based on this one is now available:
http://www.simplemachines.org/community/index.php?topic=298643.0
Title: Re: Custom Board Sort
Post by: fotografo74 on March 13, 2009, 04:11:52 AM
Quote from: drhamad on March 12, 2009, 01:41:51 PM
For SMF2 users, my mod based on this one is now available:
http://www.simplemachines.org/community/index.php?topic=298643.0
Thanks!!!
Antonio
Title: Re: Custom Board Sort
Post by: Sweetwater on March 13, 2009, 10:00:05 AM
Is there any versions available for 1.1.8

Thanks for any replies.  :)

Title: Re: Custom Board Sort
Post by: drhamad on March 13, 2009, 01:46:07 PM
Quote from: Sweetwater on March 13, 2009, 10:00:05 AM
Is there any versions available for 1.1.8

Thanks for any replies.  :)

Yes, the mod that thread you're in right now is for is for 1.1.x and below.
Title: Re: Custom Board Sort
Post by: Sweetwater on March 14, 2009, 09:22:27 AM
Quote from: drhamad on March 13, 2009, 01:46:07 PM
Quote from: Sweetwater on March 13, 2009, 10:00:05 AM
Is there any versions available for 1.1.8

Thanks for any replies.  :)

Thakyou for the reply. Came up with 3 errors after uploading. Guess there's some conflicts & I'm not good at getting around them.

Regards,

Sweetwater

Yes, the mod that thread you're in right now is for is for 1.1.x and below.
Title: Re: Custom Board Sort
Post by: Sweetwater on April 10, 2009, 11:30:32 AM


Yes, the mod that thread you're in right now is for is for 1.1.x and below.
[/quote]

Thanks for the reply.

Installed & got the following...

Type Action Description
1. Execute Modification ./Sources/MessageIndex.php Test successful
2. Execute Modification ./Sources/ManageBoards.php Test failed
3. Execute Modification ./Themes/default/ManageBoards.template.php Test failed
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification ./Sources/Subs-Boards.php Test failed
6. Execute Modification ./Sources/Load.php Test successful
7. Execute Code database.php

I guess there's a few conflicts with other mods. Thanks anyway, would have been a great mod for information topics on my site.

Regards,

sweetwater
Title: Re: Custom Board Sort
Post by: Michael3185 on April 29, 2009, 04:59:55 AM
I had all sorts (ha!) of problems installing it on 1.1.8, and had to destroy the forum and rebuild everything. I figured it was my own fault, as I got warnings too. But... I rebuilt the forum (it was new anyway), then tried installing the package through Admin>Packages again, got no warnings, and it installed just fine.

Only problem is, it doesn't appear to work properly. In a board with 4 topics in it, set to any sort at all in Admin>Boards, all just return to last-in at the top.

Any ideas, folks?
Title: Re: Custom Board Sort
Post by: cbhank on June 04, 2009, 10:10:40 AM
I also have 1.1.8 and the mod also doesn't seem to do its thing. Anyone else using 1.1.8 and having success?
Title: Re: Custom Board Sort
Post by: Moondust on June 19, 2009, 02:38:54 PM
I installed this mod on SMF version 1.1.9 and it seems to work fine except for the fact that the dropdown menu's for the sort selection are lacking visible characters for some options. But all options are there, just not all visible. By trying them all out I found out which option is what. I think that can be fixed by checking the code that was inserted line by line.

I don't feel like spending hours to figure it out since I am not very familiar with php coding. Maybe someone else is willing.
Title: Re: Custom Board Sort
Post by: drhamad on June 20, 2009, 02:13:45 PM
Are your language file edits done and correct?
Title: Re: Custom Board Sort
Post by: merlin2 on June 29, 2009, 08:21:15 PM
tried to install this on 1.1.9 board and it gets me an error

1.     Execute Modification     ./Sources/MessageIndex.php     Test successful
2.    Execute Modification    ./Sources/ManageBoards.php    Test failed
3.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
6.    Execute Modification    ./Sources/Load.php    Test successful
7.    Execute Code    database.php    

otherwise its a nice mod that should be build in already
running english language with some mods, nothing special

please fix it to 1.1.9
Title: Re: Custom Board Sort
Post by: codenaught on June 30, 2009, 12:51:34 AM
merlin2, I just ran a test install of the mod on a clean install of SMF 1.1.9 and the mod installed properly.

So most likely you have another mod that has edited the ManageBoards.php making the mod fail to apply the needed changes for that file.

If you attach your forum's Sources/ManageBoards.php I can take a look at it for you.
Title: Re: Custom Board Sort
Post by: drhamza on September 19, 2009, 10:56:07 PM
wow, this is the first time to see this mod, good job
i'm using smf 2 though :(, can't you make an smf 2 version?
Title: Re: Custom Board Sort
Post by: ɔɔɔɔɔɔuɥoɾ on September 20, 2009, 03:42:34 PM
Quote from: drhamza on September 19, 2009, 10:56:07 PM
wow, this is the first time to see this mod, good job
i'm using smf 2 though :(, can't you make an smf 2 version?

Im using this on SMF 2 RC1.2, latest version, also used on all over SMF 2 versions after BETA 4 works fine, use version emulation to install it

EDIT:

actually using this:
http://custom.simplemachines.org/mods/index.php?mod=1677
Title: Re: Custom Board Sort
Post by: drhamza on September 20, 2009, 06:34:05 PM
cooool, i'll try that now, thanks a lot for the tip john

edit: man, i think it's too risky, to which version you emulated your forum to install it?
Title: Re: Custom Board Sort
Post by: ɔɔɔɔɔɔuɥoɾ on September 20, 2009, 07:08:28 PM
ooh actually, I just looked at this mod, Dont install this one

Emulate to version 2 RC1 then install this one
http://custom.simplemachines.org/mods/index.php?mod=1677
Title: Re: Custom Board Sort
Post by: drhamza on September 20, 2009, 07:21:10 PM
oh, thanks again :D
Title: Re: Custom Board Sort
Post by: Dharshan on October 14, 2009, 03:27:57 AM
Thanks a lot for this mod, just the thing i wanned
Title: Re: Custom Board Sort
Post by: pittu on October 27, 2009, 11:23:58 PM
Once the display order is set, I don't want the user to modify the order. Is that possible? thank you.
Title: Re: Custom Board Sort
Post by: kai920 on November 11, 2009, 01:59:19 AM
Does this work with 2.0 RC2?
Title: Re: Custom Board Sort
Post by: Dharshan on November 17, 2009, 07:36:40 AM
can u soon produce a version for smf 2

for the moment i'll try the emulation mod..

keep up the good work mate
Title: Re: Custom Board Sort
Post by: Diamond1444 on November 18, 2009, 06:07:54 PM
This is the last mod I'm waiting for before updating.  It's a neccesity for us, so I hope it's updated for RC2.  :)
Title: Re: Custom Board Sort
Post by: Dharshan on November 22, 2009, 02:33:00 AM
ok guys, i'm in need of this mod, very very badly...... I'm using SMF2 RC2 at my forum, and when i try to install the mod manually,

there's no match in the sources/manageboard.php .....can any one help me with this.....

Thanks..
Title: Re: Custom Board Sort
Post by: drhamza on November 22, 2009, 02:49:35 AM
this mod works for RC1... http://custom.simplemachines.org/mods/index.php?mod=1677
i guess a little fixing will make it work with rc2...
Title: Re: Custom Board Sort
Post by: Dharshan on November 22, 2009, 03:09:25 AM
will give another try on this.. :)

Plz Plz.. make this auto install with SMF2 RC2
Title: Re: Custom Board Sort
Post by: pittu on December 25, 2009, 11:48:45 AM
Once the display order is set, I don't want the user to modify the order. Is that possible? thank you
Title: Re: Custom Board Sort
Post by: pittu on January 12, 2010, 11:20:25 AM
I changed the forum charset to UTF-8 from DEFAULT iso-8859-1

I can uninstall from old english files and reinstall on new utf-8 files through package manager?
Title: Re: Custom Board Sort
Post by: kai920 on January 12, 2010, 11:08:26 PM
Quote from: pittu on December 25, 2009, 11:48:45 AM
Once the display order is set, I don't want the user to modify the order. Is that possible? thank you

That's a good question, and to be honest I'm not sure of the answer. You can try search the rest of the SMF community for answers though as this is not strictly related to this mod - it's probably been asked before...
Title: Re: Custom Board Sort
Post by: pittu on January 14, 2010, 09:24:56 AM
Anybody answr my question please? (above)
Title: Re: Custom Board Sort
Post by: Dharshan on January 21, 2010, 07:36:36 AM
Quote from: pittu on January 14, 2010, 09:24:56 AM
Anybody answr my question please? (above)

NO, even with the board sort method is installed, there's no option to deactivate the forums basic sort methods..... u will need to edit the forum code manually to do this i guess
Title: Re: Custom Board Sort
Post by: hcfwesker on March 09, 2010, 02:57:43 PM
I keep getting an error when editing  the ./Sources/Subs-Boards.php  portion of the code.

I'm on SMF 1.1.11

Where I'm suppose to

FIND:

b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme,


Then REPLACE with:

b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme, b.sort_order, b.sort_method,


I get this error  when I check the admin panel as I go for errors.
ERROR CODE:
Unknown column 'b.sort_order' in 'field list'
File: /home/hcfweske/public_html/Sources/Subs-Boards.php
Line: 1481


I'm doing exactly as it tells me to do, I've made it this far in the code.

For now, I'm skipping this step and going to finish the last php file to edit, and see if anyone has an answer :)

Thank You.  :)

Title: Re: Custom Board Sort
Post by: drhamad on March 14, 2010, 09:28:40 AM
I think you've not created the column in the database, have you?
Title: Re: Custom Board Sort
Post by: 青山 素子 on March 16, 2010, 11:15:07 PM
I'm currently working on an update that will support 2.0 RC3. I'm also working with akabugeyes, the mod creator, to get the updated package posted to the modification page.
Title: Re: Custom Board Sort
Post by: 青山 素子 on March 18, 2010, 06:19:16 PM
Attached is an update for Custom Board Sort. This update was made with permission of the original author (akabugeyes).

Custom Board Sort v1.0.2:
Title: Re: Custom Board Sort
Post by: Dharshan on March 21, 2010, 02:42:15 AM
nice work  Motoko-chan,

thank you,  although am using another mod for my RC3 install, would like to thank you for the time you have spent on modifying this
Title: Re: Custom Board Sort
Post by: legostrat on June 04, 2010, 11:01:31 AM
I'm getting an error with the updated RC3 mod, it says

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 27' at line 21
File: /******/******/Sources/MessageIndex.php
Line: 403

Not sure what to do...
Title: Re: Custom Board Sort
Post by: stanaca on June 17, 2011, 02:49:44 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

on smf 2.0
Title: Re: Custom Board Sort
Post by: Inti31 on June 17, 2011, 03:20:51 PM
Nice, i installed it successful in my testboard (2.0 Gold)

Attached German language file
Title: Re: Custom Board Sort
Post by: codenaught on June 17, 2011, 04:38:29 PM
Quote from: stanaca on June 17, 2011, 02:49:44 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

on smf 2.0
Oops, sorry about that. I updated the package. You will need to redownload it. It should work now. I used the version emulate option to make it install on 2.0, and forgot that I had done so.

Before this change, I had just uploaded the package 青山 素子 had provided. Now it also tells the mod that it is okay to install on SMF 2.0 (in which it worked fine).

Quote from: Inti31 on June 17, 2011, 03:20:51 PM
Nice, i installed it successful in my testboard (2.0 Gold)

Attached German language file

Thanks, I assume it would be okay to included this in the mod package? :)

Title: Re: Custom Board Sort
Post by: Inti31 on June 18, 2011, 04:01:07 AM
Quote from: akabugeyes on June 17, 2011, 04:38:29 PM
Thanks, I assume it would be okay to included this in the mod package? :)
feel free to use it - if someone don't like the translation - there's not much to do
Title: Re: Custom Board Sort
Post by: hcfwesker on June 30, 2011, 01:11:30 AM
Quote from: stanaca on June 17, 2011, 02:49:44 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

on smf 2.0

I've got the same message, and even downloaded the latest version.  CustomBoardSort_1.0.2.tar.gz

I'm on SMF 2.0
Title: Re: Custom Board Sort
Post by: edchapman on December 01, 2011, 03:42:07 PM
I need this mod for the latest version of SMF (2.0.1). I have been using it for years and love it. However, I upgraded my forum today and lost it. Any word on where I can get this mod for 2.0.1?
Title: Re: Custom Board Sort
Post by: 青山 素子 on December 01, 2011, 04:04:00 PM
The 2.0 one works perfectly fine with 2.0.1
Title: Re: Custom Board Sort
Post by: edchapman on December 01, 2011, 11:41:32 PM
Where can I get that mod, or do I need to do a Manual Install?
Title: Re: Custom Board Sort
Post by: 青山 素子 on December 01, 2011, 11:48:16 PM
Modification's page, version 1.0.2.
Title: Re: Custom Board Sort
Post by: hcfwesker on December 02, 2011, 12:28:10 AM
Quote from: edchapman on December 01, 2011, 11:41:32 PM
Where can I get that mod, or do I need to do a Manual Install?

Download the package labeled CustomBoardSort_1.0.2.tar.gz on the MOD page .   Emulate your version to SMF 2.0 in the package manager.  and install.  Yes, any install errors that conflict with other installed packages will have to be installed manually.
Title: Re: Custom Board Sort
Post by: edchapman on December 03, 2011, 04:24:38 PM
I did the manual install.. painless.. :0) thanks for the help.

Really glad to have it back. It's crucial for my worship chord chart site worshipswap.com.
Title: Re: Custom Board Sort
Post by: Eclipse16V on December 29, 2011, 12:51:06 AM
Run nice on 2.0.2
Title: Re: Custom Board Sort
Post by: fullmoonya on January 05, 2012, 04:20:26 AM
its not installing on smf2.0.2 i emulated the version but doesn't seem to take effect. please update this sir.  :'(
Title: Re: Custom Board Sort
Post by: hcfwesker on January 05, 2012, 06:54:26 AM
Make sure you're downloading the right zip ...  CustomBoardSort_1.0.2.tar.gz

http://www.simplemachines.org/community/index.php?topic=98635.msg3220585#msg3220585
Title: Re: Custom Board Sort
Post by: Dream of Omnimaga on February 08, 2012, 11:01:03 PM
I wonder if there would be a way to sort topics by last post timestamp instead of last post ID and by topic start timestamp instead of topic start ID?

We plan to convert the posts from our old Invisionfree forums to Simplemachines format in the future, then merge them with our current board. However, we would prefer to not touch the current 225000 post IDs to prevent all site links from getting broken, so we would rather prefer to change the older 56000 post and topic IDs instead. However, SMF sorts topics by ID instead of date, so this would cause all older posts from prior 2008 to appear above everything else.

We did not attempt a merge before, because the Invisionfree board was deleted in January 2008 and Invisionfree support team took 4 years before processing the restoration/backup request.
Title: Re: Custom Board Sort
Post by: hcfwesker on February 09, 2012, 01:03:10 AM
Quote from: DJ Omnimaga on February 08, 2012, 11:01:03 PM
I wonder if there would be a way to sort topics by last post timestamp instead of last post ID and by topic start timestamp instead of topic start ID?

Yeah, thats in this MOD.  you can sort by Last Post (timestamp)  Ascending or Descending.  which would accomplish both what you're asking for.

There's also options for Alphabetical, most replies, Topic Id, Topic author, Most Viewed,  ( all can be put in ascending or descending order) ;)



Title: Re: Custom Board Sort
Post by: Dream of Omnimaga on February 09, 2012, 06:22:25 AM
Oh ok I thought only the option to sort by last post ID was in.
Title: Re: Custom Board Sort
Post by: bloodsong on February 19, 2012, 08:55:11 AM
heyas;

   a very essential mod, absolutely brilliant!  i have a forum to post my fanfic, and this lets me keep the story chapters in the proper order.

   i'm having one small problem.  i was using the "next" and "previous" topic links to page through the story without having to go back to the main board each time.  but because i'm sorting with the oldest at the top, the board things the "next" topic is the one older than the current (that is, my previous chapter), and vice versa.  in other words, "next" goes to the previous topic and "previous" goes to the next topic.
   which is not a big deal, if the users get used to hitting the opposite one to navigate.  BUT... when a topic has replies, hitting "previous" takes them to the last post on the next chapter, NOT the *first* post on the next chapter.

   so....  what i am wondering is... if it would be possible to update or create an add-on to this mod that would have the next/previous links actually know what order the posts were being sorted by, in a particular board, so that they know where to go, and in the proper order?  do you know what i mean?
Title: Re: Custom Board Sort
Post by: danialasghar on July 27, 2012, 03:09:16 PM
How can i install this mod in SMF 2.0.2? anyone please help!
Title: Re: Custom Board Sort
Post by: Srinib on August 18, 2012, 02:32:34 PM
Quote from: danialasghar on July 27, 2012, 03:09:16 PM
How can i install this mod in SMF 2.0.2? anyone please help!
You should be able to install it by Version emulation.
Title: Re: Custom Board Sort
Post by: Srinib on September 18, 2012, 03:34:27 PM
Can this MOD be modified to sort the boards/Child boards?
I have a requirement were just the child boards need to be sorted in an alphabetical order. But the posts in these child boards should not get affected by this MOD. And also the posts which are displayed along with those child boards(ie. posts of the parent board) also should not get affected.
Title: Re: Custom Board Sort
Post by: hcfwesker on September 18, 2012, 03:52:42 PM
Quote from: Srinib on September 18, 2012, 03:34:27 PM
Can this MOD be modified to sort the boards/Child boards?
I have a requirement were just the child boards need to be sorted in an alphabetical order. But the posts in these child boards should not get affected by this MOD. And also the posts which are displayed along with those child boards(ie. posts of the parent board) also should not get affected.

Ummm, why not just rearrange the Child Boards in alphabetical order by title under Modify Boards, by moving them until theyre in alphabetical oder?  And, this MOD lets you sort each boards and child board's topics individually in each boards modify board settings.

It only sorts the topic listings for each board, not the Boards/child boards themselves.
Title: Re: Custom Board Sort
Post by: Srinib on September 18, 2012, 04:11:59 PM
You are right(and that is what i am doing now). But the nature of my forum is a bit different. We have many child boards and going forward we are expecting the list to increase.

My only concern is that, while in the process of moving the boards up and down i may mess up things. I actually did that once. Fortunately, it was just a test forum then.
Title: Re: Custom Board Sort
Post by: hcfwesker on September 18, 2012, 06:54:38 PM
Quote from: Srinib on September 18, 2012, 04:11:59 PM
You are right(and that is what i am doing now). But the nature of my forum is a bit different. We have many child boards and going forward we are expecting the list to increase.

My only concern is that, while in the process of moving the boards up and down i may mess up things. I actually did that once. Fortunately, it was just a test forum then.

It's rather simple, just have 2 tabs open, so you can see which cub board the board you're moving in was originally under.  And, when you make NEW sub-boards, as long as you know that title, when creating it, you can select 'where' it'll appear with the other Boards/Sub-boards in the board create page.  Just select [AFTER - "board title"] the board it comes after alphabetically.  We do this with out blog board where each member gets their own sub-board.

Title: Re: Custom Board Sort
Post by: Srinib on September 19, 2012, 04:32:42 AM
Opening 2 tabs seems to be a good idea. While creating a new board/sub-board, i don't have any issue. Thanks a lot.
Title: Re: Custom Board Sort
Post by: Mojohaza1 on November 15, 2012, 02:05:40 PM
Is this compatible and safe to use with 2.0.2?
Title: Re: Custom Board Sort
Post by: codenaught on November 15, 2012, 04:51:19 PM
I would recommend trying to install the mod using the version emulate feature (http://wiki.simplemachines.org/smf/Package_manager#Advanced).

If the package manager reports no problems, then I would say it is safe to install the mod for 2.0.2. The only likely problem would be if code was changed recently for the SMF 2 branch that prevented the mod from installing, but if that happens, SMF will stop you from installing it anyway.
Title: Re: Custom Board Sort
Post by: Mojohaza1 on November 15, 2012, 07:26:43 PM
I'm getting everything passed except:

3.   Execute Modification   ./Sources/Subs-Boards.php   Test failed
   1.   Add After   ./Sources/Subs-Boards.php   Test successful
   2.   Replace   ./Sources/Subs-Boards.php   Test failed

Could be something wrong my theme, i'm not exactly sure what this means though.
Title: Re: Custom Board Sort
Post by: hcfwesker on November 15, 2012, 09:38:23 PM
Quote from: Mojohaza1 on November 15, 2012, 07:26:43 PM
I'm getting everything passed except:

3.   Execute Modification   ./Sources/Subs-Boards.php   Test failed
   1.   Add After   ./Sources/Subs-Boards.php   Test successful
   2.   Replace   ./Sources/Subs-Boards.php   Test failed

Could be something wrong my theme, i'm not exactly sure what this means though.

You prob have a MOD for boards that affects that line.

Find
b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.id_profile, b.redirect,

it will prob have some extra after it.  just add this at the end of the line
b.sort_order, b.sort_method,

Make the manual changes then install the MOD.
Title: Re: Custom Board Sort
Post by: say170 on November 06, 2013, 08:50:46 AM
I've just upgraded to 2.0.6 and now I'm getting:

Field 'sort_order' doesn't have a default value
File: ...\forum\Sources\Subs-Boards.php
Line: 792

I've removed and reinstalled the 1.0.2 mod (in 2.0 emulation mode) and I still get the error (just a different line number with it uninstalled).  Any ideas anyone please.

That section of code has:

$smcFunc['db_insert']('',
'{db_prefix}boards',
array(
'id_cat' => 'int', 'name' => 'string-255', 'description' => 'string', 'board_order' => 'int',
'member_groups' => 'string', 'redirect' => 'string',
),
array(
$boardOptions['target_category'], $boardOptions['board_name'] , '', 0,
'-1,0', '',
),
array('id_board')
);

Title: Re: Custom Board Sort
Post by: say170 on December 11, 2013, 04:50:57 AM
Can anyone help?
Title: Re: Custom Board Sort
Post by: margarett on December 11, 2013, 05:07:20 AM
Right now, is the MOD uninstalled?

"sort_order" is NOT a column of smf_boards in a default SMF installation. So it has to be a "leftover" from the MOD, if you really uninstalled it.

So, you should *BACKUP*, then head to phpmyadmin -> table "smf_boards" -> tab "Structure" -> mark the column "sort_order" and, at the bottom of the list, With selected: Drop
Title: Re: Custom Board Sort
Post by: say170 on December 11, 2013, 11:56:37 AM
Great, dropping the column manually fixed the problem.  Yes, it was uninstalled (according to the package manager anyway)

Thanks.
Title: Re: Custom Board Sort
Post by: SirAlahn on January 27, 2014, 01:56:40 AM
When I emulate 2.0, my board tells me that this mod will install without any errors.

However, when I attempt to install I'm given this error.

Notice: Undefined index: db_insert in /home/south176/public_html/Sources/Errors.php on line 139

Fatal error: Function name must be a string in /home/south176/public_html/Sources/Errors.php on line 139


I'm... not entirely sure how to proceed from here. To any who may respond with advice, thank you in advance.
Title: Re: Custom Board Sort
Post by: 青山 素子 on January 27, 2014, 11:47:37 AM
What version of SMF are you using?
Title: Re: Custom Board Sort
Post by: SirAlahn on January 29, 2014, 12:22:03 AM
I'm using 2.0.6. Reluctant to update to 2.0.7 since I just got all of my other mods to work.
Title: Re: Custom Board Sort
Post by: margarett on January 29, 2014, 04:41:23 AM
You don't *need* to update to 2.0.7 as it isn't a security release, and if you're not running PHP 5.5.

But IF 2.0.8 comes out, then you would need to go through 2.0.7 to reach 2.0.8. Then you will have problems again...
Therefore, I advise you to backup your current forum and try the patch update. If it doesn't fail, all is good. If you get "Test errors", DON'T continue and allow us to help you figure it out.
In another topic, not in this one :P
Title: Re: Custom Board Sort
Post by: SirAlahn on January 30, 2014, 12:51:10 AM
I successfully updated my board to 2.0.7.

However, I'm still receiving the same error when I try to install this mod while emulating 2.0.
Title: Re: Custom Board Sort
Post by: margarett on January 30, 2014, 07:04:11 AM
I have no idea what can cause that... I just installed it in my test board without issues...

Line 139 of Errors.php is this:

$smcFunc['db_insert']('',

Can you compare to yours?
Title: Re: Custom Board Sort
Post by: SirAlahn on January 31, 2014, 02:13:43 AM
Well, now I am well and truly baffled. My Errors.php line 139 looks just exactly the same as the one you posted.

I copied that entire chunk of code in case there was something else there that's out of order.

// Don't log the same error countless times, as we can get in a cycle of depression...
$error_info = array($user_info['id'], time(), $user_info['ip'], $query_string, $error_message, (string) $sc, $error_type, $file, $line);
if (empty($last_error) || $last_error != $error_info)
{
// Insert the error into the database.
$smcFunc['db_insert']('',
'{db_prefix}log_errors',
array('id_member' => 'int', 'log_time' => 'int', 'ip' => 'string-16', 'url' => 'string-65534', 'message' => 'string-65534', 'session' => 'string', 'error_type' => 'string', 'file' => 'string-255', 'line' => 'int'),
$error_info,
array('id_error')
);
$last_error = $error_info;
}
Title: Re: Custom Board Sort
Post by: binaymana on January 21, 2015, 12:10:16 AM
I need this mod badly but it does not work with my smf version.
Title: Re: Custom Board Sort
Post by: Beowulf1976 on May 23, 2017, 04:47:01 PM
I am running with 2.0.14 when I try to install it says the package doesn't work with my version, will you ever update to work with 2.0.14 or not?
Title: Re: Custom Board Sort
Post by: Steve on May 23, 2017, 05:40:12 PM
http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: sorts boards by "last edit" ?
Post by: tanawat on August 28, 2017, 04:29:44 AM
for prevent spam board by reply (for on top)

could you tell me variable of "last edit" ?

if i try modified mod by add "last edit". Will it be possible?

please.
Title: Re: Custom Board Sort
Post by: br360 on August 28, 2017, 12:43:05 PM
This mod doesn't give you the ability to sort by last edit if that's what you are asking. If you are trying to prevent spammers, take a look at this- https://wiki.simplemachines.org/smf/Spam_-_my_forum_is_flooded_with_spam,_what_can_I_do
Title: Re: Custom Board Sort
Post by: Portugal on October 13, 2020, 11:59:09 AM
Hi,

Is possibile to have this mod working good on 2.0.1.7 version? That´s very important mod to organize better the forums.


Thanks in advance
Portugal