Support » Plugin: User Avatar » [Plugin: User Avatar] Avatar Shortcode for Page

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Enej Bajgoric


    Sorry there are no shortcodes available for the plugin.

    Maybe in the next release.

    Hi Enejb, that would be absolutely perfect. It would mean I could finally integrate user avatar with the custom profile page of s2members (which also works with a shortcode). Are you working on a new release? When do you think it’ll be ready? If it’s only a couple of weeks or months, I can afford to wait.

    Never mind, I found another way.


    @floortjahh – would you mind sharing what you did as I need to do the same?


    Sure! I have a profile using a shortcode so I was looking for a box using a shortcode as well. Here’s how I did it:

    Instal Simple Local Avatars

    Install this plugin

    Add a new shortcode and enter this code:

    <?php get_header();
    global $user_ID;
    if ($user_ID) {
    $user_info = get_userdata($user_ID);
    $id = $user_info->ID;
    <?php if(isset($_POST['user_avatar_edit_submit']))
               do_action('edit_user_profile_update', $id);
    <form id="your-profile" action="" method="post">
        $myAv = new simple_local_avatars();
        <input type="submit" name="user_avatar_edit_submit" value="OK"/>

    Copy and paste the shortcode onto a page and voilla! There’s your front-end avatar uploader!

    I’m not using this anymore though. It’s not very elegant. I’m now using buddypress for its profiles, which intergrates nicely with S2 members.

    Anyway, good luck!

    Great Thanks I got it working. Your help was much appreciated! Now I just need to figure out some styling for it.


    You’re welcome. Good luck!

    It does not work with my site. The upload form is shown on the front end, but the avatar does not changed.

    Do you have any advice to resolve this problem?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: User Avatar] Avatar Shortcode for Page’ is closed to new replies.