I'm trying to create a functionality like facebook's "Change Avatar". That when you hover your own avatar.. a button pops up.. with “change avatar”.
I've tried with this code in the member-header.php file and this works, but I have no idea how to add the image to the avatar with "Change Avatar" or in this case in dutch.. "Profielfoto Wijzigen"
Would be great if anybody of you experts knows how to add this.
I'm trying to create a functionality like facebook's "Change Avatar". That when you hover your own avatar.. a button pops up.. with “change avatar”.
I've tried with this code in the member-header.php file and this works, but I have no idea how to add the image to the avatar with "Change Avatar" or in this case in dutch.. "Profielfoto Wijzigen"
Would be great if anybody of you experts knows how to add this.
I tried with just an html link and image tag.. to place the "wijzigProfielfoto.jpg" on top of the avatar.
But it gets shown besides the avatar.
I just can't get it on top of it.
Let's skip my previous question.. :)
What about a button with "Change Avatar" on a member page, how to call such a button? (The default button in the Daily Theme. Also used for Login/Search/etc.)
I've made an example in photoshop. (see attachment) The code is (i think) something like in the other attachment.
I'm using the plugin: bp-auto-activate-auto-login .. it's a very handy plugin for quick signups but it skips the 'Upload Avatar' page.
Would be great if somebody knows how to add a button like this.
Responses (5)
Member — 5th July 2010 #
Correction.. this is the code..
It got messed up by pasting it here..
<div id="item-header-avatar">
profile/change-avatar/">
<?php bp_displayed_user_avatar( 'type=full' ) ?>
</div><!--#item-header-avatar-->
Hopefully somebody can help me out.
Thanks
Member — 5th July 2010 #
isn't working either..
here's a screenshot
Keeper of the Dark Chocolate — 5th July 2010 #
Can't help but I'll bbcode your code for you since it;s not showing up correctly:
[div id="item-header-avatar"][br /]
[a]profile/change-avatar/"][br /]
[?php bp_displayed_user_avatar( 'type=full' ) ?][br /]
[/a][br /]
[/div][!--#item-header-avatar--]
I do note though that the link in the second line is incorrect. Not sure if it's that way in your original. Should be the following:
[div id="item-header-avatar"][br /]
[a href="profile/change-avatar/"][br /]
[?php bp_displayed_user_avatar( 'type=full' ) ?][br /]
[/a][br /]
[/div][!--#item-header-avatar--]
I gather the code bit isn;t working again? Seen a couple of these tonight.
Member — 6th July 2010 #
the code module is a bit weird.. :)
---
I tried with just an html link and image tag.. to place the "wijzigProfielfoto.jpg" on top of the avatar.
But it gets shown besides the avatar.
I just can't get it on top of it.
Member — 7th July 2010 #
Let's skip my previous question.. :)
What about a button with "Change Avatar" on a member page, how to call such a button? (The default button in the Daily Theme. Also used for Login/Search/etc.)
I've made an example in photoshop. (see attachment) The code is (i think) something like in the other attachment.
I'm using the plugin: bp-auto-activate-auto-login .. it's a very handy plugin for quick signups but it skips the 'Upload Avatar' page.
Would be great if somebody knows how to add a button like this.
Become a member