The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to add two User Profile Field Single-Line Text Box to create one profile field.
I have to created two User Profile Field Single-Line Text Box just to show one clickable named url. (Editable by members)
How would I go about being able to use 2 User Profile Field Single-Line Text Box, one for name & other for URL in one profile field? Doing this would reduce me having to create two member editable profile fields to show link name in dropdown and less added code to the navbar. I know this would have to be hard coded, which I prefer. What I use now to allow members to create clickable links in a navbar dropdown. Code:
<if condition="$bbuserinfo[field32]"><tr><td class="vbmenu_option"><a href="$bbuserinfo[field32]$session[sessionurl_q]" TARGET="_blank">$bbuserinfo[field32]</td></tr> </if> I created this small template edit a couple versions back, but it still works for all versions up to 3.8.6. Link to in in my profile. Thanks... |
#2
|
||||
|
||||
Let me rephrase the question.
Is it possible to create a two part profile field single line text field and produce single output? |
#3
|
|||
|
|||
So are you saying that you still want 20 text fields but you want them arranged differently in the profile editor (like in pairs)?
ETA: I don't know how to do this, so if anyone else knows, please answer... |
#4
|
||||
|
||||
Yes, that would be great, how would I go about adding the two in the same frame.
Image below shows what it looks like now. I added an extra profile page via wired1's mod since the list could get very long. Thanks in advance. |
#5
|
||||
|
||||
Let me see if I understand what you are trying to do. You want to create a new dropdown for each user that shows up to 10 custom links for them? And right now, each link requires two profile fields - one for the URL and one for the Site Name?
Could you have just two fields and tell them to separate the URLs/Names with a comma and then explode the string on the comma to create an array and then spit it out that way? |
#6
|
||||
|
||||
I already created the template edit a few versions back & yes each link requires two profile fields to create the click-able link in the drop down.
I don't know how to do what you described to me, sorry. I am fine with it how I set it up, but is a little bit of work to set it all up for members to use. If nothing else, if you can tell me how to show Link One Name & Link One URL in same frame as shown below instead of how I displayed it in earlier post, I would really appreciate it very much..... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|