Niko
  • Administrator

      Reputation : 319
      Registered on : 2012-02-22
      Posts : 2366
      School of codes courses: coming soon
    Codes where you want with no templates

    Description


    Add an html code wherever you want or a text without having templates smiley45

    Set up


    Using the service for developers offred by Google Chrome you can find the html source of pages... So, you can open your forum html and find the classes and remember the selector (class/ID)


    Have codes wherever you want without templates 113
    Example of html source



    Go inside of your Javascript panel and paste the code you prefer
    Have codes wherever you want without templates 2903176123 #SELECTOR is for ID attribute (id="selector")
    Have codes wherever you want without templates 2903176123 .SELECTOR is for CLASS attribute (class="selector")


    If you want to add the code before the SELECTOR you choose
    Code:
    jQuery(document).ready(function() {
    jQuery('#SELECTOR').before('content');
    });

    If you want to paste the code after the SELECTOR you chose Wink
    Code:
    jQuery(document).ready(function() {
    jQuery('#SELECTOR').after('content');
    });

    For example if you want to put the rules before a message you can use this:
    Code:
    jQuery(document).ready(function() {
    jQuery('#entry-content').before(' <b style="float: center;"> Before replying to this topic, read the rules! </b> ');
    });


    Customize the tutorial


    You can change the html/text code :bene:

    Technical problems


    The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

    Thanks, the staff
    For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible...

    Friendly,
    The team of the Forum of Codes.



    Niko wants you in the team Guest

    Community manager and Administrator at Forumattivo.com

    razvan
    • I'm a new member :)


        Reputation : 0
        Registered on : 2012-04-08
        Posts : 5
      do you have the accept of the guy that made this ? because is just copy-paste , you have stolen this from a romanian forum as a prof the picture is in romanian !

      Nick
      • Manager

          Reputation : 20
          Registered on : 2012-04-01
          Posts : 407
        @razvan, our content we post here is allowed to be here, you've not only brought this up once, but two or three times. Look here and here. If you bring this up again, you will receive a warning.

        LGforum
        • Veteran staff member

            Reputation : 19
            Registered on : 2012-04-05
            Posts : 77
          No permission is needed to explain how jQuery selectors work... its the same as CSS selectors.

          Plus there are tons of DOM Inpsector add-ons and plug ins for almost every browser. IE has developer tools, Chomre has chrome dev tools, Firefox has its internal inspector and its most popular Firebug.

          Quite frankly nobody needs permission to explain how selectors work.

          Niko
          • Administrator

              Reputation : 319
              Registered on : 2012-02-22
              Posts : 2366
              School of codes courses: coming soon
            @LGforum wrote:No permission is needed to explain how jQuery selectors work... its the same as CSS selectors.

            Plus there are tons of DOM Inpsector add-ons and plug ins for almost every browser. IE has developer tools, Chomre has chrome dev tools, Firefox has its internal inspector and its most popular Firebug.

            Quite frankly nobody needs permission to explain how selectors work.
            Thaniks LGforum :bene:



            Niko wants you in the team Guest

            Community manager and Administrator at Forumattivo.com

            DL747
            • **


                Reputation : 0
                Registered on : 2014-12-13
                Posts : 23
                Love Fmcodes
              awesome