• [MOD] Select country and gender with gif when register 5 0 5 1
Currently:  

Author Topic: [MOD] Select country and gender with gif when register  (Read 144054 times)

0 Members and 1 Guest are viewing this topic.

Offline jamstave

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #30 on: November 26, 2005, 10:10:43 PM »
Hi..How do i show user country(in text) in the comment page?

jamstave.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #31 on: December 20, 2005, 09:26:36 PM »
i've tried some similar on comments to show user gender (before username) under the country , both text+image ..without success..

Any ideias to make it work ??

 :?:

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country when register
« Reply #32 on: January 26, 2006, 02:41:25 PM »
Hi,

one Problem.

When i select a country in my Profile and then i save it reload the side and then i don´t see the country. I see the field "Please selct a country".

What must i do that i can see my selected country in the Member Control Panel???

That's what I thought would happened actually. The only way I resolved this problem in the past was by implementing V@no's MOD where the additional user fields has been re-worked and expanded in the routines. Hopefully, it is still available in the new forum for you guys. ;)

Now, the reason why the information is not being entered correctly is because there are no query that specifies a NULL statement for this MOD. :)

Hi
I am having exactly the same problem. In addition to thism i tried to add the county by using PHP my admin. But still i dont get anything in profile. The country filed remain blank.
I have " [MOD] Dropdown options for custom database fields " already woriking. My gender filed is working fine the only problem is with County.
So help me please.

@TheOracle Could u please tell me what mod u was talking about??

I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #33 on: January 26, 2006, 02:58:43 PM »
A little more info
This is what i have in my member_profile.html
Code: [Select]
<td class="row1"width="40%"><b>{lang_user_country}</b></td>
<td class="row1">{user_country}</td>

But when i see the "view source" of the page i get this

Code: [Select]
td class="row1" width="40%"><b>Country:</b></td>
<td class="row1">&nbsp;</td>
That means, {user_country} is not showing anything. Although i have this filed in my Data base and i have manually added the country as well.
So where do i start looking for the problem ?
I m not a  Programmer.
          But
I m a Good Learner.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Select country and gender with gif when register
« Reply #34 on: January 26, 2006, 03:08:51 PM »
Although i have this filed in my Data base and i have manually added the country as well.
And when you go edit a member, country is showed there as well? (edit through ACP or from members edit profile page)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #35 on: January 26, 2006, 03:33:22 PM »
And when you go edit a member, country is showed there as well? (edit through ACP or from members edit profile page)

From ACP, I can only see gender field. No country option there.
As a user, in my profile I can see that country field with dropdown options. (In registration page it’s also there)

I just noticed one more thing. When as I user I change my country, It remains the same in Database (It remains the one I added before, Checked through PHP my admin)


I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #36 on: January 27, 2006, 02:42:25 PM »
Do I need to have this option in ACP ??

When I have a country XYZ for a user ABC set through phpMyAdmin, why i m not getting it when I place {user_country} n his profile.

Please help me. I want to add few other fields as well so waiting for this issue to be resolved.
I m not a  Programmer.
          But
I m a Good Learner.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Select country and gender with gif when register
« Reply #37 on: January 27, 2006, 02:58:24 PM »
1) make sure you have
Code: [Select]
$additional_user_fields['user_country'] = array($lang['user_country'], "dropdown", 0, $var, 0, 0, 0, 1);in includes/db_field_definitions.php
2) if you dont see the dropdown in ACP, then you probably made a misstake while installing the "Dropdown for custom fields" mod.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #38 on: January 27, 2006, 08:42:43 PM »
1) make sure you have
Code: [Select]
$additional_user_fields['user_country'] = array($lang['user_country'], "dropdown", 0, $var, 0, 0, 0, 1);in

Yes I do have this part. I double checked everything and to me, if I m doing anything wrong its in member.php from
[MOD] Dropdown options for custom database fields Mainly with step 1. As stated it should be two times but i just have once. So I changed the closes one that i got.

I am attaching both files. (I tried with both) But still can’t see it in ACP. I can see the drop down in user profiled in both cases but it doesn’t work. The country field remains blank.

So if U can have a look and tell me what exactly i am missing. I dont have any doubt in any other file.
I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #39 on: January 29, 2006, 06:26:48 AM »
Any idea what I am missing or doing wrong??

After reading the whole thread I see that I am not the only one having trouble with country field. But I guess others somehow manage to get it to work but I am still trying.

V@no could u please tell me which member.php is correct from above two files.
I m not a  Programmer.
          But
I m a Good Learner.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #40 on: January 31, 2006, 02:24:12 PM »
Desperately need this working but still I can’t figure it out that what’s wrong with it. I have installed one other mod which is used to have date of birth of the member and its working fine.

Can someone help me here?? I have checked each step more than 3 times but I don’t know why it’s not working.

I need help here. Is there any other way getting this "Country filed" working??

I m not a  Programmer.
          But
I m a Good Learner.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #41 on: January 31, 2006, 06:50:50 PM »
Actually, I don't get this MOD myself ...

since user_gender and user_country field are involved.

Secondly, where's the $lang['user_sex'] from main.php file in the instructions ?

Third, since these fields shows as :

Quote

$additional_user_fields['user_country'] = array($lang['user_country'], "dropdown", 0, $var, 0, 0, 0, 1);
$additional_user_fields['user_gender'] = array($lang['user_gender'], "dropdown", 0, array("n" => "---","b" => "Bisex", "m" => "Male", "w" => "Female"), 1, 0, 0, 0);


and, since the SQL update should go for "each additional user fields", where's the :

Quote

$additional_user_fields['user_sex'] = array($lang['user_sex'], "dropdown", 0, array("n" => "---","b" => "Bisex", "m" => "Male", "w" => "Female"), 1, 0, 0, 0);


when :

Quote

UPDATE 4images_users SET user_sex = 'your default country'


I must say myself ... it is quite confusing. I could be wrong but there might be some missing instructions from the first post (or perhaps mistakes were involved). ;)

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #42 on: January 31, 2006, 09:35:37 PM »
Actually, I don't get this MOD myself ...

since user_gender and user_country field are involved.

Secondly, where's the $lang['user_sex'] from main.php file in the instructions ?

I must say myself ... it is quite confusing. I could be wrong but there might be some missing instructions from the first post (or perhaps mistakes were involved). ;)

Throught this mod i m using user_gender and user_country filed. I can see the drop down while editing the profile but thecountry just dont show up in profile. When i checked through phpMyAdmin it appears that countryfield is not getting update.

The update code statements in first post have that mistake. Instead of user_gender thay are showing user_sex. But other than that i cant say whats wrong.
Currently, user_gender is working fine. The only problem is with Country field.

Can i have any other alternative ?? In case this mod is not working perfectly or missing few things as u said
I m not a  Programmer.
          But
I m a Good Learner.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #43 on: January 31, 2006, 10:19:45 PM »
To be honnest, I'd rather not install this MOD due to these unexpected errors. Sorry.

Offline Fastian

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #44 on: January 31, 2006, 11:30:32 PM »
To be honnest, I'd rather not install this MOD due to these unexpected errors. Sorry.

I am also thinking the same.

I am going to drop the "Country" part of this module
I will add an additional user field and make it opitional so user can put their country if they want to.  :)
I m not a  Programmer.
          But
I m a Good Learner.