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 01-23-2014 05:58 PM

I would suggest reading the thread and trying the suggestions users have posted already regarding that error.

nchoose 02-24-2014 01:55 AM

Lynne, Here is my code:

{vb:data userInfo, user, fetchProfileInfo, {vb:raw conversation.userid}}
<vb:if condition="$userInfo['field6']"><li><label>{vb:phrase field6_title}:</label> <span>{vb:raw userInfo.customFields.default.field6_title.val}</span></li></vb:if>

It is working perfectly to show TEXT put in the field. I would like to put a URL in the field and have the word Feedback linked to that URL. Can you help. This seems like I should be able to do it easy peasy... and my mind is drawing a blank. TY TY

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

LYNNE! You ROCK! Ok, I figured it out! I was also able to add a second value after the link! *YAY* *YAY*
PHP Code:

 {vb:data userInfouserfetchProfileInfo, {vb:raw conversation.userid}}
<
vb:if condition="$userInfo['field6']"><li><label><a href={vb:raw userInfo.customFields.default.field6_title.val}>{vb:phrase field6_title}</a>:</label> <span>{vb:raw userInfo.customFields.default.field7_title.val}</span></li></vb:if> 

http://whatsyourdeal.com/grocery-cou...Capture118.jpg

we will have to manually update these values, but until there is a mod, this will work. Muddling through!

Thanks again LYNNE for your help!

Lynne 02-24-2014 03:18 AM

I'm glad you got it working. :)

Spangle 04-20-2014 10:06 AM

Tried this on a 5.0.5 and it broke the board !

"There is a serious error and the page cannot be rendered"


Deleted hook

Disabled hook system, board still not functioning

Lynne 04-20-2014 03:35 PM

Not sure exactly what you did, but this is only a hook and it seems strange that it would cause that sort of error. You can go into debug mode and see what the real error is. Also, don't forget to Clear System Cache after doing something.

Spangle 04-20-2014 07:18 PM

Quote:

Originally Posted by Lynne (Post 2493947)
Not sure exactly what you did, but this is only a hook and it seems strange that it would cause that sort of error. You can go into debug mode and see what the real error is. Also, don't forget to Clear System Cache after doing something.

I couldn't do anything, not even get into the ACP, every URL was met with the same error, the only way out was to upgrade to 5.1.0.

I tried the same in 5.1.0, and the same thing happened, eventually gave up on it, is there an easier way to add these fields to the postbit ?

Lynne 04-21-2014 04:20 PM

Why don't you post screen shots of *exactly* what you did.

Spangle 04-21-2014 05:32 PM

I'm confident I followed your instructions correctly, I'm hesitant to go through the process again, in case I "break" the forum again.

You would think there would be an easier way to incorporate fields into postbit.

Spangle 04-23-2014 12:05 PM

BTW this link:

http://www.vbulletin.com/docs/html/profile


gives a "Page not found" response

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

Attempted this again, followed the instructions to the letter.

Exactly the same result.

There is a serious error and the page cannot be rendered

Would advise that users of 5.0.5 and 5.1.0 do not use this until a fix is posted.

Lynne 04-23-2014 03:46 PM

Please see this thread - http://www.vbulletin.com/forum/forum...profile-fields


All times are GMT. The time now is 09:20 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.01295 seconds
  • Memory Usage 1,743KB
  • 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)bbcode_php_printable
  • (1)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