| Author |
Post |
|
|
#1 Fri Feb 16, 2007 4:05 pm
|
|
Member
Registered: Feb 2007
Posts: 22
|
This is a small tip which can be used to create custom profile fields. Go to: "templates/default/panel.tpl.php" and change the names of any of the fields to what ever you desire, for example you can change: <tr> <td class="fieldtitle">{l_YahooM}</td><td colspan="2">{yahoom_v}</td> </tr> To: <tr> <td class="fieldtitle">What mobile phone(s) do you own?</td><td colspan="2">{yahoom_v}</td> </tr> Do the same in "templates/default/various.tpl.php". Done! « Last edit by Dietrich on Mon Feb 19, 2007 2:51 pm. »
|
|
|
#2 Fri Feb 16, 2007 4:59 pm
|
|
Developer
Registered: Apr 2004
Posts: 2218
Location: Belgium
|
This is not really a "custom profile field", you basicly just altered an existing field name in the templates.
|
|
|
#3 Sun Feb 18, 2007 6:49 pm
|
|
Member
Registered: Jan 2007
Posts: 3
Location: Netherland
|
is it me or is the layout here kinda weird? :s
|
|
|
#4 Sun Feb 18, 2007 7:00 pm
|
|
Developer
Registered: Apr 2004
Posts: 2218
Location: Belgium
|
If you use IE, the layout will be stretched because of the lines of code and IE's failure to support overflow:scroll.
|
|
|
#5 Mon Feb 19, 2007 10:35 am
|
|
Member
Registered: Feb 2007
Posts: 22
|
Dietrich wrote This is not really a "custom profile field", you basicly just altered an existing field name in the templates.
Yeah, but it works (and it keeps the Forum lite)?
|
|
|
#6 Mon Feb 19, 2007 2:48 pm
|
|
Member
Registered: Feb 2007
Posts: 22
|
$lang['YahooM'] = 'Yahoo! Messenger'; You also have to change the above in "languages/default/lang_*.php".
|
|
|
#7 Mon Feb 19, 2007 2:51 pm
|
|
Developer
Registered: Apr 2004
Posts: 2218
Location: Belgium
|
Well, you just change the label names of a field, not create custom fields. Therefore, I have moved this topic to Resources.
|