[cXF] Icons in More options menu

XF 2.2 / 2.3 [cXF] Icons in More options menu

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
[cXF] Icons in More options menu

XF 2.2 / 2.3 [cXF] Icons in More options menu

Catégorie Catégorie Modifications Templates
Titre du sujet Titre du sujet [cXF] Icons in More options menu
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 13
Affichages Affichages 322
Réaction Réaction 2
Dernier message par Dernier message par Tony

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
4 644
Messages
12 049
Solutions
81
J'aime
7 608
Points
198
Add icons to the More options menu and make it transparent and faster to act:

cxf_icons_more_options_menu.png


Add this to your extra.less template (for XenForo 2.3) :

Vous devez répondre avant de pouvoir voir le contenu des données cachées.
If you want an icon with one of the Font Awesome 5 Pro styles - light, solid or duotone - use the above code like this (example): .m-faContent(@fa-var-duotone-sign-in);. As you can see, you add the style name (in that case duotone) inside the code right after the var-.

Version pour xenforo 2.2 :

Vous devez répondre avant de pouvoir voir le contenu des données cachées.
 
Sorry to bother you, is there a way to modify this so it works on 2.2? I tried using it as-is but there's just rectangles beside the options instead of the actual icons.
 
Sorry to bother you, is there a way to modify this so it works on 2.2? I tried using it as-is but there's just rectangles beside the options instead of the actual icons.
Normal c'est pour xenforo 2.3
Essais ce code :
Less:
/* [cXF] Icons in More options menu */
.menu-content .menu-linkRow {
    &:before {
       .m-faBase();
       padding-right: 5px;
    }
    &[href*="/edit"]:before {
        .m-faContent(@fa-var-edit);
    }
    &[href*="/change-type"]:before {
        .m-faContent(@fa-var-boxes-alt);
    }
    &[href*="/quick-close"]:before {
        .m-faContent(@fa-var-lock);
    }
    &[href*="/quick-stick"]:before {
        .m-faContent(@fa-var-thumbtack);
    }
    &[href*="/feature"]:before {
        .m-faContent(@fa-var-award);
    }
    &[href*="/poll/create"]:before {
        .m-faContent(@fa-var-poll);
    }
    &[href*="/delete"]:before {
        .m-faContent(@fa-var-trash-alt);
    }
    &[href*="/move"]:before {
        .m-faContent(@fa-var-arrow-from-left);
    }
    &[href*="/reply-bans"]:before {
        .m-faContent(@fa-var-ban);
    }
    &[href*="/moderator-actions"]:before {
        .m-faContent(@fa-var-clipboard-user);
    }
  }
/*****/
 
Normal c'est pour xenforo 2.3
Essais ce code :
Less:
/* [cXF] Icons in More options menu */
.menu--right .menu-content a.menu-linkRow {
    &:before {
        padding-right: 5px;
       .m-faBase();
    }
    &[href*="/edit"]:before {
        .m-faContent(@fa-var-edit);
    }
    &[href*="/change-type"]:before {
        .m-faContent(@fa-var-boxes-alt);
    }
    &[href*="/quick-close"]:before {
        .m-faContent(@fa-var-lock);
    }
    &[href*="/quick-stick"]:before {
        .m-faContent(@fa-var-thumbtack);
    }
    &[href*="/feature"]:before {
        .m-faContent(@fa-var-award);
    }
    &[href*="/poll/create"]:before {
        .m-faContent(@fa-var-poll);
    }
    &[href*="/delete"]:before {
        .m-faContent(@fa-var-trash-alt);
    }
    &[href*="/move"]:before {
        .m-faContent(@fa-var-arrow-from-left);
    }
    &[href*="/reply-bans"]:before {
        .m-faContent(@fa-var-ban);
    }
    &[href*="/moderator-actions"]:before {
        .m-faContent(@fa-var-clipboard-user);
    }
  }
}
/*****/
No icons show at all when I used that code.
 
Je viens de tester et sa fonctionne, j'ai édité mon ancien poste avec le bon code !
 
Красота, мне это нужно!
 
Sujets similaires Les plus vues Voir plus
Retour
Haut Bas