[cXF] Node icons with image

[cXF] Node icons with image

How to change sub-node icon in forum homepage with png images as read and unread?
Try with this code:
Less:
.subNodeLink {
    &.subNodeLink--forum {

        .subNodeLink-icon {
            background-image: url('/images/your_image.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
        &.subNodeLink--read .subNodeLink-icon {
            opacity: 0.4;
        }
    }
}
 
Try with this code:
Less:
.subNodeLink {
    &.subNodeLink--forum {

        .subNodeLink-icon {
            background-image: url('/images/your_image.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
        &.subNodeLink--read .subNodeLink-icon {
            opacity: 0.4;
        }
    }
}

Thank you but there is one small problem in this code i only can use 1 png as read. What about unread icon? I want 2 different images for each.
 
Thank you but there is one small problem in this code i only can use 1 png as read. What about unread icon? I want 2 different images for each.
This:
Less:
/*** Sub-Node icons with image ***/
.subNodeLink {  
    &.subNodeLink--forum {
        // for read node
        .subNodeLink-icon {
            color: transparent;
            background-image: url('/images/your_image.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
        // for unread node
        &.subNodeLink--unread .subNodeLink-icon {
            color: transparent;
            background-image: url('/images/your_image.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
    }
}
/*****/
 
Last edited:
This:
Less:
/*** Sub-Node icons with image **/
.subNodeLink {
    i {display: none;}
  
    &.subNodeLink--forum {
        // for read node
        .subNodeLink-icon {
            background-image: url('/images/your_image.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
        // for unread node
        &.subNodeLink--unread .subNodeLink-icon {
            background-image: url('/images/your_image.png');
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
        }
    }
}
/*****/

Thank you very much only very minor problem left. There is still font awesome chat bubbles over the images i have assigned. How to get rid of them?
 

Attachments

  • Screenshot_14.webp
    Screenshot_14.webp
    66.6 KB · Views: 15
Bu:
Less:
/[B]* Resimli alt düğüm simgeleri *[/B]/
.altDüğümBağlantısı { 
    &.subNodeLink--forum {
        // okuma düğümü için
        .subNodeLink-simgesi {
            renk: şeffaf;
            arka plan-görüntüsü: url('/resimler/resiminiz.png');
            arka plan-tekrarı: tekrar-yok;
            arka plan konumu: merkez;
            arka plan boyutu: içerir;
        }
        // okunmamış düğüm için
        &.subNodeLink--okunmamış .subNodeLink-icon {
            renk: şeffaf;
            arka plan-görüntüsü: url('/resimler/resiminiz.png');
            arka plan-tekrarı: tekrar-yok;
            arka plan konumu: merkez;
            arka plan boyutu: içerir;
        }
    }
}
/*****/[/KOD]
[/QUOTE]
2.3.4 Şu anda düzgün çalışmıyor. Bana yardım edebilir misiniz? Forumlara bir simge atadım ancak görünmüyor. Alt forumlara da atadım ancak onlar da görünmüyor. Kategorilere, forumlara ve alt forumlara (Forum Alt Kategorileri) nasıl simge atayabilirim?
[ATTACH type="full" size="390x81"]314093[/ATTACH]
 

Attachments

  • 1731958389751.webp
    1731958389751.webp
    7.1 KB · Views: 8
I've updated the code above.


2.3.4 is not working properly right now. Can you help me? I assigned an icon to the forums, but it doesn't appear. I assigned it to sub-forums as well, but they don't show up either. How can I assign an icon to categories, forums, and sub-forums (Forum Subcategories)?
1732038469368.webp
 
Back
Top Bottom