MyBB Community Forums

Full Version: Displaying Avatar Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Im trying to display the users avatar beside the welcome back message. This is what im using to display it :

<img src="{$mybb->settings['bburl']}/{$mybb->user['avatar']}" height="55" width="55" >

My problem is that im trying to set a default avatar when a user signs up. Im using this mod: http://mods.mybb.com/reviews/default-profile

When i right click and view the image its giving me a double url and obviously wont display the default avatar.

Example or url that its producing:
http://mysitehere.com/http://mysitehere.com/images/avatars/supertux.gif
First of all, Default Profile is not working.
And, check in the User Submitted Tutorials Wink
Have you used something like this as your default avatar "images/avatars/supertux.gif"?

You should not put the "http://mysitehere.com/" part in it...

Wink
Default Profile is not working so ive uninstalled it so maybe that was the reason for double url's.
ive no problem displaying an avatar when i select one, my problem is i want to display a default avatar when a new user registers.

Im now tryin to do this : http://community.mybb.com/thread-74550.html

Any ideas on the php code id need ?
Sorry, but Dennis Tsang Default Profile Plugin 2.1.0 is working because it is actually used in one of my site... Wink
It did not work on 5 of my sites, AND, looks at the reviews.
Could be some conflict with other plugins, but it is working well on one of my site that use actually over 30 plugins...

Would be more informative to tell what portion of the plugin is not working?

Was it activated?
Have you filled-in the settings in "Default Profile (DennisTT)"?
Is there any changes in a new registration profile afterward?

Would be better if Dennis took the time to shime-in here!

Wink
Yea the only thing ive noticed when the plugin is activated is where the image should be displayed is blank but right clicking the blank space and viewing image location , displays this link :

http://mysitehere.com/http://mysitehere.com/images/avatars/supertux.gif
So it is because the plugin is working, but have the wrong path in its avatar setting. Just put images/avatars/supertux.gif in the setting...

Wink
yes thats the path that i have set already Sad
Pages: 1 2