Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


Convert Lastname field to dropdown singleselect
Date: 2007/10/23 05:48 By: Varma Status: User  
Karma: 0  
Junior Joomlapolitan

Posts: 26
graphgraph
I am buildig site for my community. I want to restrict the lastnames to just to my community lastnames. so I want to convert lastname input type from editbox to single select. Is there any easy way to do this?

I have defined another community builder filed cb_surname and inserted all the fields there.
Is there a way that I can populate the values of cb_surname values in below code ( 180-185 lines on cb.core.php) This way I dont have too modify much.

-----------------------------------------------

$return .= "<td class="titleCell">"._UE_YOUR_LNAME.":</td>n";

$return .= "<td class="fieldCell"><input class="inputbox" type="text" size="40" mosReq="1" mosLabel=""._UE_YOUR_LNAME."" id="lastname" name="lastname" value="".htmlspecialchars($user->lastname)."" />";
------------------------------------------------
Any help is really appriciated.

Thanks
Varma

Post edited by: Varma, at: 2007/10/23 07:14

Post edited by: Varma, at: 2007/10/26 07:17
Click here to see the profile of this user The administrator has disabled public write access.

Re:Convert Lastname field to dropdown singleselect
Date: 2008/09/20 16:30 By: Varma Status: User  
Karma: 0  
Junior Joomlapolitan

Posts: 26
graphgraph
According to the forum posts CB 1.2 is including lastname and firstname also in its field lists now. So with this new version is there a possibility to change the lastname field to dropdown single select list.

Please help
Click here to see the profile of this user The administrator has disabled public write access.

Re:Convert Lastname field to dropdown singleselect
Date: 2008/09/23 15:11 By: beat Status: Admin  
Karma: 242  
Admin

Posts: 4063
graphgraph
Varma wrote:
According to the forum posts CB 1.2 is including lastname and firstname also in its field lists now. So with this new version is there a possibility to change the lastname field to dropdown single select list.

Please help


Well, theorethically, you could do that, but would have to do it in the database, the UI doesn't allow this particular use.
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The administrator has disabled public write access.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login