MyBB Community Forums

Full Version: Image on Custom Profile Fields.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2015-05-07, 03:55 PM)jshort Wrote: [ -> ]I think you're underestimating just how many forums there are that would utilize something like this if it was available, but it is what it is. I've been able to make it work for the past couple of years and I've no doubt I can make it work for my needs in the future too.

This is the whole reason a sale pitch would come in handy. If you can convince the MyBB team to implement a minor change that would benefit more than half the administrators that use MyBB, then it's a step closer to your ideal Forum platform (and you don't have to get more than half the community to speak up). A sales pitch for a minor change is not over kill, it's about convincing MyBB developers that this minor change is a fantastic idea. You won't convince many people if you don't try to "sell" the idea as a good and useful improvement. It doesn't have to be a huge wall of text or "major sales pitch" as you called it, as long as the message is convincing. Your idea and mine align for the custom profile field, but I've been on the other side as a self-taught PHP user. What might be a simple idea, might have security problems so it might not be as simple as adding the IMG html tag. Compared to what MyBB developers do, my PHP knowledge pales in comparison. It's never overkill to put in a sale pitch if the developers haven't been convinced, especially if one of them was interested but wanted to know more about the idea and what value it could bring for all (or at least most) MyBB administrators.
You are limiting yourself with this suggestion. I would like to see custom profile fields where the site admin can indicate validation of data, manner of user input, and the format it is displayed.

As an example, we are constantly talking about linking to social media profiles. Why not have a custom profile field where users can enter their Facebook username (for example), the software validates that it's a valid format (eg. checks for invalid characters), and outputs a link to the user's Facebook wall?

Same idea could be had for images. The field type will validate the format of a URL (possibly blocking bad hosts) and display the custom field as an image.
(2015-05-14, 10:33 PM)laie_techie Wrote: [ -> ]You are limiting yourself with this suggestion. I would like to see custom profile fields where the site admin can indicate validation of data, manner of user input, and the format it is displayed.

As an example, we are constantly talking about linking to social media profiles. Why not have a custom profile field where users can enter their Facebook username (for example), the software validates that it's a valid format (eg. checks for invalid characters), and outputs a link to the user's Facebook wall?

Same idea could be had for images. The field type will validate the format of a URL (possibly blocking bad hosts) and display the custom field as an image.

Validation as in the same/similar fashion as the custom BBCode? Regex expression, right? (Or did I miss that guess completely?)
I could get behind this idea, though I would prefer it to be set up like the CSS editor. You have the "Simple Mode" tab and the "Advanced Mode" tab. This way, should an administrator want to customize everything about the custom profile field, they can, while at the same time the simple mode can provide the basics we currently have for quick profile field creation.
(2015-05-14, 10:33 PM)laie_techie Wrote: [ -> ]You are limiting yourself with this suggestion.  I would like to see custom profile fields where the site admin can indicate validation of data, manner of user input, and the format it is displayed.

As an example, we are constantly talking about linking to social media profiles. Why not have a custom profile field where users can enter their Facebook username (for example), the software validates that it's a valid format (eg. checks for invalid characters), and outputs a link to the user's Facebook wall?

Same idea could be had for images. The field type will validate the format of a URL (possibly blocking bad hosts) and display the custom field as an image.

We have implemented validation rules for profile fields in 2.0 already, as well as using HTML5 input types (so numerics, text, dates, etc.) and the usage of the WYSIWYG editor (which is not yet implemented). Validation is extensible with custom validation functions, so there's a large scope for extension and enhancement here.

We're considering allowing a template to be used to display a field from the ACP, so things like linking to social media profiles should be possible. Images would also be possible, if you supplied a template of the correct form. Eg:

<img src="{{ field.value }}" alt="{{ field.title }}" />
Yeah, profile field specific template/display format would be a solution to this and many other similar requests.
Pages: 1 2