Advertisement:

Author Topic: SMF Post Prefix  (Read 61360 times)

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 890
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #200 on: April 09, 2019, 01:54:10 AM »
FYI I did up this guide on using prefixes from a forum member's point of view (i.e. user rather than admin)
http://gsx1400owners.org/forum/index.php?topic=482.0

Diego feel free to copy it all, or steal the images or whatever, if they are of any use to you.

For that matter - anyone can if they like, if it helps explain it to their members.

Cheers
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."

No hack nor blackhats, just persistent asshats.

Offline tjrpcaft

  • Semi-Newbie
  • *
  • Posts: 31
Re: SMF Post Prefix
« Reply #201 on: April 11, 2019, 04:02:45 AM »
Is it possible to aloud the users to change the prefixe of past posts?

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 890
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #202 on: April 11, 2019, 08:14:45 AM »
If they have permission to edit the post then they can change the prefix. Otherwise no.
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."

No hack nor blackhats, just persistent asshats.

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,410
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #203 on: July 15, 2019, 01:41:54 AM »
Version for 2.1 will be out this year I promise  :-[

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 890
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #204 on: July 15, 2019, 10:18:26 AM »
Version for 2.1 will be out this year I promise  :-[



All good mate - life gets in the way of these things I know.
It'll come when it comes, but it really is one of the most useful (and most used) mods on my forum.  Great work.
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."

No hack nor blackhats, just persistent asshats.

Offline dendemeier

  • Semi-Newbie
  • *
  • Posts: 15
Re: SMF Post Prefix
« Reply #205 on: August 14, 2019, 04:40:55 AM »
Is there a way, to show the prefix within the recent posts?

I am working with post prefixes in the forum, but unfortunately the prefix aren´t shown there. So it get´s a little bit confusing.

I tried to edit the Boardindex.template.php for my theme, but nothing worked.
« Last Edit: August 14, 2019, 05:13:16 AM by dendemeier »

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,410
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #206 on: August 15, 2019, 12:06:12 PM »
Do you mean the recent posts in the boardindex?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline dendemeier

  • Semi-Newbie
  • *
  • Posts: 15
Re: SMF Post Prefix
« Reply #207 on: August 16, 2019, 02:55:15 AM »
Yes, exactly.

In our forum we have 2 subboards with exactly the same topic title within the subboards. (It´s a forum for a sim racing league with 2 divisions). In the recent posts section at the board index we want to see at first sight, which post belongs to which subboard. That´s why we are using the postprefix.

So the topic titles look like this:

[Prefix 1] Topic Name
[Prefix 2] Topic Name

Within the recent posts it is both shown as
Topic Name
Topic Name
and therefore you can´t recognize at the first sight, which topic belongs to which subboard.

Fun Fact: When i opend a new topic, the prefix is shown within the recent posts. When somebody answered to a post, the prefix is gone  ???

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,410
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #208 on: August 16, 2019, 03:18:14 AM »
It’s because only the first post (the topic) gets a prefix.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline dendemeier

  • Semi-Newbie
  • *
  • Posts: 15
Re: SMF Post Prefix
« Reply #209 on: August 16, 2019, 03:27:29 AM »
Ah alright. Can I change it anyhow, so that every post will get a prefix?

Or is it possible to show not the post title but the topic title within the recent topics?

Offline chinaren

  • Jr. Member
  • **
  • Posts: 315
  • Gender: Male
    • The Opus Path
Re: SMF Post Prefix
« Reply #210 on: November 03, 2019, 07:32:15 AM »

This is a great mod, exactly what I need!  Thank you!  The only thing is, my new board is RC2, or whatever the latest release is, so...

Version for 2.1 will be out this year I promise  :-[


Pleeeese!   ;D
The Opus Path - The Next Generation of the Written Word

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 890
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #211 on: December 18, 2019, 12:21:33 AM »
Diego I see the changelog hasn't ben updated since 2018 (bit much more important, the mod has :) )

In any event that leas me to ask - what PHP version is this mod compatible with? 7.1? 7.2 ?
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."

No hack nor blackhats, just persistent asshats.

Offline GL700Wing

  • Full Member
  • ***
  • Posts: 482
  • Gender: Female
Re: SMF Post Prefix
« Reply #212 on: December 18, 2019, 01:01:00 AM »
Diego I see the changelog hasn't ben updated since 2018 (bit much more important, the mod has :) )

In any event that leas me to ask - what PHP version is this mod compatible with? 7.1? 7.2 ?

From php 7.1 going away soon:

SMF 2.0.15 will never support php 7.2. we dont apply patches to already existing releases.

we are working on SMF 2.0.16 which will have basic support for php 7.2.

we dont have a release date yet for 2.0.16. it will be ready when it is ready.

Life doesn't have to be perfect to be wonderful ...

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 890
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #213 on: December 19, 2019, 08:18:41 PM »
Umm, let me clarify mate.

I know that about SMF 2.0.x

I gather that the mod is being rewritten to be SMF 2.1.x compatible, and am therefore wondering what version of PHP will be required to ensure the Post Prefix mod works.

Assuming that's even relevant, of course. Maybe it's just implied that the new mod version for SMF2.1 (pending) will be compliant with 7.? and more.
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."

No hack nor blackhats, just persistent asshats.

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,410
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #214 on: December 27, 2019, 02:37:26 PM »
The mod only makes some tweaks and file edits (some avoided using hooks) so really would be compatible to whatever version SMF 2.1 is compatible with at the time is released or upgraded.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 890
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: SMF Post Prefix
« Reply #215 on: January 04, 2020, 10:23:36 AM »
Thanks Diego (and GL700wing)
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."

No hack nor blackhats, just persistent asshats.

Offline Gandrel

  • Semi-Newbie
  • *
  • Posts: 33
    • The Outer Rim Garrison Forum
Re: SMF Post Prefix
« Reply #216 on: January 12, 2020, 09:23:35 PM »
Hey everyone. I'm trying to figure out why I'm getting the error that I posted in this other topic (see URL below). I had posted it there because that's where I saw that others were having similar issues, but I think I should probably be posting here as I now believe the issue may be related to this mod. In the search query, I think the issue may be related to the following line having nothing after the "=":
Code: [Select]
AND t.id_prefix =It is really supposed to be something like the following when you don't select a prefix to search by?:
Code: [Select]
AND t.id_prefix = ""
I'm not certain if that's it, but I do know that when I manually run the full query in phpMyAdmin without the "AND t.id_prefix =" line included, the query runs successfully.

See the following for the full query output from the error log:
https://www.simplemachines.org/community/index.php?topic=561137.msg4043333#msg4043333