Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse adslight AntiHarvesting AntiMalUser AntiSpam API Australia Ban banner Beats billige black Blocks blue Captcha cell Christmas chronolabs content Conversion database demo docek download Dresses editor evden eve facebook floor free herre Honeypot Human IP jQuery kantor lamps Legal log logger mobile module modules Monster MyAlbum-p Networks newbb news Notices online PageRank pdf Permissions pink Plugin portal Prevention profile project Protector publisher release Rights rmcommon Room sale security SERIAL Server site Size Smarty Spam statistics stem Studio tag tags tdmcreate template Theme themes userlog website Whitepaper Winter XML XooLaT xoops Xoopspoll Xortify xthemes Yolande ZendFramework

New Users

Registering user

# 136021

dressshop

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2006/6/17 15:49 Default selection for field in register.php
Hello All,

I must be doing something wrong. I'm trying to add a few countries to a dropdown selection list in the Extended Profiles module. I add the field and select the default but the default is not sticking. The field type is "select" value type is "array". The default seems to work on other field types. I've tried this in two different MySQL versions on two XOOPS sites and the same thing happens. The default is showing in the database but it is not displayed as the default in the dropdown. We are US based so we'd like US to be the default but Canada is the one it defaults to. Is there a way to fix this?

On another note, is there another way to go about adding a dropdown list of countries and/or states to the extended profiles module? Perhaps someone has already made a hack and I haven't come across it yet?

Thanks in advance!
Cuidiu

Top


Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)
Cuidiu
Quite a regular
Quite a regular
Joined:
2006/4/23 10:46
Group:
Registered Users
Posts: 356
(Show More) (Show Less)


#2 Posted on: 2006/6/17 15:55 Re: Default selection for field in register.php
use XOOPS existing form class

XoopsFormSelectCountry

Top

m0nty
XOOPS is my life!
XOOPS is my life!
Joined:
2003/10/24 18:30
From Derbyshire/UK
Group:
BANNED Users
Posts: 3324
(Show More) (Show Less)


#3 Posted on: 2006/6/17 16:05 Re: Default selection for field in register.php
Hi m0nty,

I'm assuming this has to do with adding countries. This would be good to know for future use but I actually only need to add a few countries now so this might be a bit overboard if it is something that adds all countries...?

I'm really just needing to make the item selected as the default actually show up as the default. Is this not possible?

Top


Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)
Cuidiu
Quite a regular
Quite a regular
Joined:
2006/4/23 10:46
Group:
Registered Users
Posts: 356
(Show More) (Show Less)


#4 Posted on: 2006/6/17 16:26 Re: Default selection for field in register.php
i dunno.. i'm sure it's possible tho, just that i don't know how as i'm not familiar with XOOPS 2.2 profile module and how it creates it's fields.. i stopped using XOOPS 2.2 a long while ago.

Top

m0nty
XOOPS is my life!
XOOPS is my life!
Joined:
2003/10/24 18:30
From Derbyshire/UK
Group:
BANNED Users
Posts: 3324
(Show More) (Show Less)


#5 Posted on: 2006/6/19 10:51 Re: Default selection for field in register.php
Any advice on how I can make the selected default display properly in the registration page?

Quote:
I add the field and select the default but the default is not sticking. The field type is "select" value type is "array".


Top


Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)
Cuidiu
Quite a regular
Quite a regular
Joined:
2006/4/23 10:46
Group:
Registered Users
Posts: 356
(Show More) (Show Less)


#6 Posted on: 2006/6/20 18:43 Re: Default selection for field in register.php
I guess I just didn't understand how this worked. I found out that if I use field type "select" and value type "text field" the default will set properly.

So much to learn... so few cells left to retain.

Top


Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)
Cuidiu
Quite a regular
Quite a regular
Joined:
2006/4/23 10:46
Group:
Registered Users
Posts: 356
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]