SMF Post Prefix

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

Previous topic - Next topic

Diego Andrés

Only theoretical due to type/size limitation when using int, and I forgot to make the column unsigned back in the day.
I'll do that in the next update.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

Not sure which question you're answering ... I'm guessing the first one, how about the second?
DO NOT pm me for support!

Diego Andrés

I only saw one question when reading.
So for the second question: no it doesn't care about the topic subject

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

No worries and thanks Diego.
DO NOT pm me for support!

Diego Andrés

Currently and finally working on a big update for this mod.

Lemme know any suggestions or even new features that you might want.

And before it gets suggested for the bizillion time, adding multiple prefixes WILL NOT be a feature  :D

SMF Tricks - Free & Premium Responsive Themes for SMF.

landyvlad

It's awesome as it is so I can't think of much that needs doing!

The key is to make it really easy for admins to control what boards a prefix is shown in - by easy checkbox or something perhaps.
 
Maybe when creating a post in the 'select prefix' drop down - have it formatted in the colour/s the prefix is set up for?  (if possible)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

gevv

Hi,


Prefix appear on search results page

Prefix font-weight selection (underline bold, italic)

Prefix usage count (filter by prefix)

You cannot view this attachment.

Ignore Prefixes

You cannot view this attachment.

may be illogical or unnecessary, just an idea :)
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

landyvlad

If you use a prefix count please make it optional because I don't see a use case for it - seems confusing to me as site users will always ask what the number means.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Diego Andrés

Almost done with the update.


Quote from: gevv on March 03, 2022, 05:24:06 AMPrefix appear on search results page
No hooks for this, so I guess no

Quote from: gevv on March 03, 2022, 05:24:06 AMPrefix font-weight selection (underline bold, italic)
No because you can target the prefixes using css.

Quote from: gevv on March 03, 2022, 05:24:06 AMPrefix usage count (filter by prefix)
Probably no because would need to query each prefix for that. However, when filtering a prefix I could display the total if you think that's useful.

Quote from: gevv on March 03, 2022, 05:24:06 AMIgnore Prefixes
No  :P

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

landyvlad

Quote from: gevv on March 03, 2022, 05:24:06 AMIgnore Prefixes

Already has that - just go to package manager - SMF Post Prefix - uninstall.   :laugh:  :laugh:  :laugh:
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Diego Andrés

#351
4.0 - 16 March 2022
  • New Feature Added option to enable prefixes in the recent action.
  • New Feature When prefixes are enabled in the boardindex, you can decide to display the prefix for replies, or only first post.
  • New Feature Added the ability to display prefixes in the boardindex including last posts in the info center.
  • New Feature New option to disabled/enable the prefix in the linktree.
  • New Feature New option to choose between "select" and "radio select" for the prefix list when posting.
  • New Feature Added support for "Post Action".
  • Bug Fix Prefix managers can now access the admin area if that's their only admin permission.
  • Bug Fix Fixed HTML issue with duplicated id's in the prefixes, they are now using classes instead.
  • Improvement "No Prefix" option is no longer visible if the board requires a prefix.
  • New Feature Replaced colpick with coloris for picking a color.
  • Improvement Icon image/url now replaced with Icon Class.
  • Improvement Boards and Groups now each live in their own tables.
  • Improvement Improved performance.
  • Improvement Support for SMF 2.1

Notes:
- For updating, uninstall the old version and install the new one. DO NOT check the option to remove information. I tested the "upgrade" and it worked well, but you might want to also first test it locally (or somewhere else) so you don't lose your boards/groups. So make sure to backup your smf_postprefixes table, you will not lose the prefixes. This mod probably didn't work on pg before so I only tested MySQL, although it installs and works fine on PG now.

- The current release doesn't include any translation because they are outdated. Make sure to head over to Crowdin on this project page and help out!
PS: Russian, Turkish and Spanish are already up on crowdin, just need updating.

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

#352
Hi,

@Diego Andrés  thanks for the update great job

There is a problem when opening a new topic after the update, an prefix is selected.

You cannot view this attachment.

There is no problem with the fresh install.

You cannot view this attachment. 

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Diego Andrés

I'm just waking up so you might want to describe the issue because I don't see it  :laugh:

For once, what are the other options? "No prefix" is no longer an option if the prefix is required in the board.

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

Quote"No prefix" is no longer an option if the prefix is required in the board.

 :(

Members do not pay attention without forcing them to choose. They send direct post without prefix selection

Prefixs that are irrelevant to the topic multiply

Is there a solution to make it the same as before?
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Diego Andrés

Should be trivial I'll leave you the change in a bit.
By the way, you could use the new "radio" option which is more visual in case you think it would help.

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

Thanks. I tried radio but when the prefix was too much, the view was bad on mobile

You cannot view this attachment.
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Diego Andrés

In Sources/PostPrefix/Integration/Posting.php
You want to remove/comment this:
// Remove "No Prefix" if prefixes are required on this board
if (!empty($board) && !empty($modSettings['PostPrefix_prefix_boards_require']) && in_array($board, explode(',', $modSettings['PostPrefix_prefix_boards_require'])))
{
unset($context['posting_fields']['topic_prefix']['input']['options']['PostPrefix_select_prefix']['options']['none']);
unset($context['posting_fields']['topic_prefix']['input']['options']['none']);
}

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

Thanks. I tried Require prefix but opens topic without prefix selected

You cannot view this attachment.
You cannot view this attachment. 
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Shades.

@gevv sorry to change the subject real quick but what app do you use to make those animated gif's if you don't mind me asking?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: