Author Topic: [SOLVED] How to solve profile picture showing for my users account in my website  (Read 2520 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

tamim

  • Newbie
  • *
  • Posts: 3
    • View Profile
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
« Last Edit: May 05, 2018, 07:38:19 AM by Administrator »



Osclass Developer

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
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!!!!

Osclass Support Forums - Rackons.in


tamim

  • Newbie
  • *
  • Posts: 3
    • View Profile
I used Madhouse Avatar plugin for this registration part. Sorry I forgot to say this.

Osclass Developer

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
please pm me your oc-admin details then i can check this plugin and will explain you better

Marked as best answer by admin on May 04, 2018, 09:06:34 PM

Osclass Developer

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
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');  ?>           

tamim

  • Newbie
  • *
  • Posts: 3
    • View Profile
thanks a lot to Osclass Developer it works properly. thanks for your quick support

Osclass Developer

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Please mark as "Best Answer" for other osclass users.

GoXBetCasino

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • GoXBet Casino
Гоу икс бет казино или же GoXBet Casino является официальным онлайн заведением на територии СНГ!

pinupcasino777LJ

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Pin Up Casino
Игровые автоматы https://pin-up-casino.cyou/ Казино имеют официальную лицензию и стабильно выплачивают игрокам их выигрыши!

Osclass Support Forums - Rackons.in