Page Index Toggle Pages: [1] 2  Send TopicPrint
Locked Topic [BETA] Sort Message Index (Read 7906 times)
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
[BETA] Sort Message Index
Mar 6th, 2002 at 3:59pm
 
As requested by Homey:

Here is a mod which sorts the message index of selected boards alphabetically by subject. After installing the mod, go to the "Edit Boards" section of the Admin area, and select which boards you wish to be sorted.

If you have the "Announcement Boards" mod install, use the compatible version.

A zip file containing both versions can be downloaded from HERE!
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Homey
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 291
Joined: Jan 11th, 2002
Gender: Male
Re: [BETA] Sort Message Index
Reply #1 - Mar 6th, 2002 at 4:54pm
 
lol - you are too fast for me  Grin

Thanx a lot will try it and report ...

*EDIT*

IT WORKS GREAT - Must modify something because I have 3 other mods installed that writes infos in the $curboard.dat file but this was no problem .. Now it works great - When I found anything that dont works I will report but I think that all will work

thanx again



  

Greetz to all coders and Mod Writers !
Back to top
WWW  
IP Logged
 
Homey
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 291
Joined: Jan 11th, 2002
Gender: Male
Re: [BETA] Sort Message Index
Reply #2 - Mar 6th, 2002 at 10:47pm
 
OK that was step one *lol*

When you have time and dont know what to code here is step two :

Possible to update the mod that Users can select how the Threads are shown. IŽve seen this Option in a VB Board. There every User can select how the messageindex is sorted

There is an extra bar at the bottom of the messageindex where you can select

sort

  • Last Posting
  • Alphabetical
  • Hits
  • Topic Rating
  • Replys


and the 2nd option in this Board was that you can select that only Threads are shown from

  • Last Day
  • Last 3 Days
  • Last 5 Days etc


Here a screenshot of that menu IŽve seen

<< click me>>




I know its hard to do . Its not possible that anybody write a mod like this but when anyone of you has no ideas what to do or means that this is an nice feature for yabb he can do this

Thanx for listening

and now




Any Ideas, Feedback ?
  

Greetz to all coders and Mod Writers !
Back to top
WWW  
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Sort Message Index
Reply #3 - Mar 7th, 2002 at 12:36am
 
Step one? How many of these steps are there?


So, you don't want an option in the "Edit boards" admin area? you want a dropdown list in the message index! - you could have told me earlier  Roll Eyes

Adapting the sort routine to sort by different criteria shouldn't be a problem - it's just a question of finding where the relevent information is stored.

The second drop-down box should also be possible - simply mask out any thread older than xx days. This may cause a problem for paging - I'll have to look at the code.

Questions (open to everyone):
  • What sort options do you want?
  • What "age" filters do you want?
  • Where do you want the drop-down lists put?
  • Do you want an admin option to turn sorting off?
  • Do you want an "Edit Boards" option? Default sort order for each board? Enable sorting on selected boards only? What?
  • Would you like a cherry on that?


I'll have a go at the weekend, so is there anything else you'd like before I start?
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Sort Message Index
Reply #4 - Mar 7th, 2002 at 12:40am
 
Homey wrote on Mar 6th, 2002 at 4:54pm:
Must modify something because I have 3 other mods installed that writes infos in the $curboard.dat file but this was no problem ..

Which mods? Or are they something you altered?
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Shoeb Omar
God Member
*****
Offline


Mod Writer

Posts: 5665
Location: San Diego
Joined: Jun 29th, 2001
Gender: Male
Re: [BETA] Sort Message Index
Reply #5 - Mar 7th, 2002 at 12:50am
 

  • What sort options do you want?

    - Anything really Wink Include reversing message index, age, # replies...
  • What "age" filters do you want?

    3 days, week, month
  • Where do you want the drop-down lists put?

    i suck at making things look nice Wink
  • Do you want an admin option to turn sorting off?

    if u offer it of course we do Wink
  • Do you want an "Edit Boards" option? Default sort order for each board? Enable sorting on selected boards only? What?

    as many bells and whistles as u can fit in Wink Tongue
  • Would you like a cherry on that?

    prefer strawberries Grin


So, is there anything else you'd like before I start?

- hosting Wink
  

YaBB SP2 BETA!
Now taking pay jobs in PHP or Perl.  Contact me for details.
Back to top
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: [BETA] Sort Message Index
Reply #6 - Mar 7th, 2002 at 12:59am
 
*LOL*
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Homey
Senior Member
****
Offline


I love YaBB 1 Gold!

Posts: 291
Joined: Jan 11th, 2002
Gender: Male
Re: [BETA] Sort Message Index
Reply #7 - Mar 7th, 2002 at 10:06pm
 
hey cool  Grin  8)

2 gods which heard me when I prayed ..  :

@BHRA webmaster

Quote:
So, you don't want an option in the "Edit boards" admin area? you want a dropdown list in the message index! - you could have told me earlier  


No that was OK, thats that was I requested. But i saw the options i descriped now at a other Board and found it very funny and usefull ...

Quote:
What "age" filters do you want?


