Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 03-25-2008, 11:53 PM
Rubiano's Avatar
Rubiano Rubiano is offline
 
Join Date: Mar 2008
Location: In a house
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #12  
Old 03-26-2008, 01:27 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your if statement is incorrect

try just using $post[field5] instead
Reply With Quote
  #13  
Old 03-26-2008, 02:47 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 03-26-2008, 10:15 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rubiano View Post
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)
Reply With Quote
  #15  
Old 04-02-2008, 08:13 PM
Rubiano's Avatar
Rubiano Rubiano is offline
 
Join Date: Mar 2008
Location: In a house
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
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"?
Reply With Quote
  #16  
Old 04-03-2008, 05:24 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 04-03-2008, 10:18 AM
Rubiano's Avatar
Rubiano Rubiano is offline
 
Join Date: Mar 2008
Location: In a house
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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.
Reply With Quote
  #18  
Old 04-03-2008, 12:54 PM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rubiano View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06968 seconds
  • Memory Usage 2,234KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete