Trying to show users avatar on Forumhome in 3.5...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheMusicMan
    Senior Member
    • Oct 2002
    • 2140
    • 3.7.x

    Trying to show users avatar on Forumhome in 3.5...

    Hi Coders

    How do I show the users avatar on forumhome page in vB3.5? I can do it in 3.0.n but that dsoesn't seem to work in 3.5!!

    In 3.0.n I used

    <div align"center">$welcomeavatar</div>

    ... but that yields nothing now... Any pointers please?
    John
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    I think that variable is a hack. But you should be able to use code like this:

    Code:
    <img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]" alt="" border="0" />

    Comment

    • vbcore
      Senior Member
      • Sep 2004
      • 370
      • 3.0.7

      #3
      I hate to bring up an old thread - but this doesnt seem to work for vBulletin 3.6. Jake can you help me out?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        It works when I test it on my 3.6.0 test forum.

        Comment

        • Allan
          Senior Member
          • Feb 2005
          • 170
          • 3.8.x

          #5
          Originally posted by Jake Bunce
          I think that variable is a hack. But you should be able to use code like this:

          Code:
          <img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]" alt="" border="0" />
          Work perfectly, but if user don't have avatar ?
          Administrator vBulletin-Ressources.com,
          French vBulletin Resources.

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Then it shows clear.gif from your forum root.

            Comment

            • Allan
              Senior Member
              • Feb 2005
              • 170
              • 3.8.x

              #7
              Originally posted by Jake Bunce
              Then it shows clear.gif from your forum root.
              Thank for this answer

              In what other case can this image serve ?
              Administrator vBulletin-Ressources.com,
              French vBulletin Resources.

              Comment

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