*

BabyDunk

  • ****
  • 161 posts
Madhouse Avatar css
« on: May 31, 2016, 02:41:25 AM »
hello Frosticek :) me again lol

i bought the madhouse avatar plugin because the profile picture plugin that came with the theme never worked for me . i think we exchanged emails on the matter around a year ago.

well my question is , is their an easier way to incorporate madhouse avatar considering  you already have the css rules for profile picture.

i tried this, but it just breaks the grey-box
Code: [Select]
<div class="gray-box">
          <?php if(function_exists('mdh_avatar_preview_url')) { ?>
            <?php if(osc_item_user_id() <> and osc_item_user_id() <> '') { ?>
              <a href="<?php echo mdh_avatar_preview_url(osc_item_user_id()); ?>" title="<?php echo osc_esc_html(__('Check profile of this user''patricia')); ?>">
                <?php mdh_avatar_preview_url(null'item'33); ?>
              </a>
            <?php } else { ?>
              <?php mdh_avatar_preview_url(null'item'33); ?>
            <?php ?>
          <?php ?>


madhouse recommend this which does work but will be a nightmare for getting the css just right , i believe
Code: [Select]
<img src="<?php echo mdh_avatar_preview_url(osc_item_user_id()); ?>" />
thanks again for your help
Chris
« Last Edit: May 31, 2016, 02:50:02 AM by aweegander »
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Madhouse Avatar css
« Reply #1 on: May 31, 2016, 07:23:38 AM »
@aweegander
That is totally different plugin and is probably integrated in very different way as was profile picture, so you cannot just replace code.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Madhouse Avatar css
« Reply #2 on: May 31, 2016, 10:16:55 AM »
ok thanks for the advice .  im just realising that it sort of acting like the profile picture plugin .. it will let me upload a default picture from admin panel but individual pictures from the my profile panel dont seem to work lol time to talk with madhouse lol

thanks again
« Last Edit: May 31, 2016, 10:21:22 AM by aweegander »
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Madhouse Avatar css
« Reply #3 on: May 31, 2016, 10:36:54 AM »
@aweegander
Well I still would choose default Profile picture plugin. It works ok, only need to make sure privileges are ok.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Madhouse Avatar css
« Reply #4 on: June 01, 2016, 02:56:14 AM »
oooh i would love it Frosticek , if i could get profile picture working on my server. its perfectly layed out on every page but for some reason it will not upload pictures. i have made the uploads dir and files  777 just to see if that was the reason but it still wouldnt upload, not even one . it doesnt leave any errors in the logs . it has be baffled  :-[

Its strange because everything else uploads and works. well atleast until i installed madhouse avatar. on that i can upload a default image from the admin panel but can not upload anything from the my profile panel.

i have my daughter this week so wont get much time to get my head into it properly . maybe during school hours and when shes in bed lol

the joys  :D

I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Madhouse Avatar css
« Reply #5 on: June 01, 2016, 07:30:34 AM »
@aweegander
I would try to communicate with your hosting provider, there might be bug in your file structure that is blocking file uploads...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Madhouse Avatar css
« Reply #6 on: June 12, 2016, 03:52:41 AM »
Hey Frosticek  ;D

you were indeed right, the problem with upload pictures on profile picture lies in my database somewhere. a bug  :(

do you know what tables i need to save in order to keep my users and listings information intacted. so i can drop the rest and start fresh

Profile picture plugin looks so good when their is a picture in it haha. cant wait until i get this sorted


cheers
Chris


I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

BabyDunk

  • ****
  • 161 posts
Re: Madhouse Avatar css
« Reply #7 on: June 12, 2016, 10:27:37 AM »
Scrub that ^^^^^^^^^^^^^

i was able to get my listings and users transfered to a clean install but once i added all my changes  it stop upload the profile picture again.

will have to take my time and test everytime i alter something :( lol
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

BabyDunk

  • ****
  • 161 posts
Re: Madhouse Avatar css
« Reply #8 on: June 17, 2016, 03:10:12 AM »
Hi Frosticek

i got the profile picture working . you know what it was lmao it was in the config.php.

i was using the subdomain www.
Code: [Select]
define('WEB_PATH', 'https://www.domain.tld/');
profile picture does not like that. i dont know how many times i have reinstalled my server, reinstalled osclass , test servers, new php version, every nginx directive i could get my hands on. the amount of time i have spent trying to figure that out and it turns out to be the www. subdomain.

this works great
Code: [Select]
define('WEB_PATH', 'https://domain.tld/');


i never came across anyone else with this problem or maybe i just skipped by and didnt even realise

but why can i not use the www. subdomain?
something more to understand.


well profile picture is now working 100% :D 

cheers
Chris
« Last Edit: August 28, 2016, 01:26:52 PM by BabyDunk »
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D

*

MB Themes

Re: Madhouse Avatar css
« Reply #9 on: June 17, 2016, 08:42:11 AM »
Nice findings, it might help other people to solve such issue. But no idea why it did not like www, maybe problem to create path.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Bluebird

  • **
  • 5 posts
Re: Madhouse Avatar css
« Reply #10 on: August 13, 2016, 09:37:36 PM »
Code: [Select]
define('WEB_PATH', 'https://domain.tld/');
this solution is not working in my case :(

I have :
Code: [Select]
define('WEB_PATH', 'http://tuningmarket.eu/'); and profile avatar is not working.


anyone have any idea?

which folder should have 777 permission?

« Last Edit: August 13, 2016, 09:41:48 PM by Bluebird »

*

MB Themes

Re: Madhouse Avatar css
« Reply #11 on: August 14, 2016, 09:35:08 AM »
@Bluebird
I think it is uploads folder, but can be also folder of plugin in oc-content/plugins.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

BabyDunk

  • ****
  • 161 posts
Re: Madhouse Avatar css
« Reply #12 on: August 15, 2016, 01:45:24 AM »
Hi Bluebird

which plugin are you using?? i had trouble with profile_picture plugin so bought the madhouse avatar but once i got profile_picture working i didnt use madhouse.

All my dir are set at 755 and files 644.

if you are using madhouse  are you placing the <?php osc_run_hook("user_profile_form", osc_user()); ?> code in the right place??

try sticking it on line 112 of user_profile.php

i just tested it and it upload fine from that location . it wont work from the sidebar as you need to hit the update profile button to upload the image :-/
« Last Edit: August 15, 2016, 01:50:03 AM by BabyDunk »
I Am A Noob But I Am Here To Learn.
Please be patient ;) ;D