vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom User Profile Fields...need some additional coding help! (https://vborg.vbsupport.ru/showthread.php?t=102283)

Masked Crusader 12-05-2005 05:40 PM

Custom User Profile Fields...need some additional coding help!
 
ORIGINALLY POSTED IN WRONG FORUM! SORRY MODS!

Hey guys,

I am trying to insert three new profile fields in vBulletin. I have already created them and now they show up when the user registers for an account. Now, I am trying to go a little more into detail.

When a user posts on the site, where all the user title, location, # of posts, and join date is, I want to insert the three additional fields that I have created. Now, I already have the code that I need to make the insert. The problem is that I am missing some "certain" code. These are the three lines of code I inserted into the 'postbit' template.

<if condition="$post['field5']"><div>$vbphrase[ign]: $post[field5]</div></if>

<if condition="$post['field8']"><div>$vbphrase[class]: $post[field8]</div></if>

<if condition="$post['field7']"><div>$vbphrase[guild]: $post[field7]</div></if>

Now when I insert these lines of code, they are in the correct place. When I refresh the actual page to see if they show up in the post header, they do. The thing that is not making sense to me is, why is it only giving me this data back.

:"whatever the value of field5 is"
:"whatever the value of field8 is"
:"whatever the value of field7 is"

Now, those "whatever" statements above, actaully do put out the correct data. So, my question is where are the phrases that go before the colon? Is there someone that I have to specify what vbphrase[] is equal to? I know that it is the vbprhase coding because I have tested the other two statements. So, how is this problem rectified?

Any help would be appreciated. Please let me know if you need clarification on something. I tried to explain my situation as best as I could.

Reeve of shinra 12-05-2005 06:33 PM

Thats wierd, $vbphrase[variable_name] is the correct syntax.

Go into your phrase manager and check to see if the phrases have been added to all of the languages including english if you dont have any others. Also check and see if these are global phrases.


All times are GMT. The time now is 01:10 AM.

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.01245 seconds
  • Memory Usage 1,707KB
  • 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
  • (2)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