Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 30 Sep 2012, 10:44
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Displaying Profile Fields

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

__________________
http://www.multihunters.co.uk - all your coding needs
Reply With Quote
  #2  
Old 30 Sep 2012, 13:19
nhawk nhawk is offline
 
Join Date: Jan 2011
There are currently no hooks to add info where you want to in Beta 10 or 11.
Reply With Quote
  #3  
Old 30 Sep 2012, 15:56
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
A new template hook was added for next release.
For the moment, you can edit the template manually or modify the template cache.
__________________
Adrian Sacchi - Forums Mods
vBulletin Alpha/Beta Tester
vBulletin Bug Scrubber
Reply With Quote
  #4  
Old 30 Sep 2012, 17:09
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Originally Posted by ForumsMods View Post
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
__________________
http://www.multihunters.co.uk - all your coding needs
Reply With Quote
  #5  
Old 30 Sep 2012, 22:06
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Well the template is: conversation_userinfo

And in that template current posts are:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Current join date is:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So my guess is...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But not tested
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #6  
Old 30 Sep 2012, 22:27
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
I tought the same, but... the fields are not included in conversation variable.
__________________
Adrian Sacchi - Forums Mods
vBulletin Alpha/Beta Tester
vBulletin Bug Scrubber
Reply With Quote
  #7  
Old 30 Sep 2012, 22:49
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by ForumsMods View Post
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.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #8  
Old 30 Sep 2012, 23:07
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
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.
__________________
Adrian Sacchi - Forums Mods
vBulletin Alpha/Beta Tester
vBulletin Bug Scrubber

Last edited by ForumsMods; 30 Sep 2012 at 23:28.
Reply With Quote
  #9  
Old 01 Oct 2012, 01:15
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
http://tracker.vbulletin.com/browse/VBV-5021
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #10  
Old 01 Oct 2012, 07:32
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Originally Posted by BirdOPrey5 View Post
thxs lets hope they sort this out in next release
__________________
http://www.multihunters.co.uk - all your coding needs
Reply With Quote
  #11  
Old 10 Oct 2012, 15:41
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
and info on how to add custom profile fields to conversation_userinfo yet ?

in the hooks and manual entry if possibe please

this is going back to the previous convo here
http://www.vbulletin.org/forum/showp...46&postcount=5
__________________
http://www.multihunters.co.uk - all your coding needs
Reply With Quote
  #12  
Old 12 Oct 2012, 11:57
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
You can check up on the bug report: http://tracker.vbulletin.com/browse/VBV-5021

There won't be a fix until the "Fix Version" on that page is listed as a released version number (Alpha 14 for example.)

On the plus side it was recently revised up in priority but no estimate when it will happen.

Also, there are no "hooks" in VB5 so there will never be a "hooks" way of doing things anymore.

There will only be template edits or file extensions.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #13  
Old 12 Oct 2012, 21:02
nhawk nhawk is offline
 
Join Date: Jan 2011
Since they added a template hook to the conversation_userstats template this is possible in Beta 13.

In this example, the 'Location' field will be displayed.

1) Create a new template. In this example I'll use the name TestTemplate.
Product: vBulletin (or your product)
Style: Default (or your style)
Title: TestTemplate
Template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


2) Go to ACP->Products & Hooks->Manage Hooks and click 'Add New Hook'.
Product: vBulletin (or your product)
Hook Location: conversation_userstats
Title: Test Hook
Execution Order: 10
Template Name: TestTemplate
Hook Arguments:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Click Save

Refresh a thread in your forum and you'll see the Location being displayed for each poster.

There IS a drawback with this method. A database query is added for EVERY POST in a thread. That is not good, and I would wait for the JIRA report mentioned above to be fixed.

Last edited by nhawk; 12 Oct 2012 at 21:20.
Reply With Quote
  #14  
Old 13 Oct 2012, 11:49
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Originally Posted by nhawk View Post
Since they added a template hook to the conversation_userstats template this is possible in Beta 13.

In this example, the 'Location' field will be displayed.

1) Create a new template. In this example I'll use the name TestTemplate.
Product: vBulletin (or your product)
Style: Default (or your style)
Title: TestTemplate
Template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2) Go to ACP->Products & Hooks->Manage Hooks and click 'Add New Hook'.
Product: vBulletin (or your product)
Hook Location: conversation_userstats
Title: Test Hook
Execution Order: 10
Template Name: TestTemplate
Hook Arguments:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Click Save

Refresh a thread in your forum and you'll see the Location being displayed for each poster.

There IS a drawback with this method. A database query is added for EVERY POST in a thread. That is not good, and I would wait for the JIRA report mentioned above to be fixed.


thank you, this was the info i needed, i will do some tests today
__________________
http://www.multihunters.co.uk - all your coding needs
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 20:33.

Layout Options | Width: Wide Color: