Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-11-2008, 10:55 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Member Links

I am trying to give my members their own links of interest, either in the usercp drop down or quick links drop down, or with in the navbar itself, with drop down. This one is being tested in the Quick Links section of the navbar. My Navbar is heavily modified.


I added 6 new profile fields, in my case, fields 10-16

All six fields were Single-Line Text Box

Title: Link One URL
Description: Add link you wish to go to.
Max length of allowed user input: 100
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No, until this works correctly.
Show on Members List: No, until this works correctly.
Which page displays this option? Options:Other

=================================================
I went into my navbar template,
Searched for:
Code:
		<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
Below that, I added:

Code:
		<tr><td class="thead">My Links</td></tr>
<if condition="$bbuserinfo['field10']"><td class="vbmenu_option"><a href="$bbuserinfo[field10]$session[sessionurl_q]" TARGET="_blank">Link One</td></tr> </if>
<if condition="$bbuserinfo['field11']"><td class="vbmenu_option"><a href="$bbuserinfo[field11]$session[sessionurl_q]" TARGET="_blank">Link Two</td></tr> </if>
<if condition="$bbuserinfo['field12']"><td class="vbmenu_option"><a href="$bbuserinfo[field12]$session[sessionurl_q]" TARGET="_blank">Link Three</td></tr> </if>
<if condition="$bbuserinfo['field13']"><td class="vbmenu_option"><a href="$bbuserinfo[field13]$session[sessionurl_q]" TARGET="_blank">Link Four</td></tr> </if>
<if condition="$bbuserinfo['field14']"><td class="vbmenu_option"><a href="$bbuserinfo[field14]$session[sessionurl_q]" TARGET="_blank">Link Five</td></tr> </if>
<if condition="$bbuserinfo['field15']"><td class="vbmenu_option"><a href="$bbuserinfo[field15]$session[sessionurl_q]" TARGET="_blank">Link Six</td></tr> </if>

Everything works great, but, It will only show Link One through Link Six in the quick links section. Clicking them does take you to the url that I added via usercp/editoptions.
I have tried so many ways to change the coding to allow me to display another set of fields with the name for the link you added in your usercp/edit options, but I cant do it.
I am not a coder, but I sure can copy-n-paste

Is there anyone here willing to show me, what it is that I need to do to get this to function they way I want it to? Thanks in advance, Tim
Reply With Quote
  #2  
Old 07-11-2008, 11:16 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this

<if condition="$bbuserinfo['field10']"><td class="vbmenu_option"><a href="$bbuserinfo[field10]$session[sessionurl_q]" TARGET="_blank">$bbuserinfo[field20]</td></tr> </if>

field10 is URL
field20 is Url Name

and this way your members must enter link url 1 and link name 1
Reply With Quote
  #3  
Old 07-11-2008, 11:22 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trying now, Thanks

--------------- Added [DATE]1215822661[/DATE] at [TIME]1215822661[/TIME] ---------------

Sweet, It works. Thank you so very much. I will name my second child after you.:up::up::up::up::up:
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:11 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
  • Page Generation 0.03484 seconds
  • Memory Usage 2,177KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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