The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Creating a link in a custom field?
Is there any way to make one of the custom fields display the text entered by the member as a link? I have 4 custom fields in my users' profiles. For just ONE of fields I'd like the information displayed as a link (the field is for user's journals and is called My Journal). I thought maybe there was some way it could be done by modifying one of the files using those else/if commands (which I have no knowledge of how to write up :nervous: )......something like "if the text begins with 'http' then make it a link, else just make it plain text".
yes/no? |
#2
|
|||
|
|||
Well, two months later and I figured out how to do this on my own (but thanks for all the suggestions and help )....anyway, here is the information is case it helps anyone else. All it requires is some simple template modifications (not really a hack, I guess).
First, you need to find out the field number of the custom field you want to make clickable. In your control panel, go to User Profile Fields and click on modify. This pulls up a list of your custom fields. If you hover your cursor over the edit link next to each one it gives you the profilefieldid number at the end of the link properties. In my case the My Journal custom field was field 10. Next click on edit, and edit the field so that the "field hidden on profile" is set to YES (you don't want it show up since it will be in plain text and you don't want that). You will create a custom table row in the user's profile that uses the information from field 10 (or whatever number) to create a link. Next go to your "getinfo" template and add a custom row something like the following (I put the row in right after the Homepage row).... PHP Code:
The custom field is now presented as a clickable link! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|