2 images for each forum – possible with the stock VB ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mihai11
    Senior Member
    • Dec 2005
    • 398
    • 3.6.x

    2 images for each forum – possible with the stock VB ?

    Hi,

    I want to have specific images for each forum and those specific images must be different for "forum contains new posts" and "forum contains no new posts".

    Can this be done with the stock VB ?



    Regards,
    Razvan
  • peterska2
    Senior Member
    • Oct 2003
    • 8869
    • 3.7.x

    #2
    This can be done with a few template modifications and lots of new images.

    You will need a new posts and a no new posts icon for every forum that you have.

    If you want to go ahead with this, which I'm asking because it could be a lot of images, then let me know and I'll post up the instructions.

    Comment

    • mihai11
      Senior Member
      • Dec 2005
      • 398
      • 3.6.x

      #3
      Originally posted by Kerry-Anne
      This can be done with a few template modifications and lots of new images.

      You will need a new posts and a no new posts icon for every forum that you have.

      If you want to go ahead with this, which I'm asking because it could be a lot of images, then let me know and I'll post up the instructions.

      Thanks for your reply. I hired a web designer that will do the work, so I am not worry about a big number of images.

      However, I received a suggestion from a friend of mine: it would be interesting to "fade-out" images for forums that have no posts. When the forum contains new posts I will display the original image.

      In other words I will use just one image for each forum. When the forum contains no new posts I will display the same image but with an effect applied to it. Has this been done for VB ?

      A webmaster using other forum software told me that there are hacks to accomplish this, but he doesn't know such a hack for VB.

      Please tell me what you think of this.


      Regards,
      Razvan M.

      Comment

      • peterska2
        Senior Member
        • Oct 2003
        • 8869
        • 3.7.x

        #4
        You will need to ask at vBulletin.org about that as it would require a modification.

        Comment

        • mihai11
          Senior Member
          • Dec 2005
          • 398
          • 3.6.x

          #5
          Originally posted by Kerry-Anne
          You will need to ask at vBulletin.org about that as it would require a modification.

          I understand. Please post the required modifications for the first option. I may go with the first option (the one with many images).

          Comment

          • peterska2
            Senior Member
            • Oct 2003
            • 8869
            • 3.7.x

            #6
            In forumhome_forumbit_level1_post find
            Code:
            <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
            and replace with
            Code:
            <img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
            Then in forumhome_forumbit_level2_post find
            Code:
            <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
            and replace with
            Code:
            <img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
            You will need images to replace forum_new.gif forum_old.gif and also the lock versions if you display lock icons. These images will need to be named in the format forum3_new.gif where the 3 is the forumid number. It is recommended that you create and upload your images before performing the template edits.

            Comment

            • mihai11
              Senior Member
              • Dec 2005
              • 398
              • 3.6.x

              #7
              Brilliant !!

              I was expecting more changes. These changes are small - this is very good.


              The icons will be named like this:

              forum$forum[forumid]_$forum[statusicon].gif

              Example:
              forum100_new.gif


              In total there are 4 icons for each thread:

              forum100_new.gif
              forum100_new_lock.gif
              forum100_old.gif
              forum100_old_lock.gif

              Comment

              • peterska2
                Senior Member
                • Oct 2003
                • 8869
                • 3.7.x

                #8
                Thats correct. It could be taken further to deal with subforums too but the images are so small for them that unless this is something that you really wanted to do then there isn't any need to document it.

                Comment

                • mihai11
                  Senior Member
                  • Dec 2005
                  • 398
                  • 3.6.x

                  #9
                  Originally posted by Kerry-Anne
                  Thats correct. It could be taken further to deal with subforums too but the images are so small for them that unless this is something that you really wanted to do then there isn't any need to document it.

                  The above code doesn't cover the subforums ? Actually, I also need this for subforums.

                  Let me explain: if I click on a forum that has subforums then the subforums are listed at the top. I want to have special images even for these subforums. Do I need to change more templates ?

                  Comment

                  • peterska2
                    Senior Member
                    • Oct 2003
                    • 8869
                    • 3.7.x

                    #10
                    It covers all the images where the large ones are shown. The only images it doesn't cover are the tiny ones like what you find here:

                    Sub-Forums: vBulletin 3 Download Submissions, vBulletin 3 Style Packs, vBulletin 3 Language Packs, vBulletin 3 Graphics and Other Resources

                    Comment

                    • mihai11
                      Senior Member
                      • Dec 2005
                      • 398
                      • 3.6.x

                      #11
                      Originally posted by Kerry-Anne
                      It covers all the images where the large ones are shown. The only images it doesn't cover are the tiny ones like what you find here:

                      Sub-Forums: vBulletin 3 Download Submissions, vBulletin 3 Style Packs, vBulletin 3 Language Packs, vBulletin 3 Graphics and Other Resources

                      That is acceptable, I mean I don't need different images for those cases.


                      Thanks for your help. You really followed the thread until all questions were answered. Looks like soon I will have no reasons to complain about support

                      And, just in case you didn't saw my reply in another thread:

                      Happy birthday !

                      Comment

                      • peterska2
                        Senior Member
                        • Oct 2003
                        • 8869
                        • 3.7.x

                        #12
                        No problem at all

                        And thanks

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...