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 registration profile field show up on posts? (https://vborg.vbsupport.ru/showthread.php?t=173451)

Rubiano 03-25-2008 11:53 PM

I tried it again and made sure everything was correct. I checked and made sure that it was field 5. and it still didnt work.

SEOvB 03-26-2008 01:27 AM

your if statement is incorrect

try just using $post[field5] instead

Dismounted 03-26-2008 02:47 AM

Please tell me how the condition is incorrect? $post[field5] and $post['field5'] both mean the same thing, with the one with quotes being faster. When you don't have the quotes, PHP searches for the constant named field5, then searches for the array key named field5. With the quotes, PHP only searches for the array key named field5.

Opserty 03-26-2008 10:15 AM

Quote:

Originally Posted by Rubiano (Post 1474639)
I tried it again and made sure everything was correct. I checked and made sure that it was field 5. and it still didnt work.

Please post the code you are using, furthermore have you checked that this field actually contains data to be displayed? (i.e. it is not empty)

Rubiano 04-02-2008 08:13 PM

Quote:

Originally Posted by Opserty (Post 1474855)
Please post the code you are using, furthermore have you checked that this field actually contains data to be displayed? (i.e. it is not empty)

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

That is the code i am using. The field is not required to be filled out at registration. It is optional. But I have it filled out and so do many members and when i put the code in it does not show up on the posts of the people who do have it filled it. Is the code wrong or something or is the field supposed to be a Required field instead of an optional field?

--------------- Added [DATE]1207186313[/DATE] at [TIME]1207186313[/TIME] ---------------

Update:

I have been adding the code to the postbit_legacy which is listed under "postbit templates" and is also the one that is Red text. There is also a thing called "postbit" listed under "postbit templates" but it is in white text. Am i supposed to add the code to "postbit" or "postbit_legacy"?

Dismounted 04-03-2008 05:24 AM

You need to add it to the one you are using. If your posts have the user info on the left hand side, it is legacy. If they display on the top (like here), it is not legacy.

Rubiano 04-03-2008 10:18 AM

Quote:

Originally Posted by Dismounted (Post 1481680)
You need to add it to the one you are using. If your posts have the user info on the left hand side, it is legacy. If they display on the top (like here), it is not legacy.


That must be why! I was adding to the postbit_legacy but the other fields display on the top right of the posts. That is wierd though because in the legacy i saw the code for location and join date and all of that stuff.

Dismounted 04-03-2008 12:54 PM

Quote:

Originally Posted by Rubiano (Post 1481845)
That is wierd though because in the legacy i saw the code for location and join date and all of that stuff.

Because the legacy template also shows that information. It is used when the option to display user info in posts to the left is activated.


All times are GMT. The time now is 12:58 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.01026 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
  • (4)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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete