News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Post Prefix

Started by Diego Andrés, May 11, 2015, 10:37:35 PM

Previous topic - Next topic

Steve

I do not have the options to minimize files enabled.

I didn't think there was a problem ... I just wanted to make some cosmetic adjustments. The first image is how it normally looks and the second is how it looks with the changes in the code I posted above. Is there a better way to do it?

You cannot view this attachment. You cannot view this attachment.
DO NOT pm me for support!

Diego Andrés

Oh in that case it's fine, it looks good to me  :)

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Cool beans. Thanks Diego.

One more question, if I wanted to put a colon ( : ) at the end of the prefix, how would I do that?
DO NOT pm me for support!

Diego Andrés

Either in the name of the prefix or using css

span.postprefix-id::after { content: ":" }Or if it's for all:
span.postprefix-all::after { content: ":" }

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Awesome. Thanks again Diego.  :)
DO NOT pm me for support!

gevv

Quote from: Diego Andrés on June 20, 2022, 10:13:12 AM4.0.6 - 20 June 2022
  • Bug Fix Fixed wrong total of messages when displaying prefix for all messages.

4.0.5 - 20 June 2022
  • Improvement Remove 'redirect' boards from the list when editing/adding.
  • Improvement Clear cache when saving/editing prefixes.


Thanks @Diego Andrés
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Diego Andrés

4.0.7 - 29 June 2022
  • Bug Fix Fixed inconsistent listing of groups when editing.
  • Improvement Sort groups by visibility too.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Thanks Diego. There's another issue though.

I combined two of my boards this morning and now I have to go through and re-save every prefix so they all show up where they're supposed to in the dropdown list.
DO NOT pm me for support!

Diego Andrés

Quote from: Steve on June 29, 2022, 02:15:19 PMso they all show up where they're supposed to in the dropdown list
Not sure I follow this bit, what do you mean?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

For example, the prefixes that were ticked to show up in the dropdown list when making a post in each original board have to be re-saved in order for them to show up in the now combined board's dropdown list.
DO NOT pm me for support!

Diego Andrés

I don't think that's a bug. It has always worked like that, you have to setup the prefixes for new boards.
There's no quick-add prefix for boards, yet.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

But when I modify a prefix and look at the boards ticked, the combined board is already ticked.

You're saying I need to re-save the prefix anyway?
DO NOT pm me for support!

Diego Andrés

I wouldn't know. What are the steps to reproduce this situation?
If you clear cache, does it change?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Let's say I have 4 boards:

A
B
C
D

I move all the posts from board D to board C, then delete board D. All the prefixes that were initially available in board C need to be re-saved to be available again in board C.

As for the forum cache, I just cleared it and it appears to have cleared up the problem. I will do some more testing and get back to you.  :)
DO NOT pm me for support!

Steve

I haven't been able to replicate the problem yet so I'll consider it solved.

There is one issue I'm wondering if it could be changed. When clicking the 'Name' heading to sort the prefixes, they always sort in descending order by default (last name alphabetically to first name). Can that be changed to ascending order?

Btw, this has become one of my favorite mods.  :)
DO NOT pm me for support!

Diego Andrés

When using the filter box?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Um, what filter box?

I go to Admin -> Topic Prefixes which gives me a list of all my prefixes. If I click on 'Name' just above the prefixes, they're sorted in descending order.

You cannot view this attachment.
DO NOT pm me for support!

Diego Andrés

4.0.8 - 08 July 2022
  • Bug Fix Fixed name sorting in prefix list.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Thanks Diego. Works perfectly.  ;D
DO NOT pm me for support!

Diego Andrés

I actually found another issue.
Should be fixed now.

4.0.9 - 08 July 2022
  • Bug Fix Fixed another issue displaying prefixes in boardindex and recent topics.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: