vb5 temp fix for custom forum icons(any size)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts

  • Trevor Hannant
    replied
    I've closed this topic as:

    1. It's 6 years old and unrelated to your issue and
    2. You've got another topic on this open as well...

    Please don't post multiple times on the same issue. Additionally, topics from years ago will be based on significantly older versions of vBulletin and not the version you're running....

    Leave a comment:


  • Rick Campbell
    replied
    Thank you so much, now I just need to find out why 2 of mine are not displaying as transparent background when they are or should be.

    Any ideas on that?

    Leave a comment:


  • Mark.B
    replied
    Originally posted by cbr929rrerion
    Why can't vbulletin give us an option for custom icons in the channel editor we can just specify the path there for each channel...
    As Glenn says…we have.

    Leave a comment:


  • glennrocksvb
    replied
    Originally posted by cbr929rrerion
    Why can't vbulletin give us an option for custom icons in the channel editor we can just specify the path there for each channel...
    This is an old topic. There's an option now to upload an image in the Channel Manager.

    Leave a comment:


  • Rick Campbell
    replied
    Why can't vbulletin give us an option for custom icons in the channel editor we can just specify the path there for each channel...

    Leave a comment:


  • applemaniacos
    replied
    Originally posted by Glenn Vergara
    Try my suggestion here.

    https://www.vbulletin.com/forum/foru...79#post4376479

    That also applies here.
    Thank you Glenn Vergara
    I've tried, but it's still the same.

    What I see that is causing this mismatch is this:
    excuse my ignorance, please

    Haga clic en la imagen para ver una versión más grandeNombre:	Captura de pantalla 2017-09-03 a las 9.47.28.pngVisitas:	1Size:	1,23 MBID:	4376649

    Leave a comment:


  • glennrocksvb
    replied
    Try my suggestion here.



    That also applies here.

    Leave a comment:


  • applemaniacos
    replied
    Thank you very much, Glenn Vergara
    I am testing with this code. someone knows the way in the responsive method, the thread title is left.
    Please.
    Thank you.

    Haga clic en la imagen para ver una versión más grande  Nombre:	Captura de pantalla 2017-09-02 a las 23.13.13.png Visitas:	1 Size:	119,8 KB ID:	4376632

    Code:
    /* start custom forum icons */
    /* Forums */
    .forum-list-container .forum-item[data-channel-id="45"] .cell-forum .icon {
    background: transparent url("http://www.example.com/images/statusicon/sorteoforum_old-48.svg") no-repeat; /* forum icon for forums with old posts */
    width: 50px; /* icon width */
    height: 50px; /* icon height */
    }
    .forum-list-container .forum-item[data-channel-id="45"] .new .cell-forum .icon {
    background: transparent url("http://www.example.com/images/statusicon/sorteoforum_old-48.svg") no-repeat; /* forum icon for forums with new posts */
    width: 40px; /* icon width */
    height: 42px; /* icon height */
    }
    .forum-list-container .forum-item[data-channel-id="45"] .cell-forum > .forum-wrapper > .forum-info {
    padding-{vb:stylevar left}: 48px; /* icon width + 8 */
    }
    .forum-list-container .forum-item[data-channel-id="45"] .cell-forum .forum-desc {
    margin-{vb:stylevar left}: 48px; /* icon width + 8 */
    margin-top: -25px; /* 17 - icon height */
    }
    /* Sub Forums */
    .forum-list-container .subforum-list > td {
    padding-{vb:stylevar left}: 53px; /* icon width + 13 */
    }
    /* Responsive */
    [USER="3396"]media[/USER] only screen and (max-width: 768px)  {
    .forum-list-container .forum-item .cell-forum .forum-desc {
    margin-{vb:stylevar left}: 48px; /* icon width + 8 */
    }
    .forum-list-container .subforum-list > td {
    padding-{vb:stylevar left}: 73px; /* icon width + 33 */
    }
    }
    /* end custom forum icons */
    Last edited by applemaniacos; Sat 2 Sep '17, 10:57pm.

    Leave a comment:


  • Aros12
    replied
    Can't get the sub forum icons to work...Here's my code:

    Code:
    /* forum icon for forums with old posts (default) */
    #forum39 .cell-forum .icon {
        background: transparent url("images/css/icon_checked.png") no-repeat;
    }
    /* forum icon for forums with new posts */
    #forum39 .cell-forum .icon {
        background: transparent url("images/css/icon_notchecked.png") no-repeat;
    }

    Leave a comment:


  • Aros12
    replied
    Thanks, I did get help with the code...Here's what ended up working for me, including responsive...

    Code:
    .forum-list-container .forum-item .cell-forum .forum-desc {
        margin-left: 40px;
    }
    
    .forum-list-container .forum-item .cell-forum > .forum-wrapper > .forum-info {
        padding-left: 40px;
    }
    
    /* start custom forum icons */
    /* Forums */
    .forum-list-container .forum-item .cell-forum .icon {
    background: transparent url("images/css/icon_checked.png") no-repeat; /* forum icon for forums with old posts */
    width: 40px; /* icon width */
    height: 46px; /* icon height */
    }
    .forum-list-container .forum-item.new .cell-forum .icon {
    background: transparent url("images/css/icon_notchecked.png") no-repeat; /* forum icon for forums with new posts */
    width: 40px; /* icon width */
    height: 46px; /* icon height */
    }
    .forum-list-container .forum-item .cell-forum > .forum-wrapper > .forum-info {
    padding-{vb:stylevar left}: 48px; /* icon width + 8 */
    }
    .forum-list-container .forum-item .cell-forum .forum-desc {
    margin-{vb:stylevar left}: 48px; /* icon width + 8 */
    margin-top: -25px; /* 17 - icon height */
    }
    /* Sub Forums */
    .forum-list-container .subforum-list > td {
    padding-{vb:stylevar left}: 53px; /* icon width + 13 */
    }
    /* Responsive */
    [USER="3396"]media[/USER] only screen and (max-width: 768px)  {
    .forum-list-container .forum-item .cell-forum .forum-desc {
    margin-{vb:stylevar left}: 48px; /* icon width + 8 */
    }
    .forum-list-container .subforum-list > td {
    padding-{vb:stylevar left}: 73px; /* icon width + 33 */
    }
    }
    /* end custom forum icons */

    Leave a comment:


  • IggyP
    replied
    mess with the padding a bit...you can see where he put, like 73px = icon width +33...that can give u a closer idea whats needed

    Leave a comment:


  • Aros12
    replied
    I can't get my margins right...The icon butts up against the text...Here's the code and screen shot:

    Code:
    /* start custom forum icons */
    /* Forums */
    .forum-list-container .forum-item .cell-forum .icon {
    background: transparent url("images/css/icon_checked.png") no-repeat; /* forum icon for forums with old posts */
    width: 40px; /* icon width */
    height: 42px; /* icon height */
    }
    .forum-list-container .forum-item.new .cell-forum .icon {
    background: transparent url("images/css/icon_notchecked.png") no-repeat; /* forum icon for forums with new posts */
    width: 40px; /* icon width */
    height: 42px; /* icon height */
    }
    .forum-list-container .forum-item .cell-forum > .forum-wrapper > .forum-info {
    padding-{vb:stylevar left}: 48px; /* icon width + 8 */
    }
    .forum-list-container .forum-item .cell-forum .forum-desc {
    margin-{vb:stylevar left}: 48px; /* icon width + 8 */
    margin-top: -25px; /* 17 - icon height */
    }
    /* Sub Forums */
    .forum-list-container .subforum-list > td {
    padding-{vb:stylevar left}: 53px; /* icon width + 13 */
    }
    /* Responsive */
    [USER="3396"]media[/USER] only screen and (max-width: 768px) {
    .forum-list-container .forum-item .cell-forum .forum-desc {
    margin-{vb:stylevar left}: 48px; /* icon width + 8 */
    }
    .forum-list-container .subforum-list > td {
    padding-{vb:stylevar left}: 73px; /* icon width + 33 */
    }
    }
    /* end custom forum icons */

    Leave a comment:


  • Danloona
    replied
    i think already is fixed

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    Check post #13 of this thread.

  • Robyn L
    replied
    Thanks very much for this; it worked perfectly for the main icons.

    Can you tell me what code I would need to add to change the small sub-forum icons on the main page. I'm happy with the size, I just want to change the shape and colour. Thank you for your help.

    Last edited by Robyn L; Sun 3 Sep '17, 12:48am.

    Leave a comment:

Related Topics

Collapse

Working...