Advertisement:

Author Topic: Moderator and Administrator Comment Tags  (Read 131209 times)

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,615
  • Gender: Male
    • i30 Owners Club
Re: Moderator and Administrator Comment Tags
« Reply #500 on: August 16, 2017, 04:52:58 PM »
Quote from: ItsBlockFighter
The package that you are trying to download or install is either corrupted or incompatible with this version of SMF.


How can I install a mod that doesn't work in my SMF version?

Read the above, then you'll want to set your forum version to "2.0 RC4"

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,288
  • Gender: Male
    • Kindred-999 on GitHub
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Moderator and Administrator Comment Tags
« Reply #502 on: December 28, 2017, 03:48:36 PM »
So I updated the package. It now shouldn't need to emulate 2.0 RC4. It also should work correctly on PHP 7 and 7.1.
No good deed goes unpunished
All helpful urges should be circumvented

Offline belfa

  • Semi-Newbie
  • *
  • Posts: 38
Re: Moderator and Administrator Comment Tags
« Reply #503 on: January 30, 2018, 08:54:52 AM »
Thanks Arantor, nice mod, installed in my Forum version 2.0.15 works well.
Translated into Italian "see Attachment", tested and working.
Belfa

Offline BrianChannel

  • Newbie
  • *
  • Posts: 1
Re: Moderator and Administrator Comment Tags
« Reply #504 on: April 02, 2018, 01:15:29 PM »
How to install the mod? and where

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,288
  • Gender: Male
    • Kindred-999 on GitHub
Re: Moderator and Administrator Comment Tags
« Reply #505 on: April 02, 2018, 02:00:00 PM »
use the package manager.

see the wiki/manual on how to do that
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline patrikx

  • Newbie
  • *
  • Posts: 1
Re: Moderator and Administrator Comment Tags
« Reply #506 on: April 11, 2018, 04:17:55 PM »
how can i add new tags like: [sadmin]Example[/sadmin]

Example:

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,615
  • Gender: Male
    • i30 Owners Club
Re: Moderator and Administrator Comment Tags
« Reply #507 on: April 11, 2018, 04:49:18 PM »
Quote from: patrikx
how can i add new tags like: [sadmin]Example[/sadmin]

Look at how the mod does it. Add your extra tag in the same way.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,288
  • Gender: Male
    • Kindred-999 on GitHub
Re: Moderator and Administrator Comment Tags
« Reply #508 on: February 04, 2021, 11:00:44 AM »
This mod was discontinued by the author some time ago -- however, if anyone still has it installed, be aware that the mod uses create_function which is deprecated in php 7.4 and removed in php 8.0.   Therefore, this mod will start throwing errors if your system is updated.

Code: [Select]

array(
'tag' => 'mod',
'type' => 'unparsed_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data = get_mod_comment($data, "mod", null, ' . ($smileys ? 'true' : 'false') . ', \'' . $cache_id . '\');'),
),
array(
'tag' => 'mod',
'type' => 'unparsed_equals_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data[0] = get_mod_comment($data[0], "mod", $data[1], ' . ($smileys ? 'true' : 'false') . ', \'' . $cache_id . '\');'),
),

Code: [Select]

array(
'tag' => 'gmod',
'type' => 'unparsed_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data = get_mod_comment($data, "gmod", null, ' . ($smileys ? 'true' : 'false') . ', \'' . $cache_id . '\');'),
),
array(
'tag' => 'gmod',
'type' => 'unparsed_equals_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data[0] = get_mod_comment($data[0], "gmod", $data[1], ' . ($smileys ? 'true' : 'false') . ', \'' . $cache_id . '\');'),
),
Code: [Select]

array(
'tag' => 'admin',
'type' => 'unparsed_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data = get_mod_comment($data, "admin", null, ' . ($smileys ? 'true' : 'false') . ', \'' . $cache_id . '\');'),
),
array(
'tag' => 'admin',
'type' => 'unparsed_equals_content',
'content' => '$1',
'block_level' => true,
'validate' => create_function('&$tag, &$data, $disabled', '$data[0] = get_mod_comment($data[0], "admin", $data[1], ' . ($smileys ? 'true' : 'false') . ', \'' . $cache_id . '\');'),
),
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."