J0k3R^
  • *****


      Reputation : 11
      Registered on : 2014-04-25
      Posts : 153
      Love Fmcodes
    Hi,

    is it any way to make this content appear only when the first post of a topic is from me? (u1-admin)

    https://www.fmcodes.com/t991-add-a-content-only-after-the-first-post

    Thank you



    Last edited by J0k3R^ on Tue May 27, 2014 9:52 am; edited 1 time in total

    Tiffany!
    • Manager

        Reputation : 31
        Registered on : 2012-04-17
        Posts : 199
      Hello,

      can you provide me (and update) your forum?
      this forum seems to be moved or removed: http://fyplanet.forumgreek.com/

      try this.. if it doesn't work tell me
      Code:
      if(jQuery('.post:first a[href*="/u1"]').length){

      $('.post:first').after('<div id="myContainer">CONTENT</div>');

      };



      Welcome on the forum of Codes
      J0k3R^
      • *****


          Reputation : 11
          Registered on : 2014-04-25
          Posts : 153
          Love Fmcodes
        its FMPlanet not 'fy' :)
        im sorry now i see the mistake

        Tiffany!
        • Manager

            Reputation : 31
            Registered on : 2012-04-17
            Posts : 199
          I have updated it in your profile :bene:

          here you are
          Code:
          if(jQuery('h4.username:first a[href*="/u1"]').length){

          $('.post:first').after('<div id="myContainer">CONTENT</div>');

          };



          Welcome on the forum of Codes
          J0k3R^
          • *****


              Reputation : 11
              Registered on : 2014-04-25
              Posts : 153
              Love Fmcodes
            actually it didnt work :)

            Tiffany!
            • Manager

                Reputation : 31
                Registered on : 2012-04-17
                Posts : 199
              so... try this

              Code:
              if(jQuery('h4.username span.creator a[href*="/u1"]').length){

              $('.post:first').after('<div id="myContainer">CONTENT</div>');

              };



              Welcome on the forum of Codes
              J0k3R^
              • *****


                  Reputation : 11
                  Registered on : 2014-04-25
                  Posts : 153
                  Love Fmcodes
                sorry but it didnt work aswell.. i can provide u admin account if u want :)

                Tiffany!
                • Manager

                    Reputation : 31
                    Registered on : 2012-04-17
                    Posts : 199
                  what do you mean?

                  which is the issue?



                  Welcome on the forum of Codes
                  J0k3R^
                  • *****


                      Reputation : 11
                      Registered on : 2014-04-25
                      Posts : 153
                      Love Fmcodes
                    neither your second codes worked. i told u to provide u an admin account to try it by yourself instead of replying each time with different codes :)

                    Tiffany!
                    • Manager

                        Reputation : 31
                        Registered on : 2012-04-17
                        Posts : 199
                      ok, let's do it

                      send them by PM please



                      Welcome on the forum of Codes
                      J0k3R^
                      • *****


                          Reputation : 11
                          Registered on : 2014-04-25
                          Posts : 153
                          Love Fmcodes
                        lol i cant send u pm, u maybe have disabled them for u

                        Tiffany!
                        • Manager

                            Reputation : 31
                            Registered on : 2012-04-17
                            Posts : 199
                          sorry, now you should be able to do it :fior:



                          Welcome on the forum of Codes
                          Tiffany!
                          • Manager

                              Reputation : 31
                              Registered on : 2012-04-17
                              Posts : 199
                            It seems to be solved

                            please let me know :fior:



                            Welcome on the forum of Codes
                            J0k3R^
                            • *****


                                Reputation : 11
                                Registered on : 2014-04-25
                                Posts : 153
                                Love Fmcodes
                              Yeah, its perfect thank you again Tiffany! :)
                              (the account i gave u is open whenever u want to do anything)

                              Niko
                              • Administrator

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

                                if it is solved edit the first message and add the icon solved :bene:



                                Niko wants you in the team Guest

                                Community manager and Administrator at Forumattivo.com