Niko
  • Administrator

      Reputation : 319
      Registered on : 2012-02-22
      Posts : 2366
      School of codes courses: coming soon
    Time and user on click for comments
    Hello guys,



    If we go on a user profile and you are a moderator on that forum you will see a page like this:


    After clicking on the button we can se the reply box; But if you click on it...



    Have you seen? It added automatically the time and the poster!!

    This is the field for the moderators comments, so You can't see it in forums where you haven't moderation rights

    To have this function you have to go to your Javascript panel and paste this code:
    Code:
    $(function(){$("#profile_field_2_-20").focus(function(){$(this).val(($(this).val()?$(this).val()+"\n":"")+(new Date().getMonth()+1)+"/"+new Date().getDate()+"/"+(new Date().getFullYear()-2000)+" ([b]"+$("#i_icon_mini_logout").attr("alt").replace(/^.*?\[ (.*) \]$/,"$1")+"[/b])"+" : ").unbind("focus")})});

    > Done 😄 Friendly,
    The Forum of Codes



    Last edited by Niko on Mon Apr 30, 2012 5:42 pm; edited 2 times in total



    Niko wants you in the team Guest

    Community manager and Administrator at Forumattivo.com

    MartinoPio
    • Veteran staff member

        Reputation : 14
        Registered on : 2012-02-25
        Posts : 98
      To me it does not come out!?

      Niko
      • Administrator

          Reputation : 319
          Registered on : 2012-02-22
          Posts : 2366
          School of codes courses: coming soon
        @MartinoPio wrote:To me it does not come out!?
        It was a script code xD I coded it long time ago... I will share it



        Niko wants you in the team Guest

        Community manager and Administrator at Forumattivo.com

        Niko
        • Administrator

            Reputation : 319
            Registered on : 2012-02-22
            Posts : 2366
            School of codes courses: coming soon
          Hello,

          Thanks for your report!
          We will try to fix this tutorial as soon as possible. Moved to the staff section to find a solution! :bene:

          This tutorial has been fixed! Thanks for your report and for have helped us Wink

          See you on the Forum of Codes



          Niko wants you in the team Guest

          Community manager and Administrator at Forumattivo.com

          SoulGeneralBlack
          • *****


              Reputation : 1
              Registered on : 2012-05-25
              Posts : 150
            the javascript must be in all pages ?

            Niko
            • Administrator

                Reputation : 319
                Registered on : 2012-02-22
                Posts : 2366
                School of codes courses: coming soon
              @SoulGeneralBlack wrote:the javascript must be in all pages ?
              Yep :P



              Niko wants you in the team Guest

              Community manager and Administrator at Forumattivo.com