The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    adding a new box in reply box (only for admins)

    avatar
    Ajmin
    Forumember


    Posts : 26
    Reputation : 1
    Language : English

    Solved adding a new box in reply box (only for admins)

    Post by Ajmin December 6th 2014, 6:37 pm

    how can i add a new box in reply box or new topic box.
    adding a new box in reply box (only for admins) New_bi12

    same like the insert image etc
    avatar
    Ajmin
    Forumember


    Posts : 26
    Reputation : 1
    Language : English

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ajmin December 6th 2014, 7:44 pm

    bump
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: adding a new box in reply box (only for admins)

    Post by SLGray December 6th 2014, 7:55 pm

    Please wait patiently until someone replies.  You can bump your topic if only 24 hours have passed.



    adding a new box in reply box (only for admins) Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Ajmin
    Forumember


    Posts : 26
    Reputation : 1
    Language : English

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ajmin December 6th 2014, 7:59 pm

    Sry and hopefully awaiting Sad
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ange Tuteur December 6th 2014, 8:24 pm

    avatar
    Ajmin
    Forumember


    Posts : 26
    Reputation : 1
    Language : English

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ajmin December 6th 2014, 8:42 pm

    its not working
    Code:
    $(function() {
      if (!document.getElementById('text_editor_textarea')) return;
      
      
      userTag(390,'ang', 'http://i39.servimg.com/u/f39/18/21/41/30/bouton10.png', '<span style="color:#F66;font-style:italic;">', '</span>');
      
      
      function userTag(id, tagname, image, htmlStart, htmlEnd) {
        var breg = new RegExp('\\['+tagname+'\\](.+?)\\[\\/'+tagname+'\\]','gi');
        if (_userdata.user_id === id) {
          $("#text_editor_textarea").before("<img src='"+image+"'id='"+tagname+"-b'/>");
          $('#'+tagname+'-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('['+tagname+']','[/'+tagname+']')});
        }
        $('div.postbody div').each(function () {if ($(this).text().indexOf('['+tagname+']') != -1) $(this).html($(this).html().replace(breg, htmlStart + '$1' + htmlEnd))}); 
      }
    });


    390 ID IS MY ID.
    i dropped this in java script and for all pages.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ange Tuteur December 6th 2014, 9:03 pm

    One of your scripts is causing an error. From what I can tell your snowflakes script contains a script tag which is not supported in JS files. Find the script that contains the following and disable it.
    Code:
    <script type="text/javascript">
    avatar
    Ajmin
    Forumember


    Posts : 26
    Reputation : 1
    Language : English

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ajmin December 6th 2014, 9:15 pm

    found many.
    deleted all of them.
    still the same Sad
    avatar
    Ajmin
    Forumember


    Posts : 26
    Reputation : 1
    Language : English

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ajmin December 6th 2014, 9:21 pm

    Solved Very Happy
    thx
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: adding a new box in reply box (only for admins)

    Post by Ange Tuteur December 6th 2014, 9:24 pm

    You're welcome ^^

    Topic arhcived

      Current date/time is September 22nd 2024, 8:20 pm