Announcement

Collapse
No announcement yet.

How can I assign (no_avatar.gif) for a no avatars users ?

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

  • How can I assign (no_avatar.gif) for a no avatars users ?

    Hello

    I need assign a no_avatar.gif for a without avatar users default,can I do that ?

    Thanks

  • #2
    Any idea this one ?

    Comment


    • #3
      I believe you will need to write a hack to do this.
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment


      • #4
        Couldn't you write a conditional statement in the template? Just guessing here, but something like this in the postbit template.

        Code:
        <if condition="$avararurl == ''"><img src="default.gif"></if>

        Comment


        • #5
          This works, in your postbit_userinfo template...

          Code:
          <if condition="$post[avatar]"><br />
          $post[avatar]<else /><img src="images/noavatar.gif" border="0" hspace="4" vspace="4" 
          alt="No avatar selected" /><br /></if>
          BritishBlades :: Cutsom Knives

          Comment


          • #6
            I'm using 3.0.0 Gamma where is this temp ? I find only in AAA_Old_Backup_Templates

            Comment


            • #7
              Postbit Templates -> postbit and postbit_legacy (just incase you're interested in using both...)
              To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

              Comment


              • #8
                I find in postbit

                <if condition="$show['avatar']"><td class="alt1"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>

                and find postbit_legacy

                <if condition="$show['avatar']">
                <div class="smallfont">
                &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                </div>
                </if>

                Can I remove it these code ? Or add tril0Byte code below or above ?

                Thanks

                Comment

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