UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » (Improvised) custom profile fields

(Improvised) custom profile fields

Moderators: Gaia.

Page: 1

Author Post
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. »
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jan 2007
Posts: 3
Location: Netherland
is it me or is the layout here kinda weird? :s
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
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)?
Member
Registered: Feb 2007
Posts: 22
$lang['YahooM'] = 'Yahoo! Messenger';

You also have to change the above in "languages/default/lang_*.php".
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Resources & Customization » (Improvised) custom profile fields

UseBB Community is powered by UseBB 1 Forum Software