The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Making a profile field format into a link
Hello,
While registering, I want users to have a field that states this: Enter your WCA profile code here (if available): [example: for http://www.worldcubeassociation.org/...p?i=1234ABCD12, the profile code would be "1234ABCD12"] When the user inputs the profile code, I want it to format into a link which I can put below the Avatars called "WCA Profile" (and that links goes to the WCA profile, such as the link shown above). I want the link to appear in the "Public Profile", as well as underneath the avatar by every post that person makes. How would I go about this? Thanks. |
#2
|
||||
|
||||
<a href="https://www.worldcubeassociation.org/results/p.php?i=fieldxx" target="_blank">http://www.worldcubeassociation.org/....php?i=fieldxx</a> for the link (with the xx the profile field number).
In the postbit, use $post[fieldxx]. It should show up in the profile if you have it set to do that. |
#3
|
|||
|
|||
Excellent, thanks. I love your sig btw.
|
#4
|
||||
|
||||
I've had that forever I think.
|
#5
|
|||
|
|||
Nice.
Another question, how do I make the link appear under the avatar only if they entered in a value into the field? |
#6
|
||||
|
||||
<if condition="$post['fieldxx']">
code </if> |
#7
|
|||
|
|||
Okay. I found this one just a second ago:
<if condition="$post[field5]!=''"> Does that work just as good, or do you recommend changing it? |
#8
|
||||
|
||||
Try it and see. Both ways should work.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|