Hi all
Please help me to make the AVATAR work on the GAMMA theme.
After updating osclass 4.2, the author tells us that we have support for avatar operation and we can load the code from THEMA SIGMA.
I uploaded the code, you can see the AVATAR implemented in the profile but I can't upload the avatar picture.
The photo upload button works and opens the way for me to upload the photo.
But, so far. It still doesn't work.
Please help. I'm new to programming
. But I can listen and place or change the codes if someone helps me.
Thanks so much for any help!
Here is the code loaded from the SIGMA theme:
<?php if(osc_profile_img_users_enabled()) { ?>
<div class="control-group">
<label class="control-label" for="name"><?php _e('Picture', 'gamma'); ?></label>
<div class="controls">
<div class="user-img">
<div class="img-preview">
<img src="<?php echo osc_user_profile_img_url(osc_logged_user_id()); ?>" alt="<?php echo osc_esc_html(osc_logged_user_name()); ?>"/>
</div>
</div>
<div class="user-img-button">
<?php UserForm::upload_profile_img(); ?>
</div>
</div>
</div>
<?php } ?>