Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Aug 2012, 13:24
changtraingheo changtraingheo is offline
 
Join Date: Feb 2008
how to display custom field in forum

When i register one account in forum, example: Test1
- I add custom field Display Name in profile, if Display Name is empty, all post by me will display account name (Test1) ... Now, when i change Display Name to another name, example: MrPhi, then all post by me will display MrPhi not is Test1 ... It comes down, all position display Test1 will be change MrPhi ... i try do it, by it is not easy i expected
Reply With Quote
  #2  
Old 22 Aug 2012, 14:08
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Do you want to do this everywhere in the forum? If so I can't test it but i think you can do this by creating a field "Display name" then create a plugin with global_start hook with this content

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

Where fieldx is the id of the field you just made, but i don't think it will works everywhere, for get it working in all the pages i think you can figure it out by yourself
Reply With Quote
  #3  
Old 22 Aug 2012, 14:25
changtraingheo changtraingheo is offline
 
Join Date: Feb 2008

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

Thanks your help, but this code only work when i logined and i only can see Display Name of me .. What i mean is that apply for all account, example when i view profile of another user, if display name of that user not be empty then i see display name of that user not account name of that user ...

Example this forum, my account is changtraingheo, when i enter display name is Mr Phi, when u refresh page, u can not see changtraingheo, u only see Mr Phi.

Sr, my english is not good ^^
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 05:06.

Layout Options | Width: Wide Color: