Advertisement:

Author Topic: SMF Post Prefix  (Read 50236 times)

Offline landyvlad

  • Full Member
  • ***
  • Posts: 614
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #180 on: August 08, 2018, 02:15:16 AM »
You mean more than one prefix per thread title? That'd be a visual nightmare IMHO.
It's not designed as a tag system which seems like what you are wanting.
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.

To paraphrase Kindred: "There are no technical solutions to social problems."

Offline landyvlad

  • Full Member
  • ***
  • Posts: 614
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #181 on: August 08, 2018, 02:21:14 AM »
A note of thanks to Diego Andrés

Diego, aside from anti-spam,  this is hands down the most useful mod I have on my forum.  It's perfect for my forum with technical threads, how to's, and the sale forums as well.

Let's just say that I won't be upgrading to 2.1 until (and unless) a 2.1 version is ultimately available. :D

(Fully understand you'd want to wait until RC at least, before tackling that). This is just encouragement to assure you it will be worthwhile :)

Thanks again.



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.

To paraphrase Kindred: "There are no technical solutions to social problems."

Offline StarredSkies

  • Semi-Newbie
  • *
  • Posts: 41
    • Beasts of Beyond
Re: SMF Post Prefix
« Reply #182 on: August 13, 2018, 09:13:55 PM »
Yep, exactly what I meant. Visual nightmare indeed haha.

<333 thank you

Offline Dreadaxe

  • Semi-Newbie
  • *
  • Posts: 69
  • Gender: Male
Re: SMF Post Prefix
« Reply #183 on: August 14, 2018, 05:59:09 AM »
Side note: Is there any possibility of adding the option to have more than one prefix in the future? This would be SUPER helpful.
Approved this idea too

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,102
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #184 on: August 14, 2018, 03:54:09 PM »
I’ve thought about the multiple prefixes.
It’s possible but that would turn it into a label mod or similar.
Could be included as a feature or a whole different thing.

A note of thanks to Diego Andrés

(Fully understand you'd want to wait until RC at least, before tackling that). This is just encouragement to assure you it will be worthwhile :)

Thanks again.

Thanks a lot.
A version for 2.1 is already done for the most part since this mod uses hooks, but of course it’s been a while so I’ll have to update it again. But yes, won’t be available until the RC version of 2.1 :P



About the issue mentioned I haven’t been ale to reproduce it but there might be something so I’ll try to do some more tests.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline jack208

  • Semi-Newbie
  • *
  • Posts: 42
Re: SMF Post Prefix
« Reply #185 on: August 14, 2018, 09:55:06 PM »
About the issue mentioned I haven’t been ale to reproduce it but there might be something so I’ll try to do some more tests.
Would getting access to my site helps?

Offline StarredSkies

  • Semi-Newbie
  • *
  • Posts: 41
    • Beasts of Beyond
Re: SMF Post Prefix
« Reply #186 on: August 17, 2018, 06:33:58 PM »
That'd definitely be a helpful modification... maybe in the future? ;)

Offline Cathal

  • Semi-Newbie
  • *
  • Posts: 24
Re: SMF Post Prefix
« Reply #187 on: September 07, 2018, 04:59:41 PM »
Is it possible to remove the option of no prefix so they have to select a prefix - I have a coupla forums where they should select a prefix

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,102
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #188 on: September 07, 2018, 09:44:13 PM »
Is it possible to remove the option of no prefix so they have to select a prefix - I have a coupla forums where they should select a prefix

Put those boards in the require prefix section and it will force users to select one.

Regards

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Cathal

  • Semi-Newbie
  • *
  • Posts: 24
Re: SMF Post Prefix
« Reply #189 on: October 15, 2018, 04:12:59 PM »
Is it possible to remove the option of no prefix so they have to select a prefix - I have a coupla forums where they should select a prefix

Put those boards in the require prefix section and it will force users to select one.

Regards

I have the board selected under that section but still get No Prefix option

Offline GL700Wing

  • Full Member
  • ***
  • Posts: 437
  • Gender: Female
Re: SMF Post Prefix
« Reply #190 on: October 15, 2018, 05:38:38 PM »
Is it possible to remove the option of no prefix so they have to select a prefix - I have a coupla forums where they should select a prefix
Yes - I've done this on my forums for the same reason (it didn't make sense to me to have a 'No Prefix' option if a prefix is required - as opposed to being optional - for a specific board).

In ./Themes/default/Post.template.php
Find:
Code: [Select]
<select name="id_prefix" id="id_prefix">
<optgroup label="', $txt['PostPrefix_select_prefix'], '">
<option value="0"', ($context['id_prefix'] == 0) ? ' selected' : '' ,'>', $txt['PostPrefix_prefix_none'], '</option>';


Replace With:
Code: [Select]
<select name="id_prefix" id="id_prefix">',
// Only add the "[No Prefix]" option if a prefix is NOT required.
($_SESSION['require_prefix'] == 0) ? '<optgroup label="' . $txt['PostPrefix_select_prefix'] . '">
<option value="0"' . ($context['id_prefix'] == 0) ? ' selected' : '' . '>' . $txt['PostPrefix_prefix_none'] . '</option>' : '';

« Last Edit: October 15, 2018, 06:04:32 PM by GL700Wing »

Offline Cathal

  • Semi-Newbie
  • *
  • Posts: 24
Re: SMF Post Prefix
« Reply #191 on: October 16, 2018, 01:19:26 PM »
Thanks GL700Wing, that's done the job