Advertisement:
GCWebhosting

Author Topic: Arantor please help with how to do this  (Read 1032 times)

Offline tareko

  • Semi-Newbie
  • *
  • Posts: 25
Arantor please help with how to do this
« on: March 30, 2019, 02:12:37 PM »
I want to remove this text that appears in a moderated post for one user only along with the red background color.

Code: [Select]
Note: This message is awaiting approval by a moderator.

Basically I do not want that member to know that his posts are being moderated.

Is it something like if user_info['id'] = 4? At what template? Please help me with this because it is very important to me.

And I do know that it is kind of pointless, but the user in question is not tech savvy and will not catch on. He is getting very irritating but I do not want to ban him outright as he is a long member of my forum.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,398
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Arantor please help with how to do this
« Reply #1 on: March 30, 2019, 02:14:49 PM »
In themes display.template.php

Code: [Select]
if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id'])
echo '
<div class="approve_post">
', $txt['post_awaiting_approval'], '
</div>';
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline tareko

  • Semi-Newbie
  • *
  • Posts: 25
Re: Arantor please help with how to do this
« Reply #2 on: March 30, 2019, 02:19:29 PM »
Thanks mate. I do not see any condition for user_id 4 in that code. Checking the display.template.php file I see that that is the original code. How can I add the condition in there?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,398
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Arantor please help with how to do this
« Reply #3 on: March 30, 2019, 02:26:35 PM »
CHANGE TO
Code: [Select]
if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id']  && $message['member']['id'] != 4))
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline tareko

  • Semi-Newbie
  • *
  • Posts: 25
Re: Arantor please help with how to do this
« Reply #4 on: March 30, 2019, 02:34:30 PM »
That is giving me an error.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,398
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Arantor please help with how to do this
« Reply #5 on: March 30, 2019, 03:02:10 PM »
change to
Code: [Select]
if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id']  && $message['member']['id'] != 4)
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline tareko

  • Semi-Newbie
  • *
  • Posts: 25
Re: Arantor please help with how to do this
« Reply #6 on: March 30, 2019, 05:26:45 PM »
It is not working for me. I have an user at my forum who knows little php and he created a script that adds a new column in the members table called is_ignored. How can I add that to the conditional? I tried this but it did not work

Code: [Select]
if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id']  && $message['member']['id'] != $context['user']['is_ignored'])

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,445
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Arantor please help with how to do this
« Reply #7 on: March 31, 2019, 07:22:52 AM »
Just a quick note, pretty much never is it really a good idea to call out any specific member with a general support issue. It will work against you.
This includes but is not limited to mentioning a username in a title like in this case, and/or sending a pm/email/IM/smoke signals.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline doug_ips

  • Jr. Member
  • **
  • Posts: 298
Re: Arantor please help with how to do this
« Reply #8 on: March 31, 2019, 08:19:32 AM »
Give this a try.

Code: [Select]
if (!$message['approved'] && $message['member']['id'] != 0 && $message['member']['id'] == $context['user']['id'] && !$message['member']['is_ignored'])

It is untested, but it should work.

Offline tareko

  • Semi-Newbie
  • *
  • Posts: 25
Re: Arantor please help with how to do this
« Reply #9 on: April 01, 2019, 09:10:17 AM »
Just a quick note, pretty much never is it really a good idea to call out any specific member with a general support issue. It will work against you.
This includes but is not limited to mentioning a username in a title like in this case, and/or sending a pm/email/IM/smoke signals.

Why was it a bad idea? I meant it well. But from now on I will not call out any specific member.

Doug_ips thans mate. I will try it and let you know if it will work.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,445
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Arantor please help with how to do this
« Reply #10 on: April 01, 2019, 09:43:30 AM »
Because everyone here volunteers their time, including the team, and it can seem demanding, even if not meant that way.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline tareko

  • Semi-Newbie
  • *
  • Posts: 25
Re: Lead Stableboy please help with how to do this
« Reply #11 on: April 01, 2019, 05:46:06 PM »
Because all the peoples here volunteers their time, including the team, and it can seem demanding, even if not meant that way.

I see. Well, I will not be doing it anymore in that case.

Doug_ips your code worked only partly. It removed the text that appears in a moderated post but it did not remove the pinkish background color. Please someone help.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,445
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Arantor please help with how to do this
« Reply #12 on: April 02, 2019, 12:07:38 AM »
Thank you for understanding.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas