Center post icons + remove them from forumhome

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Silviu
    Senior Member
    • May 2001
    • 163
    • 3.6.x

    Center post icons + remove them from forumhome

    Hola everyone

    Today we decided to do some aesthetic changes to the forum, and the post icons were our first victims

    For a proof of concept test we added some new icons, and the result is what you see in the attachment.

    However, we haven't implemented this yet for two reasons:

    1. As you can see, the last post icon, the one for Sniper Elite, which is a 15x15 default icon (versus the new 32x32 ones) isn't centered in the cell. How can we correct this? We tried using an align="center" in the forumdisplay template, here:

    Code:
    <if condition="$show['threadicons']">
            <td class="thead" [COLOR=Red]align="center"[/COLOR] colspan="2">&nbsp;</td>
    
        <else />
    ... and in the threadbit template, here:

    Code:
    <if condition="$show['threadicons']">
            <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" [COLOR=Red]align="center"[/COLOR]/><else />&nbsp;</if></td>
        </if>
    ... but the default icon is still aligned to the left

    2. We don't know how to remove the post icons from the forum index page. We looked in the Forumhome template, but didn't find any entry for ['threadicons']

    Any suggestions on how to circumvent these problems will be greatly appreciated.
    Attached Files
  • Jose Amaral Rego
    Senior Member
    • Feb 2005
    • 11058
    • 1.1.x

    #2
    I only notice this alignment on one style of yours: Matrix Revisited
    You can compare or revert template to fix. I would copy and paste it to notepad and ot download xml file first.

    Comment

    • Silviu
      Senior Member
      • May 2001
      • 163
      • 3.6.x

      #3
      The code in red was added by us. It's not there in the default vB 3.6 template. As in, we added it but it made no difference, alignment wise.

      Comment

      • Jose Amaral Rego
        Senior Member
        • Feb 2005
        • 11058
        • 1.1.x

        #4
        So then 'Matrix Revisited' style has not been edited to have alignment attribute added to template, but other have? I do not have those styles to check how it was coded and can not tell what else was done to it, as they are simple creations and might need to know where you got them exactly.

        Comment

        • Silviu
          Senior Member
          • May 2001
          • 163
          • 3.6.x

          #5
          All our "Matrix" styles are basically offshoots of the default vB style. They're just colored differently, use postbit_legacy instead of postbit and have the vB 2.x icons (Matrix Revisited is the only one which differs in this regard). So the style hierarchy is something like this:

          vBulletin 3 (which is a modified vB 3.6 template)
          - Matrix
          - Matrix Reloaded
          - Matrix Revolutions
          - Matrix Revisited
          vB 3.6 Default (this is for debug purposes only)

          Therefore, all the changes are made in the parent vBulletin3 style, so the child styles would automatically inherit the modifications.

          Now, at first, the align code wasn't present in either the vBulletin3 template or the vB 3.6 default style, so we assumed that the post icons will be centered by default. After we saw that this wasn't the case, we added align="center" in both the forumdisplay and the threadbit templates in the vBulletin 3 style (thus introducing it in the child styles as well), but nothing changed, alignment wise.

          Later edit: come to think of it, the problem might not by in the code itself, but in the icon sizes. The default ones that we use have an odd height & width (15x15) while the new ones have even sizes (32x32).

          Even later edit: we resized all the default icons to 16x16, but the left alignment remained.
          Last edited by Silviu; Thu 20 Sep '07, 2:36pm.

          Comment

          • Jose Amaral Rego
            Senior Member
            • Feb 2005
            • 11058
            • 1.1.x

            #6
            I am viewing in IE 7 and in 'Matrix Revisited' it looks like only highlights(inset) on top and left makes it look smaller, but I do not have the xml file to see what is going on or images to see if it centered on background color.

            Comment

            • Silviu
              Senior Member
              • May 2001
              • 163
              • 3.6.x

              #7
              Well, we finally managed to center align the post icons (there was a " missing from the HTML code ).

              Now the only open issue is how to remove them from the forumhome.

              Comment

              • Jose Amaral Rego
                Senior Member
                • Feb 2005
                • 11058
                • 1.1.x

                #8
                You need to edit template(s) FORUMHOME & forumhome_forumbit_level2_post
                1. <td class="thead">&nbsp;</td>
                2. <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>

                Comment

                • Silviu
                  Senior Member
                  • May 2001
                  • 163
                  • 3.6.x

                  #9
                  We need the post icons removed, not the thread status ones (see pic)

                  I did a bit of research and someone already solved this issue, but for vB 3.5

                  Later edit: nevermind, the same code exists in vB 3.6.8 and the change in the above link works like a charm.

                  All problems solved
                  Attached Files
                  Last edited by Silviu; Fri 21 Sep '07, 7:00am.

                  Comment

                  • Silviu
                    Senior Member
                    • May 2001
                    • 163
                    • 3.6.x

                    #10
                    Instead of starting a new thread i'll ask here, since it's related:

                    Is it possible to remove the post icons from Search Results and Thread Subscriptions?

                    I did a template search for if condition="$show['icon'] but the only result was forumhome_lastpostby

                    Comment

                    • Jose Amaral Rego
                      Senior Member
                      • Feb 2005
                      • 11058
                      • 1.1.x

                      #11
                      Try using condition not to display in those pages and you need to add colspan 2 too 'statusicon'

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      😀
                      😂
                      🥰
                      😘
                      🤢
                      😎
                      😞
                      😡
                      👍
                      👎