vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Custom User Profile Field with link (https://vborg.vbsupport.ru/showthread.php?t=303613)

iNate19 10-19-2013 09:51 PM

Custom User Profile Field with link
 
I currently have Customer User Profile Fields for accomplishments. What I am trying to do is make it where I can put a link in the User Profile Field and it links other users to this particular accomplishment from the postbit.

Lynne 10-20-2013 05:37 PM

I don't understand exactly what you want. What is your current code for this? And what do you want it to link to?

iNate19 10-20-2013 06:28 PM

I have created User Profile Fields in the Admin CP, labeled "Accomplishments". They are Single Line Text Box that show in each users Postbit.

In a specific forum, I have posted threads for each user, listing accomplishments in each post. I want to link from the Single Line Text Box to each post, so that it shows the list of the accomplishments.

For instance, I have a member who has accomplished a certain task say 9 times. In the thread that I created for that user, it list each time they made that accomplishment. In the Admin CP, I can go to the users account, and enter in that they have reached that accomplishment 9 times. Right now it ONLY shows text, but I want to have it Like This. HTML and BB coding currently does not work, which is how I am trying to do it.

blind-eddie 10-21-2013 12:20 AM

You will need two profile fields to achieve what you are after.
One for link name & one for the url.

Use this in your postbit or postbit Legacy

Change 43 to the new profile field Link Name
Change 44 to the new profile field Link Url

Code:

<!-- Start -->
<if condition="$post[field43]"><a href="$post[field44]">$post[field43]</a>
</if>
<!-- End -->


iNate19 10-22-2013 02:07 AM

Quote:

Originally Posted by blind-eddie (Post 2455024)
You will need two profile fields to achieve what you are after.
One for link name & one for the url.

Use this in your postbit or postbit Legacy

Change 43 to the new profile field Link Name
Change 44 to the new profile field Link Url

Code:

<!-- Start -->
<if condition="$post[field43]"><a href="$post[field44]">$post[field43]</a>
</if>
<!-- End -->


Where do I put this?

blind-eddie 10-22-2013 02:10 AM

Where would you like it to show? Above Avatar, below Avatar, above join date?
... ect

iNate19 10-22-2013 02:21 AM

http://img594.imageshack.us/img594/3746/brkk.png

Where is shows "4x OM HOF", that is where I want it to link to a post where the accomplishments are posted.

blind-eddie 10-22-2013 02:32 AM

Is the Battle Records and Awards Showcase auto template edits?

iNate19 10-22-2013 02:33 AM

Battle Records yes, Awards showcase no

blind-eddie 10-22-2013 02:34 AM

Then add this below the Awards code. (Changing profile field numbers to yours)

Code:

<!-- Start -->
<div class="smallfont">
<if condition="$post[field43]"><a href="$post[field44]">$post[field43]</a>
</if></div>
<!-- End -->



All times are GMT. The time now is 03:55 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.01147 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete