Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Is this at all possible?
ThistleProse Offline
Junior Member
**
Posts: 4
Joined: Sep 2019
Post: #1
Is this at all possible?
Hello!

I am looking at being able to let users stylise their profile pages by inputting HEX codes and image URLs into custom profile fields.

If they don't want to enter anything, though, I was hoping it would fill in as a preset default colour and image, which would be set in the coding.

My original idea was it input 'default' into the fields to use a default setting that would be assigned, and if they input their own setting (eg, 000000 for a Hex Code) it would insert that.

But I'm not sure how to have it differentiate between the inputs? Or is there some way to do 'if field is filled in, use that code. Else, if its empty, pull this default code'?

Any assistance would be amazing. I'm very much learning as I go here, so I appreciate your time!

Thank you!
09-18-2019 01:23 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Is this at all possible?
You can use $userfields['fidX'] to get the RAW data of Custom Profile Fields, where "X" is the Profile Fields ID.

Sorry for late reply.

09-23-2019 11:59 PM
Find all posts by this user Quote this message in a reply
ThistleProse Offline
Junior Member
**
Posts: 4
Joined: Sep 2019
Post: #3
RE: Is this at all possible?
Hi!

Thanks for your help!

I have a further question, if you are able to assist;

Is there any way to force the $userfields['fidX'] to parse the BBC that is input from the user end?

I've heavily modified the profiles, using the userfields to set up the display, so of course now the BBC doesn't work and I don't want to allow HTML

Thank you kindly for any assistance!
01-19-2020 10:24 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: