News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Topic Prefix Lite Mod

Started by Nibogo, April 19, 2009, 10:27:22 AM

Previous topic - Next topic

petesky

Is there a way to change the prefix ordering ? Instead id_prefix which is the id number i would like to sort after prefix (which is text). I need "KMS 1A" to be before "KMS 1B" but 1B has id 0 etc.





Joker™

but what if someone has too many prefixes :o ....
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

petesky

So it seems the sorting is here :

// Load the Prefix
    $dbresult = $smcFunc['db_query']('', '
SELECT
id_prefix, prefix, permissions, id_boards
FROM {db_prefix}prefix
ORDER BY id_prefix');

But changing this to ORDER by prefix; makes no change. Seems that it's combined with usergroou permission ?!


petesky

Quote from: NIBOGO link=topic=305579.msg2484565#msg2484565 date=1265134481
In that case you manually change the id of the prefix using a MySQL Administrator like phpmyadmin
/quote]


loooool - not really ?!?!?! ? If you have a lot of Prefixes it should be possible to sort them after TEXT which is more suitable.

Arantor

Even though there is a performance cost attached in doing that?
Holder of controversial views, all of which my own.


petesky

If so - doesn't matter - my board has only 100 users at the moment and it will grow up to maybe 1000. Thats all. I had 38 users in max online so performance isn't a problem at the moment. Maybe SMF will have a prefix option in their future core ^^ when it becomes a pf question :-)

Arantor

As I said to you elsewhere I really can't see it becoming a core feature - the demand just isn't there to support it being a core feature, IMHO.
Holder of controversial views, all of which my own.


malcomxar

Hey, I have been trying to install this mod on my forum (2.0 RC2) ant I get this error

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

I tryed to install it manually but the pakcage parser says

"Sorry, but this modification does not appear to be compatible with the selected version."

Can you take a look at it please :)

Thanks!

Arantor

Um....

Quote from: the mod's pageCompatible With: 2.0 RC1, 2.0 RC1-1, 2.0 RC1.2

Doesn't say 2.0 RC2. Any RC2 version is unofficial and documented in this thread.
Holder of controversial views, all of which my own.


Nibogo

Quote from: petesky on February 02, 2010, 02:08:37 PM
If so - doesn't matter - my board has only 100 users at the moment and it will grow up to maybe 1000. Thats all. I had 38 users in max online so performance isn't a problem at the moment. Maybe SMF will have a prefix option in their future core ^^ when it becomes a pf question :-)

I don't see this as a core feature it's better as a mod

malcomxar

Quote from: Arantor on February 02, 2010, 02:51:09 PM
Um....

Quote from: the mod's pageCompatible With: 2.0 RC1, 2.0 RC1-1, 2.0 RC1.2

Doesn't say 2.0 RC2. Any RC2 version is unofficial and documented in this thread.

Hey Arantor I read this here > http://custom.simplemachines.org/mods/index.php?mod=1752  ::) ::)
QuoteFeatures:
o Support SMF 2.0 RC2: v1.2
o Support SMF 2.0 RC1: v1.1

Am I missing somehthing? (sorry if i did  :-[)

Nibogo

Quote from: malcomxar on February 02, 2010, 06:00:59 PM
Quote from: Arantor on February 02, 2010, 02:51:09 PM
Um....

Quote from: the mod's pageCompatible With: 2.0 RC1, 2.0 RC1-1, 2.0 RC1.2

Doesn't say 2.0 RC2. Any RC2 version is unofficial and documented in this thread.

Hey Arantor I read this here > http://custom.simplemachines.org/mods/index.php?mod=1752  ::) ::)
QuoteFeatures:
o Support SMF 2.0 RC2: v1.2
o Support SMF 2.0 RC1: v1.1

Am I missing somehthing? (sorry if i did  :-[)

Yep, that I change the Supported Versions on the Mod Page but not in the readme ;)

petesky

hmmm - Nibogo - so if you are active here please tell us if it's possible to sort after prefix instead id_prefix ! Thank you.

Nibogo

#135
I'm working on a new version of this mod finally with color on prefix and order for prefix! :) Plus option to set an image as a prefix and choose if the prefix is Bold, Underlined or Italic

adbrad

Quote from: NIBOGO on February 13, 2010, 05:33:41 PM
I'm working on a new version of this mod finally with color on prefix and order for prefix! :) Plus option to set an image as a prefix and choose if the prefix is Bold, Underlined or Italic

have to try this out when its released thankyou

petesky

There is a mini bug even when editing a topic it will add extra whitespace if no prefix is selected and the whitespace grows up with every edit.
It should also set the correct prefix when editing and not the default one.

Am'

Quote from: NIBOGO on February 13, 2010, 05:33:41 PM
I'm working on a new version of this mod finally with color on prefix and order for prefix! :) Plus option to set an image as a prefix and choose if the prefix is Bold, Underlined or Italic


yeahhhhhhhhhhhhhhhh very nice

i cant wait  :) :) :)
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

malcomxar

Hey nibogo will this one be compatible with 2.0 RC2?

Looking forward for it ^^

Advertisement: