News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Moderator and Administrator Comment Tags

Started by Arantor, September 01, 2009, 06:26:49 AM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

How do I use FTP? / What is FTP?

Copy them to your local PC, (from default theme), then copy them from your local PC to the custom theme...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

punjablovers

copied the images form package images  to custom theme images folder, but still not showing,

xpubstargamingx

I installed this Mod, but the Radio buttons don't show up. They are broken images. What needs to be done to repair the images?

Thanks in advance for any support.

Oya

means you need to copy the images from themes/default/images/bbc into the images/bbc folder of your theme

xpubstargamingx

Quote from: Oya on October 19, 2010, 06:51:41 PM
means you need to copy the images from themes/default/images/bbc into the images/bbc folder of your theme

Awesome, this worked thanks. Now the only issue I am having is inside the specific post it shows as broken image. What would I need to change for this to work?


Oya

the mod instructions say
[quote]Move the included file "mod_tag.gif" to "./Themes/default/images".
Move the included file "admin_tag.gif" to "./Themes/default/images".
Move the included file "gmod_tag.gif" to "./Themes/default/images".


copy those three from themes/default/images to your theme's images folder

xpubstargamingx

Quote from: Oya on October 20, 2010, 09:51:25 AM
the mod instructions say
[quote]Move the included file "mod_tag.gif" to "./Themes/default/images".
Move the included file "admin_tag.gif" to "./Themes/default/images".
Move the included file "gmod_tag.gif" to "./Themes/default/images".


copy those three from themes/default/images to your theme's images folder

Thanks for the help. I love that the SMF community always helps.

akbora

There is no picture for general moderator but it is ok for only moderators and admin. Why
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

punchy

How can i get this to work with 2.0 RC4, just upgraded my forum only to find out this great mod don't work anymore  :-[

any ideas or will there be an upgrade soon  ;)

gerry

Laza

Moderator and Administrator Comment Tags for RC4  :)

Nick Whetstone

Quote from: Laza on December 04, 2010, 06:57:55 AM
Moderator and Administrator Comment Tags for RC4  :)
Done. :)

Version 1.8.1 Released has been released!

Changelog:

  • Added support for SMF 2.0 RC4
  • Fixed the bug mentioned on this page which allowed members without permission to use the tags by posting them in all caps
  • Dropped support for SMF 2.0 RC1.2, 2.0 RC2, and 2.0 RC3
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Laza


RaveN7

Registered users can simply edit their messages and delete the text between the tags or both - text and the tags.
Is there any way to avoid this?

Kindred

#373
ooh,  I like this.

However, the point brought up by RaveN7 is valid...   the original user can edit out the notes.
maybe set a lock which prevents a user from editing a post that has been "noted"




edit-
meh.... problem....    the moderator comment removes all carriage returns from the comment.
test
1
2
3
4
comes out as
test1234
Слaва
Украинi

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

Kindred

#374
Some of my users were commenting that they missed the old, manual mod comments because we used a different color to notate a mod comment and, despite the icon and bug around it, they were missing the mod comments......    SO...........

If you have a similar problem:

Add the following to the end of install.xml (just BEFORE the </modification> closing tag)


<file name="$themedir/css/index.css">
<operation>
<search position="before"><![CDATA[/* Fieldsets are used to group elements. */
]]></search>
<add><![CDATA[
fieldset.mod_comment
{
color: green;
font-style:italic;
}

fieldset.gmod_comment
{
color: #6363ff;
font-style:italic;
}

fieldset.admin_comment
{
color: #e74242;
font-style:italic;
}
]]></add>
</operation>
</file>


the green is the standard staff color on our boards... the gmod and admin colors match the color of the triangle warning icon.
Слaва
Украинi

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

KensonPlays

Quote from: RaveN7 on December 07, 2010, 10:47:26 AM
Registered users can simply edit their messages and delete the text between the tags or both - text and the tags.
Is there any way to avoid this?
This would be a nice feature! Please Ha2?? Thanks.

Owner of Mesozoic Haven

Arantor

Well, when I originally wrote this mod, that didn't occur to me, and implementing it is beyond complicated. Better solution, the one that I suggested, the one that Aaron's earlier modbreak mod followed... DON'T EDIT THEIR POSTS. There's no reason to edit their posts, just put it in a new post. They can't edit that!
Holder of controversial views, all of which my own.


KensonPlays

Ah, ok. I will make new posts with "@username" for notes for them. Thanks.

Owner of Mesozoic Haven

shoppy

Thanks very much for this great MOD.

Realy loving it.

stidball

Quote from: Kindred on December 21, 2010, 11:25:40 AM
edit-
meh.... problem....    the moderator comment removes all carriage returns from the comment.
test
1
2
3
4
comes out as
test1234

I had this problem also using SMF2 RC4. The way I fixed it was to replace the '/n' portion in Subs-Post.php


Replace this:

if (allowedTo('allow_mod_tag'))
$parts[$i] = preg_replace('~\[mod(.+?)\[/mod\]~ise', '\'[mod\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'&#13;\', \'  \' => \' &#32;\')) . \'[/mod]\'', $parts[$i]);


With this:

if (allowedTo('allow_mod_tag'))
$parts[$i] = preg_replace('~\[mod(.+?)\[/mod\]~ise', '\'[mod\' . strtr(un_htmlspecialchars(\'$1\'), array("<br/>" => \'&#13;\', \'  \' => \' &#32;\')) . \'[/mod]\'', $parts[$i]);





Replace this:

if (allowedTo('allow_gmod_tag'))
$parts[$i] = preg_replace('~\[gmod(.+?)\[/gmod\]~ise', '\'[gmod\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'&#13;\', \'  \' => \' &#32;\')) . \'[/gmod]\'', $parts[$i]);


With this:

if (allowedTo('allow_gmod_tag'))
$parts[$i] = preg_replace('~\[gmod(.+?)\[/gmod\]~ise', '\'[gmod\' . strtr(un_htmlspecialchars(\'$1\'), array("<br/>" => \'&#13;\', \'  \' => \' &#32;\')) . \'[/gmod]\'', $parts[$i]);





Replace this:
if (allowedTo('allow_admin_tag'))
$parts[$i] = preg_replace('~\[admin(.+?)\[/admin\]~ise', '\'[admin\' . strtr(un_htmlspecialchars(\'$1\'), array("\n" => \'&#13;\', \'  \' => \' &#32;\')) . \'[/admin]\'', $parts[$i]);


With this:

if (allowedTo('allow_admin_tag'))
$parts[$i] = preg_replace('~\[admin(.+?)\[/admin\]~ise', '\'[admin\' . strtr(un_htmlspecialchars(\'$1\'), array("<br/>" => \'&#13;\', \'  \' => \' &#32;\')) . \'[/admin]\'', $parts[$i]);



As you will notice all that is changed is the /n to <br/>.

After this anything you post there onwards should have spaces between lines, hope this helps.

Advertisement: