The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Display name vs Login name
Sry Mod, I posted this question already in a thread but in the vb2 forum which was wrong.
I give it a try here I am importing my UBBT to vb3 and have one problem. UBBT decides between a users Display Name which is the name shown all over the page (beside a post for example) and the Login Name simply used for the login. This is fine with me cause the users have the change in changing their name this way. Now I want to implement a Display Name also in vb3. Therefore I created a custom field with the id5 (profilefieldid5) I went into my postbit_legacy Template and changed: $post[username] to $post[field5]. I also tried $post[profilefieldid5] but nothing worked. I want on ALL my pages the displayname to be shown. Any idea what I am doing wrong? Please help me cause I need to implement this urgently. Many thanks in advance... |
#2
|
|||
|
|||
Perhaps an obvious question but... since you modified the legacy template are you sure you configured vB to use the legacy template?
A similar request was posted here, sounds like you were right the first time (field5) : http://www.vbulletin.com/forum/showthread.php?t=96719 I'm looking for the same thing, only I want to know how to use conditionals so that if the user leaves the custom name blank it'll default to the registered name. I haven't found any answers on that part yet |
#3
|
||||
|
||||
Quote:
Call it Display Name make it a signle line text box make sure to note the field id now, find in your postbit template $post[musername] and replace it with this <if condition="$post[fieldX]">$post[fieldx]<else />$post[musername]</if> replace X with the filed id That SHOULD do it, altho i dont have the time to look directly at the templates let me know if it works or not |
#4
|
|||
|
|||
ok i aint no hacker or anything so i may be on wrong track but why not get the display name to be a profile field and then call it in using the follwoing in postbit
<div class="smallfont"> <if condition="$post['field5']"> $post[field5] </if> </div> obviously change the postfield bit to match your number also aint my code - thanks to Arkham (vb.nl)for help on solving my problem he gave me the conditionals. Edit soz Zachery we posted at same time |
#5
|
||||
|
||||
Quote:
I change this line in postbit and postbit_legacy but still the loginname is shown. I don't know if there is any caching system behind which results to this cause your code snippet looks logic to me. What about the replacement variables in vb3. Can't I use them to replace $post[username] with $post[field5] in a whole style? |
#6
|
||||
|
||||
Quote:
Now unless someone goes in and changes their field 5 it wouldnt showup. |
#7
|
||||
|
||||
Quote:
I think this should be shown or? I gave your hint a try and entered something in the field but still this is not shown. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|