Visual graphic for subforum on VB5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mito22
    Member
    • Dec 2006
    • 92
    • 3.6.x

    [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:	31
Size:	172.6 KB
ID:	4385874

    And. the example 'jpg file'



    Click image for larger version

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


    How can make similar thing on VB5?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #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 demonstration site.
    vBulletin 5 API

    Comment

    • mito22
      Member
      • Dec 2006
      • 92
      • 3.6.x

      #3
      Originally posted by Wayne Luke
      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

      • delicjous
        Senior Member
        • Mar 2014
        • 499
        • 6.X

        #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

        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.

      Related Topics

      Collapse

      Working...