Okay so this isn't exactly an elegant solution, but I've figured out how to fix this all. It involves editing the User Photo plugin's core files (everything here refers to 0.9.5.1), so updating that plugin will definitely break this. If you still want to have a go, here's the rundown:
- Go to /wp-content/plugins/user-photo/ and open user-photo.php
- Find line 602, you should see this code `<p class='image'><img src="<?php echo $bdir . $profileuser->userphoto_image_file . "?" . rand() ?>" alt="Full size image" /><br />
Full size
</p>
<p class='image'><img src="<?php echo $bdir . $profileuser->userphoto_thumb_file . "?" . rand() ?>" alt="Thumbnail image" /><br />
Thumb
</p>`
- Replace that with `<p class='image'><img src="<?php echo $profileuser->userphoto_image_file . "?" . rand() ?>" alt="Full size image" /><br />
Full size
</p>`
- If you haven't already, in WordPress, go to Forms > User Registration > the feed you're looking to edit and then in the User Meta section, add a new custom meta field with the value of
userphoto_image_file
- Save that file and you should be all set.
This removes the thumbnail functionality of the User Photos plugin as well, which definitely sucks, but at least it's working for me at the moment. I'll let you know if there are any further updates where I can get the thumbnail functionality working as well.
Posted 12 years ago on Wednesday December 21, 2011 |
Permalink