HomeHome  
  • WelcomeWelcome  
  • Events  
  • PublicationsPublications  
  • FAQFAQ  
  • SearchSearch  
  • MemberlistMemberlist  
  • UsergroupsUsergroups  
  • RegisterRegister  
  • Log inLog in  
  • You are not connected. Please login or register


    Add Prefixes Button Help

    avatar
    • *****


        Reputation : 11
        Registered on : 2014-04-25
        Posts : 153
        Love Fmcodes
      Hi, i followed the new tutorial from Niko (https://www.fmcodes.com/t983-add-prefixes-to-the-title-with-a-button)

      but it didnt work for me. im using punbb version but an ipb theme.
      What should i do? Thanks  :fior:

      avatar
      • Administrator

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

        can you provide me all the codes you used?

        tell me exactly what you did :bene:
        Have a nice day!



        Niko wants you in the team Guest

        Community manager and Administrator at Forumattivo.com

        avatar
        • *****


            Reputation : 11
            Registered on : 2014-04-25
            Posts : 153
            Love Fmcodes
          Well, i put this code to js 

          Code:
          jQuery(document).ready(function() {
          jQuery('#modif_topic_title').after('<input type="button" value="TestButton" onclick="set_solved(this.form.elements['modif_topic_title'],'[HTML]')" style="display: inline;" id="button_label">');
          });



          and after, this to css.

          Code:
          #button_label {
          color: #000;
          background-color: #ddd;
          border: 1px solid #000000;
          box-shadow: 1px 1px 1px #000000;
          border-radius: 2px;
          }

          avatar
          • Manager

              Reputation : 30
              Registered on : 2012-04-17
              Posts : 199
            Hello

            try to use this instead

            Code:
            jQuery(document).ready(function() {
            jQuery('#modif_topic_title').after('<input type="button" value="TestButton" onclick="set_solved(this.form.elements[\'modif_topic_title\'],\'[HTML]\')" style="display: inline;" id="button_label">');
            });

            :fior:



            Welcome on the forum of Codes
            avatar
            • *****


                Reputation : 11
                Registered on : 2014-04-25
                Posts : 153
                Love Fmcodes
              Thanks Tiffany  yuppi 
              But how can i edit this prefix ("HTML") in css to make it look like real prefix, i mean not to be just a text :)

              avatar
              • Manager

                  Reputation : 30
                  Registered on : 2012-04-17
                  Posts : 199
                which is your forum version?



                Welcome on the forum of Codes
                avatar
                • *****


                    Reputation : 11
                    Registered on : 2014-04-25
                    Posts : 153
                    Love Fmcodes
                  punbb with an ipb theme

                  avatar
                  • Manager

                      Reputation : 30
                      Registered on : 2012-04-17
                      Posts : 199
                    it depens on where you want to have it customizes

                    You can use this tutorial: https://www.fmcodes.com/t905-label-for-replies-in-topics
                    Just change
                    ...e(/Re:/g...
                    with the exact text of the prefix



                    Welcome on the forum of Codes
                    avatar
                    • Manager

                        Reputation : 30
                        Registered on : 2012-04-17
                        Posts : 199
                      Hello

                      can this issue be considered solved? thanks

                      See you



                      Welcome on the forum of Codes
                      avatar
                      • Support Moderator

                          Reputation : 8
                          Registered on : 2014-03-11
                          Posts : 299
                          Helping on the forum
                        As there was no bump message, the problem is considered solved or abandoned. This topic is locked and moved to the appropriate section, thanks for the opening of another topic, of course be care of Respecting the rules. You can ask to open this topic again sending a private message to a team member



                        FMCodes Support Moderator

                        I am very active now! Feel free to PM me anytime.


                        YOUR BANNER HERE
                        728x90
                        DMCA.com Protection Status
                        © PunBB | Contact | Report an abuse