Announcement

Collapse
No announcement yet.

Visual graphic for subforum on VB5

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Site Builder] Visual graphic for subforum on VB5

    Hi guys... another question on VB5...

    On OLD VB3 I've got suboforums with visual graphic.... related to categories....


    Example...


    Click image for larger version

Name:	visual-subforum-graphics.jpg
Views:	1
Size:	172.6 KB
ID:	4385874

    And. the example 'jpg file'



    Click image for larger version

Name:	203.jpg
Views:	1
Size:	4.3 KB
ID:	4385875


    How can make similar thing on VB5?

  • #2
    You can do it similarly to how it was done in vBulletin 3 and 4. Edit the display_Forums_item template to include the code the appropriate images based on the forum' node ID value.
    For example:
    Code:
    <a href="somelink.html"><img src="path/to/image/imagename_{vb:raw forum.nodeid}.ext" class="float_right"></a>
    Or if the image isn't a link, then you can use CSS.
    Something link:
    Code:
    #forumXX .forum_info {background-image: url:('path/to/image/imagename.ext'); background-position:right;
    Though I haven't tested either of these. Just going off of the existing code. You will probably need to make some changes to suit your needs.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    Vote for your most annoying bugs.
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      Originally posted by Wayne Luke View Post
      You can do it similarly to how it was done in vBulletin 3 and 4. Edit the display_Forums_item template to include the code the appropriate images based on the forum' node ID value.
      For example:
      Code:
      <a href="somelink.html"><img src="path/to/image/imagename_{vb:raw forum.nodeid}.ext" class="float_right"></a>
      Or if the image isn't a link, then you can use CSS.
      Something link:
      Code:
      #forumXX .forum_info {background-image: url:('path/to/image/imagename.ext'); background-position:right;
      Though I haven't tested either of these. Just going off of the existing code. You will probably need to make some changes to suit your needs.
      Thanks.... I'll try...

      Comment


      • #4
        I think it would be better to use the templat-hook "forumitem_below_description" and a new (own) template. So you don't have to change the template after every update. You could get an idea of how to do it when you look into this: https://www.vbulletin.org/forum/showthread.php?t=325484
        vBulletin-forum.de | Das deutschsprachige vBulletin 5 Forum! | Widgets, Mods und Anleitungen auf deutsch.
        Team online, Navbar UnreadCount, Navbar-Icons, Moderation-Info, New: Show hook-positions, Auto-close Threads, Latest Likes

        Comment


        • delicjous
          delicjous commented
          Editing a comment
          Oh, I don't work with subforums so I just noticed that it is unfortunately no description and also no hook at subforums.
      Working...
      X