vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Member Links (https://vborg.vbsupport.ru/showthread.php?t=185059)

blind-eddie 07-11-2008 10:55 PM

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 :D

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

Hasann 07-11-2008 11:16 PM

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

blind-eddie 07-11-2008 11:22 PM

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:


All times are GMT. The time now is 03:49 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.01779 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete