vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5 Connect Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=249)
-   -   [vB5] User Profile Fields in the postbit templates (https://vborg.vbsupport.ru/showthread.php?t=297041)

Lynne 08-08-2013 08:34 PM

And you are positive the catid is 5?

Admigo 08-08-2013 08:39 PM

Quote:

Originally Posted by Lynne (Post 2437917)
And you are positive the catid is 5?

Yes. User Profile Field: CnR Username (id: 5 - input)
The title is showing fine in the postbit but not my CnR Username.
So CnR Username : blank

EDIT: I fixed it. I didnt made a category. Thanks for your help.

astrid1 08-12-2013 08:26 AM

Also have problems in 5.0.3 there was no problem
now 5.04 based on a new installtion I get this error

Warning: Illegal string offset 'field5' in [path] / includes / adminfunctions_template.php (4723): eval () 'd code on line 2

Lynne 08-12-2013 04:41 PM

Post your exact template. And did you make sure to enable the plugin system (it is off by default) and create the Hook?

astrid1 08-13-2013 09:19 AM

1 Attachment(s)
Quote:

{vb:data userInfo, user, fetchProfileInfo, {vb:raw conversation.userid}}

<vb:if condition="$userInfo['field5']"><li><label>{vb:phrase field5_title}:</label> <span>{vb:raw userInfo.customFields.default.field5_title.val}</span></li></vb:if>

<vb:if condition="$userInfo['field7']"><li><label>{vb:phrase field7_title}:</label> <span>{vb:raw userInfo.customFields.category1_title.field7_title .val}</span}</li></vb:if>

Quote:

The following error occurred when attempting to evaluate this template:

Warning: Illegal string offset 'field2' in [path]/includes/adminfunctions_template.php(4723) : eval()'d code on line 3

Warning: Illegal string offset 'field7' in [path]/includes/adminfunctions_template.php(4723) : eval()'d code on line 9

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wis
and since the error message is the temple will not be stored

astrid1 09-23-2013 10:37 AM

Lynne?

Lynne 09-23-2013 04:17 PM

That is my example template. I doubt yours would be exactly the same. Post images of your admincp > User Profile Field Manager and the Categories.

heredia21 12-08-2013 05:56 AM

Perfect Lynne! Just what I was looking for. We need some more of these how-tos!

ndut 01-12-2014 02:49 PM

1 Attachment(s)
@Lynne,

my command :

Quote:

{vb:data userInfo, user, fetchProfileInfo, {vb:raw conversation.userid}}

<vb:if condition="$userInfo['field2']"><li><label>{vb:phrase field2_title}:</label> <span>{vb:raw userInfo.customFields.default.field2_title.val}</span></li></vb:if>

<vb:if condition="$userInfo['field3']"><li><label>{vb:phrase field3_title}:</label> <span>{vb:raw userInfo.customFields.default.field3_title.val}</span></li></vb:if>
and the error message is :

Quote:

The following error occurred when attempting to evaluate this template:

Warning: Illegal string offset 'field2' in [path]/includes/adminfunctions_template.php(4738) : eval()'d code on line 3

Warning: Illegal string offset 'field3' in [path]/includes/adminfunctions_template.php(4738) : eval()'d code on line 9

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
what should i do?


Quote:

Originally Posted by Lynne (Post 2447476)
That is my example template. I doubt yours would be exactly the same. Post images of your admincp > User Profile Field Manager and the Categories.

and this is my screen shot :
https://vborg.vbsupport.ru/attachmen...1&d=1389543242

ndut 01-23-2014 02:44 PM

Hello, Lynne.....


All times are GMT. The time now is 11:01 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.01404 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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