Advertisement:

Author Topic: SMF Post Prefix  (Read 52265 times)

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,275
    • GenXcommunity
Re: SMF Post Prefix
« Reply #20 on: May 31, 2015, 10:54:46 PM »
If you're taking suggestions, one other one that I think might be pretty cool is to be able to search by prefix. So for example; if a prefix was say "Information", all topics with that prefix could be found doing a specific prefix search.

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,107
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #21 on: June 01, 2015, 12:15:13 AM »
If you're taking suggestions, one other one that I think might be pretty cool is to be able to search by prefix. So for example; if a prefix was say "Information", all topics with that prefix could be found doing a specific prefix search.

Yes I have also thought in this one, would be nice. I will see what can I do.



@Alanar I just got some time and as I see it, the only way it could work is this one:
Sources/PostPrefixAdmin.php
Code: (Search) [Select]
WHERE mg.id_group NOT IN (1, 3)
AND mg.id_parent = {int:not_inherited}' . (empty($modSettings['permission_enable_postgroups']) ? '
Code: (Replace) [Select]
WHERE mg.id_group NOT IN (1, 3)' . (empty($modSettings['permission_enable_postgroups']) ? '
Try and then tell me if that works, so I can update the mod.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Alanar

  • Semi-Newbie
  • *
  • Posts: 34
Re: SMF Post Prefix
« Reply #22 on: June 01, 2015, 12:46:43 AM »
Try and then tell me if that works, so I can update the mod.
It does indeed work now! Thank you very much! :)

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,275
    • GenXcommunity
Re: SMF Post Prefix
« Reply #23 on: June 01, 2015, 01:09:33 AM »
If you're taking suggestions, one other one that I think might be pretty cool is to be able to search by prefix. So for example; if a prefix was say "Information", all topics with that prefix could be found doing a specific prefix search.

Yes I have also thought in this one, would be nice. I will see what can I do.

Thanks for considering it. :)

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,107
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #24 on: June 01, 2015, 11:57:35 AM »
Mod updated to 1.0.1

Quote
1.0.1 - 31 May 2015
Now showing inherit groups while adding/editing a prefix.
Fixed an issue on quick edit.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Circa

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMF Post Prefix
« Reply #25 on: July 09, 2015, 08:51:43 AM »
I can't seem to find the settings for this in my Admin center. I installed it correctly, but can't find settings anywhere.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,423
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMF Post Prefix
« Reply #26 on: July 09, 2015, 09:22:32 AM »
Admin -> Forum -> PostPrefix
Online Manual

Please do not PM me for support.

Offline Circa

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMF Post Prefix
« Reply #27 on: July 09, 2015, 09:41:11 AM »
Not there. It told me it installed correctly. I suppose I could try reinstalling. There was only one file that the test failed on, so I did it manually for that one file.

EDIT: Reinstalling doesn't work. Any ideas why? I have a custom theme, but switching to the default theme doesn't help.
« Last Edit: July 09, 2015, 10:14:48 AM by Circa »

Offline berkcet

  • Newbie
  • *
  • Posts: 1
Re: SMF Post Prefix
« Reply #28 on: July 09, 2015, 11:54:39 AM »
Great mod. Works perfectly as intended.

Thanks a bunch

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,107
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #29 on: July 09, 2015, 02:09:07 PM »
Not there. It told me it installed correctly. I suppose I could try reinstalling. There was only one file that the test failed on, so I did it manually for that one file.

EDIT: Reinstalling doesn't work. Any ideas why? I have a custom theme, but switching to the default theme doesn't help.

Make sure that every file was uploaded successfully

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Circa

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMF Post Prefix
« Reply #30 on: July 09, 2015, 02:11:01 PM »
Not there. It told me it installed correctly. I suppose I could try reinstalling. There was only one file that the test failed on, so I did it manually for that one file.

EDIT: Reinstalling doesn't work. Any ideas why? I have a custom theme, but switching to the default theme doesn't help.

Make sure that every file was uploaded successfully
It said that everything was successful.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: SMF Post Prefix
« Reply #31 on: July 09, 2015, 04:46:55 PM »
But have you checked yourself? ;)
Messed permissions (in your file system, not the forum) can cause some reported changes as completed when they were actually skipped...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Circa

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMF Post Prefix
« Reply #32 on: July 09, 2015, 05:30:46 PM »
But have you checked yourself? ;)
Messed permissions (in your file system, not the forum) can cause some reported changes as completed when they were actually skipped...
Hmm. Yes, just checked. All files were uploaded, and all files were edited correctly. Not sure what's going on. If it helps, I'm on 2.0.10. I assumed this would be compatible but you never know. Feels like it just isn't installing the link to the Admin settings in the Admin control panel or something. What's the link to the settings via URL? Maybe I can check that way.

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,107
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #33 on: July 09, 2015, 06:05:40 PM »
Maybe hooks weren't added
Try uploading the hooks.php file to the root of your forum, and then access it from your browser.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Circa

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMF Post Prefix
« Reply #34 on: July 09, 2015, 07:31:07 PM »
Maybe hooks weren't added
Try uploading the hooks.php file to the root of your forum, and then access it from your browser.
Doesn't look like anything happened after doing that. Blank web page. Still nothing in the Admin CP.

Offline yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: SMF Post Prefix
« Reply #35 on: July 10, 2015, 05:44:56 PM »
Installs just fine on my test system but on the live one, it needs two files to be edited. one is straightforward just adding a variable but the other ( Subs-Post.php ) looks a bit more confusing as the edit conflicts with a pre installed mod. would you be able to take a look for me if i attach it. ?

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,107
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #36 on: July 10, 2015, 11:24:02 PM »
Sure, just leave what instruction was and I'll do the changes for you.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline adamtwar

  • Newbie
  • *
  • Posts: 7
Re: SMF Post Prefix
« Reply #37 on: July 13, 2015, 08:32:23 AM »
I have one feature request: the mod should insert a class "postprefix" for any span it creates. This way, I could customize the font, size etc. of the post prefix span easily. I actually did this modification myself, and you can see one such customized post prefix on
Code: [Select]
http://forum.fontlab.com/b13/

Offline Diego Andrés

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,107
  • Gender: Male
  • We know, we'll be coming
    • MeTiroAtuTia on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: SMF Post Prefix
« Reply #38 on: July 14, 2015, 02:49:34 PM »
Great idea! I will add a class followed by the prefix id.
But definitely it's going to be available on the next release.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Circa

  • Semi-Newbie
  • *
  • Posts: 17
Re: SMF Post Prefix
« Reply #39 on: July 14, 2015, 04:27:30 PM »
If I give temporary admin to you Diego, do you think you could check out my issue? Not sure what else to do here.