vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Displaying Profile Fields (https://vborg.vbsupport.ru/showthread.php?t=288491)

TheSupportForum 09-30-2012 09:44 AM

Displaying Profile Fields
 
Does anyone know how to display Profile Fields in threads, below Join Date & Posts ?

http://img141.imageshack.us/img141/8...cf9b19baad.png

nhawk 09-30-2012 12:19 PM

There are currently no hooks to add info where you want to in Beta 10 or 11.

ForumsMods 09-30-2012 02:56 PM

A new template hook was added for next release.
For the moment, you can edit the template manually or modify the template cache.

TheSupportForum 09-30-2012 04:09 PM

Quote:

Originally Posted by ForumsMods (Post 2369757)
A new template hook was added for next release.
For the moment, you can edit the template manually or modify the template cache.

thx for that but it still doesnt answer my question

whats the code for it

{vb:raw userinfo.field8}
{vbrawphrase customerfield.field8}

which is what i am asking, as i have looked through the code and can't find a solution for manual entry

BirdOPrey5 09-30-2012 09:06 PM

Well the template is: conversation_userinfo

And in that template current posts are:
Code:

{vb:raw conversation['userinfo']['posts']}
Current join date is:
Code:

{vb:raw conversation['userinfo']['joindate']}
So my guess is...

Code:

{vb:raw conversation['userinfo']['field8']}
But not tested

ForumsMods 09-30-2012 09:27 PM

I tought the same, but... the fields are not included in conversation variable.

BirdOPrey5 09-30-2012 09:49 PM

Quote:

Originally Posted by ForumsMods (Post 2369854)
I tought the same, but... the fields are not included in conversation variable.

I'm half tempted to call it a bug and JIRA it... being in past VB versions everything about the user was accessible via $post... i'd expect the same out of $conversation.

ForumsMods 09-30-2012 10:07 PM

I agree, fields are part of user's information (userinfo).
Currently only user table is included, I think they forgot to join userfield table.

I hope it is not by design.

BirdOPrey5 10-01-2012 12:15 AM

<a href="http://tracker.vbulletin.com/browse/VBV-5021" target="_blank">http://tracker.vbulletin.com/browse/VBV-5021</a>

TheSupportForum 10-01-2012 06:32 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2369887)

thxs lets hope they sort this out in next release


All times are GMT. The time now is 02:29 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.01202 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
  • (3)bbcode_code_printable
  • (3)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
  • (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