The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Profile Field 2- need extra code
I now have the following problem.....I adjusted my member.php en register.php and created a template which contains the '700-' in front see also posting https://vborg.vbsupport.ru/showthrea...4&goto=newpost
But now whenever I create a required field this '700-' is in front of all screens.....so I need some extra coding I believe...see post below for snapshots.... Plz help |
#2
|
|||
|
|||
Snapshot 2
|
#3
|
|||
|
|||
Somewhere between this I need some extra code to use another template if the customprofile field is not identical to his ID-number!
The Serial field has an ID-number of let's assume 5... SO the coding must be like this...... IF ID = 5 then gettemplate X ELSE get gettemplate Z Even better would it be to use only IF ID = 5 then...... IF ......... IF...... SO you can use a lot of diffent style for your boxes.... Let me know |
#4
|
|||
|
|||
BUMP
|
#5
|
||||
|
||||
PHP Code:
|
#6
|
|||
|
|||
It works :laugh: great, see my attachment....
I got another question Is it possible to have Radio Button-boxes instead of those textboxes for custom User Profile Fields??? If so how do I do it??? |
#7
|
||||
|
||||
Quote:
PHP Code:
As for your question in PM: Yes basically you need to reinstall your hacks if you upgrade your board to a new version. However if you use tools like Beyond Compare or Araxis Merge, things can get easier. Search these words in vb.org and you'll learn how.. |
#8
|
|||
|
|||
Do I need a space between elsif?
So that it is 'else if'? ------------------ posted code before ------------------------------------- if ($profilefield[title]=='XXXXX') {eval("\$customfields_required .= \"".gettemplate("register_customfields_kg")."\";") ;} elseif ($profilefield[title]=='YYYY') {eval("\$customfields_required .= \"".gettemplate("register_radiobuttons")."\";") ;} else {eval("\$customfields_required .= \"".gettemplate ("register_customfields")."\";");} |
#9
|
||||
|
||||
no space.. it's "elseif"
|
#10
|
|||
|
|||
See snapshot one.jpg
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|