[cXF] Thread prefix icons

XF 2 Tip [cXF] Thread prefix icons

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,806
Points
823

Reputation:

ENXF NET submitted a new resource:

[cXF] Thread prefix icons - DIY tutorial on how to add thread prefix icons and customize it.

Would you like to customize your prefixes?

Here's a simple DIY tutorial as an example. Of course, you can extend it for your own needs as you wish.


So, read this tutorial to achieve something like this:
View attachment 22261
1. Create your custom prefix

In admin CP go to Forums > Thread prefixes and click on button Add prefix on the right top side.

Fill the form like this:
View attachment 22262
You can choose any prefix name you want, just...

Read more about this resource...
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
201
Points
53

Reputation:

Hello
I need more support for this tip,
I did everything but no any changes are happen when I do it, it’s comes a blank prefix without any style.
Shall I add any other code or source in Page_container?
Please advise me.
Thank you.
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

Hello
I need more support for this tip,
I did everything but no any changes are happen when I do it, it’s comes a blank prefix without any style.
Shall I add any other code or source in Page_container?
Please advise me.
Thank you.
shababalrafedainWhich theme have you installed?
You only need to apply the prefix to the specific forum section where you would like to use it, thats it. If you now create a new thread in that section you could choose one of the created prefixes.
 
View previous replies…

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
201
Points
53

Reputation:

Which theme have you installed?
You only need to apply the prefix to the specific forum section where you would like to use it, thats it. If you now create a new thread in that section you could choose one of the created prefixes.
BattleKingFirst of all, thank you for your reply.
I am using the main theme with some changes I did.
I have many prefixes created with coming styles and it works fine, but It‘s not work (mean it comes without any style) when I select a custom css class.
I hope it’s clear now.
Thank you.
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

First of all, thank you for your reply.
I am using the main theme with some changes I did.
I have many prefixes created with coming styles and it works fine, but It‘s not work (mean it comes without any style) when I select a custom css class.
I hope it’s clear now.
Thank you.
shababalrafedainPlease post the screenshots of the settings you have made. Maybe a typo. I could also check your site if you want
 

Wolf Knight

+Lifetime VIP+
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Jul 3, 2019
Messages
201
Points
53

Reputation:

Please post the screenshots of the settings you have made. Maybe a typo. I could also check your site if you want
BattleKing
AA73D0CB-AAA5-4C9D-9CCF-B2F855577D64.jpeg


And this code in Extra.less

CSS:
/*** Prefix Pack A ***/
.label.label--pack-a {
    background: #CD7F32;
    color: #fafafa;
    &:hover {
        background: #4A4E51;
        color: #fafafa;
    }
    &:before {
        .m-faBase();
        .m-faContent(@fa-var-cogs);
        padding-right: 5px;
    }
}
/**********/
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,514
Points
523

Reputation:

View attachment 22447

And this code in Extra.less

CSS:
/*** Prefix Pack A ***/
.label.label--pack-a {
    background: #CD7F32;
    color: #fafafa;
    &:hover {
        background: #4A4E51;
        color: #fafafa;
    }
    &:before {
        .m-faBase();
        .m-faContent(@fa-var-cogs);
        padding-right: 5px;
    }
}
/**********/
shababalrafedainremove label. from the CSS extra.less file and remove it from the above field
 
Top