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

Joomlapolis Forums  


<< Start < Prev 11 12 13 14 15 Next > End >>
Re:How to populate a CB Field with a Country List
Date: 2008/04/11 17:57 By: ryurage Status: User  
Karma: 1  
Fresh Joomlapolitan

Posts: 4
graphgraph
Alright, this is the second time and last time I'll try to post this. This joomlapolis.com site totally rules except the session time on here blows. Nothing like typing out a post and it not getting posted. [/rant]

Moving on. I have a host (bluehost) and they have several built in programs to input sql. They have PHPMyAdmin and it's a piece of cake to use without being a guru. However, they do NOT have that option built in with it to 'insert data from a text file'. Crap!! Here's what to do:

1. Download my file from this post and open in in a text editor to change the line that says 'var fieldid'. Make the fieldid equal to your number. Save the file.

2. Open the file in a browser. Copy all of it.

3. Next, go to your PHPMyAdmin and click the '_joom2' database and then the 'jos_comprofiler_field_values' table.

4. Now click the 'SQL' tab at the top. Paste. Don't touch anything else except click the 'Go' button. Done.

You now have a decent country list. Apostrophes in the country name won't mess things up either.
Click here to see the profile of this user The administrator has disabled public write access.

Re:How to populate a CB Field with a Country List
Date: 2008/04/11 19:51 By: ryurage Status: User  
Karma: 1  
Fresh Joomlapolitan

Posts: 4
graphgraph
Alright, apparently you can't submit .html files. I wish this forum would tell me that before my post gets posted. Anyways, just change the .txt to .html when you download my country list sql.
File Attachment:
File name: country_list_sql.txt
File size:4024 bytes
Click here to see the profile of this user The administrator has disabled public write access.

Re:Country list - Can't it be more easier?
Date: 2008/05/05 17:42 By: sjnims Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 13
graphgraph
Any updates on this?
Click here to see the profile of this user The administrator has disabled public write access.

Re:How to populate a CB Field with a Country List
Date: 2008/05/08 19:58 By: ubertramp Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
ryurage wrote:
Alright, this is the second time and last time I'll try to post this. This joomlapolis.com site totally rules except the session time on here blows. Nothing like typing out a post and it not getting posted. [/rant]

Moving on. I have a host (bluehost) and they have several built in programs to input sql. They have PHPMyAdmin and it's a piece of cake to use without being a guru. However, they do NOT have that option built in with it to 'insert data from a text file'. Crap!! Here's what to do:

1. Download my file from this post and open in in a text editor to change the line that says 'var fieldid'. Make the fieldid equal to your number. Save the file.

2. Open the file in a browser. Copy all of it.

3. Next, go to your PHPMyAdmin and click the '_joom2' database and then the 'jos_comprofiler_field_values' table.

4. Now click the 'SQL' tab at the top. Paste. Don't touch anything else except click the 'Go' button. Done.

You now have a decent country list. Apostrophes in the country name won't mess things up either.


Thanks, ryurage, you made the whole process 1000 times easier. Kudos!

http://www.ubertramp.com
Click here to see the profile of this user The administrator has disabled public write access.

Re:How to populate a CB Field with a Country List
Date: 2008/06/05 21:27 By: Dukessa Status: User  
Karma: 2  
Junior Joomlapolitan

Posts: 30
graphgraph
BlueFightingCat wrote:
Hi,

One point. Serbia and Montenegro are no longer one. They should be seperated. USSR no longer exists either.
I made a new list of countries that have the sql commands ready in them. So all you have to do is import the file.
Thanks

BFC

Post edited by: BlueFightingCat, at: 2006/11/01 21:17
File Attachment:
File name: country_list.txt
File size:20242 bytes
<br><br>Post edited by: BlueFightingCat, at: 2006/11/01 21:51


Thank you for that sql file, but I was wondering...
The fieldvalueid is what your DB generated, depending on other fields you have in the table already.
What if at one given fieldvalueid I have something else already? Is that going to overwrite whats there?
My latest fieldvalueid was 288, and your list starts with fieldvalueids from 21 to 268...

Is it possible to have a sql ready file with all those countries, but so that nothing can be overwritten or messed up?
Where I only have to change my fieldid, and the DB gives the fieldvalueid on its own?

Post edited by: Dukessa, at: 2008/06/05 21:40
***Dukessa***
[J 1.5.3+CB 1.1]
Click here to see the profile of this user The administrator has disabled public write access.

Re:How to populate a CB Field with a Country List
Date: 2008/10/20 07:05 By: alibak Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 15
graphgraph
the sql file is not populating because I already have a fieldvalueid number 21... (to start with)...

so..

how does one set this up?

also, is there a state file of such thing?

is there a way of first seeing whether the person lives in the US, and if yes, then the states would load?

if someone knows this.. i'm sure everyone would benefit from a line by line recipe.
thank you very much.
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 11 12 13 14 15 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

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 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login