vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need help with Custom Profile Field in Postbit - not working (https://vborg.vbsupport.ru/showthread.php?t=227287)

ExplosiveGFX 11-03-2009 12:00 AM

Need help with Custom Profile Field in Postbit - not working
 
I have a single line selection box profile field, with 2 options.

"Edit my photos"
"Don't edit my photos"

So, I'm trying to get this to display in the postbit, with a little color on each, to make it stand out, you know?

I'm following Steve's info in this post on vb.com

Here is my code:

Code:

<if condition="$post['field8'] & 1">
<font color="green">Feel free to edit my photos!</font>
</if>
<if condition="$post['field8'] & 2">
<font color="red">Please do <strong>NOT</strong> edit my photos!</font>
</if>

Nothing is showing up in my postbit.. it's below "$post['posts']" in postbit_legacy, what am I doing wrong?

Any help will be appreciated, thanks.

Brother Malachi 11-03-2009 08:16 AM

Wait...so which one of the profile fields are you using? Radio buttons?

ExplosiveGFX 11-03-2009 09:50 AM

Dropdowns.

https://vborg.vbsupport.ru/external/2009/11/33.png

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

bump

ExplosiveGFX 11-07-2009 12:26 AM

Help?

Javierogo 11-07-2009 03:13 AM

Hi, try this:

Code:


<if condition="$bbuserinfo['field8'] == 'Feel free to edit my Photos.'">
<font color="green">Feel free to edit my photos!</font>
</if>
<if condition="$bbuserinfo['field8'] == 'Please do NOT edit my Photos.'">
<font color="red">Please do <strong>NOT</strong> edit my photos!</font>
</if>

The first text without HTML (Feel free to edit my Photos.) must be identical to the text field.

I hope this works for you ;)

ExplosiveGFX 11-07-2009 05:49 PM

Ok, that semi works, it displays the option which you've chosen in your options for everyones postbit...

Lynne 11-08-2009 04:25 PM

If it's in the postbit, you will probably want to use $post['field8'], not $bbuserinfo['field8']

Javierogo 11-14-2009 06:03 AM

:eek: Right, sorry!
Just change $bbuserinfo['field8'] by $post['field8'] to show the info from others.


All times are GMT. The time now is 12:47 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.01992 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (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