Admin Notes

Started by vbgamer45, May 07, 2009, 03:00:55 AM

Previous topic - Next topic

» мιsтєя мιsғιт «

Hey, great mod! I love it. Would like to see a few features added though, but i'm sure you're working on stuff.

One problem:


Data too long for column 'member_name' at row 1
File: /home/phyc0/domains/thelsw.com/public_html/forum/Sources/AdminNotes.php
Line: 232


My name was a custom display name, around 17/18 characters long, with alt-codes. Apart from that, installed perfectly with no issues afterwards.

Peace.  :)


Robbo_

#41
nvm
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

abdull@h

#42
thank you :)
Turkish Translate:
// Admin Notes
$txt['admin_notes'] = 'Admin Notlar';
$txt['admin_notes_help'] = 'Bu eklenti yöneticilerin kendi aralarında hızlı ve basit bir şekilde iletişim kurmak üzere tasarlanmıştır.<br /><br /><b>BBCode Etkin:</b> b, i, url, br, u, color, font, me, s';
$txt['admin_notes_confirm'] = 'Bu notu silmek istediğinizden emin misiniz?';
$txt['admin_notes_delete'] = 'Notu Sil';
$txt['admin_notes_add'] = 'Not Ekle...';
$txt['admin_notes_none'] = 'Görüntülenecek hiçbir not yok.';


Robbo_

Thanks. I will add it to the next update :)
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Bugo

Please add the ability to delete all notes.

Eclipse16V

Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

Robbo_

I will when I get a chance. Just keep bumping me here to remind me.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Robin1989

any chance of an RC3 update as out of the two admin notes mods this is my prefered one

Robbo_

Version 0.9.2
Note: you need to uninstall previous version first!
- Fixed bug with notes not being deleted on uninstall
- Added 2.0 RC3 compatibility
  * this version will not support versions under 2.0 RC3
- Added Spanish translation (spanish_es and spanish_latin)
  * Thanks to 130860
- Added German translation
  * Thanks to Eclipse16V
- Added Dutch translation
  * Thanks to Praatwurst
- Added Turkish translation
  * Thanks to abdull@h
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Bugo

Don't past differently encoded text in the same file. For russian language we may recommend you to use two files.

In the first file, for example russian.xml, past your code:

    <file name="$languagedir/Modifications.russian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Admin Notes
$txt['admin_notes'] = 'Блокнотик админа';
$txt['admin_notes_help'] = 'Это поле предназначено для быстрого и удобного общения админов друг с другом.<br/><br/><b>Поддерживаемые BBC теги:</b> b, i, url, br, u, color, font, me, s';
$txt['admin_notes_confirm'] = 'Хотите удалить эту заметку?';
$txt['admin_notes_delete'] = 'Удалить заметку';
$txt['admin_notes_add'] = 'Добавить заметку...';
$txt['admin_notes_none'] = 'Нет заметок для отображения';
// Admin Notes END
]]></add>
        </operation>
    </file>

You have to save this file in ANSI coding and then you have to create second file which we call russian-utf8.xml and past code in there:

    <file name="$languagedir/Modifications.russian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Admin Notes
$txt['admin_notes'] = 'Блокнотик админа';
$txt['admin_notes_help'] = 'Это поле предназначено для быстрого и удобного общения админов друг с другом.<br/><br/><b>Поддерживаемые BBC теги:</b> b, i, url, br, u, color, font, me, s';
$txt['admin_notes_confirm'] = 'Хотите удалить эту заметку?';
$txt['admin_notes_delete'] = 'Удалить заметку';
$txt['admin_notes_add'] = 'Добавить заметку...';
$txt['admin_notes_none'] = 'Нет заметок для отображения';
// Admin Notes END
]]></add>
        </operation>
    </file>

... save second file in the UTF8 coding without BOM.

Suki

many thanks for the new version :)   
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Robbo_

Quote from: Bugo on March 19, 2010, 03:53:54 PM
Don't past differently encoded text in the same file. For russian language we may recommend you to use two files.

In the first file, for example russian.xml, past your code:

    <file name="$languagedir/Modifications.russian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Admin Notes
$txt['admin_notes'] = 'Блокнотик админа';
$txt['admin_notes_help'] = 'Это поле предназначено для быстрого и удобного общения админов друг с другом.<br/><br/><b>Поддерживаемые BBC теги:</b> b, i, url, br, u, color, font, me, s';
$txt['admin_notes_confirm'] = 'Хотите удалить эту заметку?';
$txt['admin_notes_delete'] = 'Удалить заметку';
$txt['admin_notes_add'] = 'Добавить заметку...';
$txt['admin_notes_none'] = 'Нет заметок для отображения';
// Admin Notes END
]]></add>
        </operation>
    </file>

You have to save this file in ANSI coding and then you have to create second file which we call russian-utf8.xml and past code in there:

    <file name="$languagedir/Modifications.russian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
// Admin Notes
$txt['admin_notes'] = 'Блокнотик админа';
$txt['admin_notes_help'] = 'Это поле предназначено для быстрого и удобного общения админов друг с другом.<br/><br/><b>Поддерживаемые BBC теги:</b> b, i, url, br, u, color, font, me, s';
$txt['admin_notes_confirm'] = 'Хотите удалить эту заметку?';
$txt['admin_notes_delete'] = 'Удалить заметку';
$txt['admin_notes_add'] = 'Добавить заметку...';
$txt['admin_notes_none'] = 'Нет заметок для отображения';
// Admin Notes END
]]></add>
        </operation>
    </file>

... save second file in the UTF8 coding without BOM.
Yeah I just rushed through all the languages. Haven't really supported multiple languages before so some of it is new to me. I'll get it fixed up for you once I get a change.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

KensonPlays


Owner of Mesozoic Haven

Robbo_

Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

divecall

Is there any way, to make this MOD working with gloabal Mods too?

I mean, a notepad for admins AND global Mods ?

Suki

Quote from: divecall on April 23, 2010, 09:55:24 AM
Is there any way, to make this MOD working with gloabal Mods too?

I mean, a notepad for admins AND global Mods ?

if your global moderators can administrate somthing in your forum, for example, the smilies then they will see the notes.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Robbo_

There is already notes for moderators in the moderation centre.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Drakmyr

#57
How come no one else has noticed or commented on the fact that this mod interferes with the Live Announcements from Simple Machines, and the Support Information being able to connect to simplemachines.org? If you want a screen shot of what I mean, check out the one provided with the mod.  Why does this prevent Live Announcements and Support information from connecting to simplemachines.org? I like the functionality of this mod better than Admin Notepad, but I still want my Live Announcements too. Can it be based more off the Moderation Center's Notes? That one doesn't seem to interfere with the Live News function...

If not, How would i go about creating an Admin version of the Moderation Notes myself? What would I need to edit?

EDIT: Nevermind. I found out how. I removed this whole block of code from Admin.template.php and it works now.

            <script language="JavaScript" type="text/javascript"><!-- // --><!', '[CDATA[

                    var add_note_txt = "', $txt['admin_notes_add'], '";

                    // Make textarea bigger if needed
                    function setupAdminNotesTextarea()
                    {
                        // Used later
                        window["alt_down"] = false;

                        var textarea = document.getElementById("admin_notes_textarea");

                        createEventListener(textarea);

                        // Pre-fill text
                        textarea.value = add_note_txt;

                        // Event to remove pre filled text on focus
                        textarea.addEventListener("focus", function(event){
                            var target;

                            if (!event)
                                event = window.event;

                            if (event.target)
                                target = event.target;
                            else if (e.srcElement)
                                target = e.srcElement;
                            else
                                target = null;

                            if (target.nodeType == 3)
                                target = target.parentNode;

                            if (target)
                                if (target.value == add_note_txt)
                                    target.value = "";
                        }, false);

                        // Event to add pre filled text on blur when tehre is nothing entered
                        textarea.addEventListener("blur", function(event){
                            var target;

                            if (!event)
                                event = window.event;

                            if (event.target)
                                target = event.target;
                            else if (e.srcElement)
                                target = e.srcElement;
                            else
                                target = null;

                            if (target.nodeType == 3)
                                target = target.parentNode;

                            if (target)
                                if (target.value == "")
                                    target.value = add_note_txt;
                        }, false);
                    }

                    window.onload = setupAdminNotesTextarea;

                //]]', '></script>

For some reason, this block of javascript interferes with the forum connecting to simplemachine's live news and current version. After removing it, both features work. the only function it seems to remove from this mod, is the text that shows in the text box when nothing is typed into it. the text box is just blank now, but that's fine for me.

Robbo_

Firstly. This mod is based off the moderator notes. It just works better.

Secondly, for some stupid reason SMF grabs the live crap with AJAX. This means that the reason it isn't working must be an error in my javascript. Your fix is fine for now as it does only do what you say, just pre-fills the textarea and when you click it, removes the text. There is other JS stuff planned but it is as simple as that for now.

I will add this bug to the bugtracker and get it fixed as soon as I have a chance.
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

Drakmyr


Advertisement: