PDA

View Full Version : Custom Image upload Field in User Profile


rbutterworth
05-12-2012, 12:42 AM
Hi all,

I am looking for some code similar to the avatar upload and web location fields for a custom badges per user setting.

* I have looked at the suggested method: Adding it you an album and then popping in a link to the image, but this is too complicated for the end user without a how to doc.

If anyone can help me out with code or point me at a mod, that would be awesome.

Cheers.
RB

LifesGreatestGift
05-13-2012, 12:37 AM
without an extensive plugin, you could create a custom profile field and users could insert the URL to an image hosted on an image host (photobucket, tinypic etc) and then you could render the image like this

For Posts (postbit/postbit_legacy):
<vb:if condition="$post['fieldx'] != ''">
<img src="{vb:raw post.fieldx}" alt="" />
</vb:if>
x being the ID of the custom profile field.

rbutterworth
05-14-2012, 02:44 AM
Thanks for the info and code.

What I am looking for is the extensive plugin. I don't want the user to have to copy/paste the image path, just choice upload from computer or web location.

Cheers,
RB