vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Making a profile field format into a link (https://vborg.vbsupport.ru/showthread.php?t=178957)

pjkcards 05-12-2008 02:53 AM

Making a profile field format into a link
 
Hello,
While registering, I want users to have a field that states this:
Enter your WCA profile code here (if available):
[example: for http://www.worldcubeassociation.org/...p?i=1234ABCD12, the profile code would be "1234ABCD12"]

When the user inputs the profile code, I want it to format into a link which I can put below the Avatars called "WCA Profile" (and that links goes to the WCA profile, such as the link shown above). I want the link to appear in the "Public Profile", as well as underneath the avatar by every post that person makes. How would I go about this?

Thanks.

Boofo 05-12-2008 03:02 AM

<a href="https://www.worldcubeassociation.org/results/p.php?i=fieldxx" target="_blank">http://www.worldcubeassociation.org/....php?i=fieldxx</a> for the link (with the xx the profile field number).

In the postbit, use $post[fieldxx]. It should show up in the profile if you have it set to do that.

pjkcards 05-12-2008 04:10 AM

Excellent, thanks. I love your sig btw.

Boofo 05-12-2008 04:26 AM

I've had that forever I think. ;)

pjkcards 05-12-2008 04:31 PM

Nice.

Another question, how do I make the link appear under the avatar only if they entered in a value into the field?

Boofo 05-12-2008 04:37 PM

<if condition="$post['fieldxx']">
code
</if>

pjkcards 05-12-2008 04:50 PM

Okay. I found this one just a second ago:
<if condition="$post[field5]!=''">

Does that work just as good, or do you recommend changing it?

Boofo 05-12-2008 05:19 PM

Try it and see. Both ways should work.


All times are GMT. The time now is 01:50 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.01656 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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