Sort options:
  • Thread Title (alphabetical)
  • Last post time
  • Number of replies
  • Number of views
  • ?Topic Rating?

    Quote:
    What "age" filters do you want?
  • all
  • last day
  • Last 2 days
  • Last 5 days
  • Last 10 days
  • Last 20 days
  • Last 30 days

    Quote:
    Where do you want the drop-down lists put?


    like in my screenshot << here >> under the message index

    Quote:
    Do you want an admin option to turn sorting off?


    NO I dont need it

    Quote:
    Do you want an "Edit Boards" option? Default sort order for each board? Enable sorting on selected boards only? What?


    When possible and not hard to do than YES. When hard or much to do NO  Tongue

    Quote:
    Would you like a cherry on that?


    whats a cherry ?

    *** I am from germany and sleeped in school in english lessons ***

    Quote:
    I'll have a go at the weekend, so is there anything else you'd like before I start?


    COOOOOL have you now all infos you need from me ?

    Quote:
    Which mods? Or are they something you altered


    no ideas  Grin I realy dont know it. will look for this and say it. I have now 81 Hacks installed. Hard for a overwiev which Mods are installed  8)

    @omario

  •   

    Greetz to all coders and Mod Writers !
    Back to top
    WWW  
    IP Logged
     
    Shoeb Omar
    God Member
    *****
    Offline


    Mod Writer

    Posts: 5665
    Location: San Diego
    Joined: Jun 29th, 2001
    Gender: Male
    Re: [BETA] Sort Message Index
    Reply #8 - Mar 7th, 2002 at 10:41pm
     
    im glad my message was short Grin
      

    YaBB SP2 BETA!
    Now taking pay jobs in PHP or Perl.  Contact me for details.
    Back to top
    IP Logged
     
    BHRA Webmaster
    God Member
    *****
    Offline


    Mod Author of the Year
    2002

    Posts: 5238
    Location: BHRA Headquarters
    Joined: Jan 18th, 2002
    Gender: Male
    Re: [BETA] Sort Message Index
    Reply #9 - Mar 7th, 2002 at 11:43pm
     
    Does anyone else have anything to add?


    Quote:
    whats a cherry?

    cherry n., a small round red fruit containing a hard stone, usually found on the top of expensive ice-cream sundaes. Grin


      


    World Domination, one smiley at a time!
    Back to top
     
    IP Logged
     
    Homey
    Senior Member
    ****
    Offline


    I love YaBB 1 Gold!

    Posts: 291
    Joined: Jan 11th, 2002
    Gender: Male
    Re: [BETA] Sort Message Index
    Reply #10 - Mar 7th, 2002 at 11:56pm
     
    *lol*
      

    Greetz to all coders and Mod Writers !
    Back to top
    WWW  
    IP Logged
     
    BHRA Webmaster
    God Member
    *****
    Offline


    Mod Author of the Year
    2002

    Posts: 5238
    Location: BHRA Headquarters
    Joined: Jan 18th, 2002
    Gender: Male
    Re: [BETA] Sort Message Index
    Reply #11 - Mar 8th, 2002 at 7:01pm
     
    If I include an "Edit Boards" option, I can see it causing compatibility problems with other mods that write information to the boards.dat file (unless I create yet another data file)


    I was wondering, can anyone tell me why the information the boards.dat files is in the format:
        data1
        date2
        date3

    and not like in Settings.pl:
        $Variable1 = data1;
        $Variable2 = data2;
        $Variable3 = data3;


    The second format would eliminate mod compatibility problems because the order of the information within the .dat file doesn't matter. The same can also be said for the .dat files which store the uses profile information - using the second format would make adding additional profile information easier!

    Changing the format now will probably cause more problems than it solves, I was just curious as to why it is the way it is?
      


    World Domination, one smiley at a time!
    Back to top
     
    IP Logged
     
    Homey
    Senior Member
    ****
    Offline


    I love YaBB 1 Gold!

    Posts: 291
    Joined: Jan 11th, 2002
    Gender: Male
    Re: [BETA] Sort Message Index
    Reply #12 - Mar 8th, 2002 at 7:11pm
     
    1. Quote:
    I can see it causing compatibility problems with other mods that write information to the boards.dat file (unless I create yet another data file)  


    Yes thats the best what you can do. it realy sucks when you have many mods installed which store infos in the board.dat file. When you have 5 Mods installed and remove one you must change all the other 4 Mods that they working.

    2. Quote:
    The second format would eliminate mod compatibility problems because the order of the information within the .dat file doesn't matter


    Hm yes thats right ...

    3. Quote:
    Changing the format now will probably cause more problems than it solves,


    Also right ...
    4. Quote:
    How many of these steps are there?


    1. Make  the simple alphabetical Mod
    2. Make the updated Mod which advanced Options i descriped
    3. Fix Bugs when added in your mod
    4.
    5.
      

    Greetz to all coders and Mod Writers !
    Back to top
    WWW  
    IP Logged
     
    BHRA Webmaster
    God Member
    *****
    Offline


    Mod Author of the Year
    2002

    Posts: 5238
    Location: BHRA Headquarters
    Joined: Jan 18th, 2002
    Gender: Male
    Re: [BETA] Sort Message Index
    Reply #13 - Mar 8th, 2002 at 9:47pm
     
    Steps 1-4 sound OK, not sure about step 5 Undecided
      


    World Domination, one smiley at a time!
    Back to top
     
    IP Logged
     
    Homey
    Senior Member
    ****
    Offline


    I love YaBB 1 Gold!

    Posts: 291
    Joined: Jan 11th, 2002
    Gender: Male
    Re: [BETA] Sort Message Index
    Reply #14 - Mar 8th, 2002 at 9:53pm
     
    IŽll do it for you  Grin You make Step 1-3 and I combine step 4 & 5  8)
      

    Greetz to all coders and Mod Writers !
    Back to top
    WWW  
    IP Logged
     
    Page Index Toggle Pages: [1] 2 
    Send TopicPrint