Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2011, 03:23 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 allow members 10 links, which means I created 20 new User Profile Field Single-Line Text Box just for this to work. Reducing it to 10 would be great.
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...
Reply With Quote
  #2  
Old 02-26-2011, 12:46 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me rephrase the question.
Is it possible to create a two part profile field single line text field and produce single output?
Reply With Quote
  #3  
Old 02-26-2011, 12:54 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 02-26-2011, 01:54 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 02-26-2011, 03:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 02-26-2011, 06:37 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.....

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09888 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete