vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom Image upload Field in User Profile (https://vborg.vbsupport.ru/showthread.php?t=282807)

rbutterworth 05-11-2012 11:42 PM

Custom Image upload Field in User Profile
 
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-12-2012 11:37 PM

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):
Code:

<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 01: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


All times are GMT. The time now is 11:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01431 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete