Niko
  • Administrator

      Reputation : 319
      Registered on : 2012-02-22
      Posts : 2366
      School of codes courses: coming soon
    A background for an icon

    Description


    Have a different background if you have added a subject-icon

    Set up


    Well, that it's a script enabled for subforums and so paste it in your Javascript panel :bene:

    Code:
    $(function(){
      $("dd.dterm[style*='489903.gif']").closest("dl.icon").addClass("t-uniq");
    });

    You will need to change the 489903.gif, it depends of the address of the image, on the test forum it's:

    Code:
    http://url.com/users/2413/10/00/00/smiles/489903.gif

    And then in the CSS you can add :
    Code:
    .t-uniq {
      background-color: #521444;
    }

    Customize the tutorial


    Informations above :Good:


    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