![]() |
User profile field that can parse links
I'm trying to find a way for a custom user profile field to parse links. You could have a multiline textbox, and on each line the user would enter a URL which would be turned into a link after submission.
Anyone have any ideas? |
Create a plugin on the member_customfields hook, and turn the urls into links. Where 6 is the profile field ID.
Code:
if ($profilefield['value'] != '' AND $profilefield[profilefieldid] == 6) |
When I enable that plugin, the field I'm applying it to doesn't show up.
My field ID is 9, and this is what I have for the plugin: Code:
if ($profilefield['value'] != '' AND $profilefield[profilefieldid] == 9) |
I had a typo in the code. There is a 't' missing from the word 'output' in the if block in the foreach loop. :(
|
Excellent, it works beautifully. Thank you very much!
|
This is awesome! Thank you.
|
All times are GMT. The time now is 07:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|