Osclass Support Forums - Rackons.in

Other Osclass Support => Other Questions Related to Osclass => Topic started by: tamim on May 05, 2018, 06:51:06 AM

Title: [SOLVED] How to solve profile picture showing for my users account in my website
Post by: tamim on May 05, 2018, 06:51:06 AM
When a user registered for an account in my website the all data saved with profile picture in my admin panel. admin panel shows the profile picture exactly. But in my website the user can't show his profile picture please give me a solution for this problem please help me.
I used Madhouse Avatar plugin for this registration part. Sorry I forgot to say this.
I attached my files
Title: Re: How to solve profile picture showing for my users account in my website
Post by: Osclass Developer on May 05, 2018, 06:57:36 AM
If you are using profile picture plugin. then you need to just put simple code to upload and show profile picture.

Place below code on the user-profile.php - make sure this code is place OUTSIDE of the existing form on that page - this function will allow users to upload their profile picture

Code: [Select]
<?php profile_picture_upload(); ?>
Place below code on pages you wish to show the profile picture, including user-public-profile.php and item.php

Code: [Select]
<?php profile_picture_show(); ?>
Then it will work better!!!!
Title: Re: How to solve profile picture showing for my users account in my website
Post by: tamim on May 05, 2018, 07:08:09 AM
I used Madhouse Avatar plugin for this registration part. Sorry I forgot to say this.
Title: Re: How to solve profile picture showing for my users account in my website
Post by: Osclass Developer on May 05, 2018, 07:08:53 AM
please pm me your oc-admin details then i can check this plugin and will explain you better
Title: Re: How to solve profile picture showing for my users account in my website
Post by: Osclass Developer on May 05, 2018, 07:13:55 AM
you can try below code also for display madhouse avatar

Add one of these hooks to display the avatar

 Can be include in your navigation bar to display the user avatar
         
Code: [Select]
<?php osc_run_hook('mdh_avatar_logged_user_nav'); ?>           
For User avatar thumbnail
         
Code: [Select]
<?php osc_run_hook('mdh_avatar_thumbnail'); ?>       
For User avatar preview
             
Code: [Select]
<?php osc_run_hook('mdh_avatar_preview');  ?>         
For User avatar normal
             
Code: [Select]
   <?php osc_run_hook('mdh_avatar_normal');  ?>           
Title: Re: How to solve profile picture showing for my users account in my website
Post by: tamim on May 05, 2018, 07:30:35 AM
thanks a lot to Osclass Developer it works properly. thanks for your quick support
Title: Re: How to solve profile picture showing for my users account in my website
Post by: Osclass Developer on May 05, 2018, 07:33:33 AM
Please mark as "Best Answer" for other osclass users.
Title: Re: [SOLVED] How to solve profile picture showing for my users account in my website
Post by: GoXBetCasino on August 04, 2021, 02:46:32 PM
Гоу икс бет казино или же GoXBet Casino (https://goxbet-casino.cyou/) является официальным онлайн заведением на територии СНГ!
Title: Re: [SOLVED] How to solve profile picture showing for my users account in my website
Post by: pinupcasino777LJ on December 28, 2021, 10:27:49 PM
Игровые автоматы https://pin-up-casino.cyou/ Казино имеют официальную лицензию и стабильно выплачивают игрокам их выигрыши!