Thread: Member Links
View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01291 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete