• [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 143907 times)

0 Members and 1 Guest are viewing this topic.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #60 on: July 26, 2006, 06:07:40 PM »
@ Bonze
... offensichtlich ist "gender" nicht in der DB gespeichert, und für "kein gender" liegt ja auch kein Bild vor ...
... von daher "---" und "redX" ...
... überprüfe den Eintrag in die DB mal PhpMyAdmin ob er vorhanden ist ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Bonze

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #61 on: July 26, 2006, 07:48:12 PM »
ne sry fals du das falsch verstanden hast , es ist ein eintrag vorhanden und es wird auch etwas gespeichert weil ich wenn ich mein profil mit ?action=showprofile&user_id=1 anschaue , das entsprechende symbol für männlich angeziegt bekomme , nur halt im profil editieren bereich machts des nich , ..aus welchen gründen auch immer,.

Offline Bonze

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #62 on: July 26, 2006, 09:33:42 PM »
ok habs problem gelöst hatte ein prob mit diesem drop down custom fiedl dingens:D

Offline Bonze

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #63 on: July 26, 2006, 10:16:15 PM »
mhh das war anscheinend nur die ghälfte der lösung denn , wenn ich das kontrollzentrum aufrufe
sieht es so aus wie auf dem bild, gehe ich hin und wähle mein geschlecht aus und gehe dann auf speichern ist es so wie es sein sollte ees steht in der liste und nebendran mein bildchen ,.

Offline Bonze

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #64 on: July 27, 2006, 11:14:39 AM »
mhh du wirsts mir nich glauben aba das hab ich schon gemacht,.

Offline Bonze

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #65 on: July 27, 2006, 01:51:36 PM »
mhh ja das funktioniert ja jetzt auch , nur ists ein ganz anderes problem das schwer zu beschreiben ist , also ich öffne das kontrollcenter dann ist im dropdown feld --- ausgewählt und nebendran isn platzhalter
wähle ich jetzt male aus und speichere dies ab , wenn die seite refreshed wird, ist dann male ausgewählt und das passende bild wird nebendran angezeigt ,.
öffne ich dann das kontrolcenter wieder ists wieder wie am anfang , obwohl der datensatz male in der db steht,.

Offline Bonze

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #66 on: July 27, 2006, 08:55:47 PM »
ok hab die member.php komplett neu mit alllen mods gemacht und dabei festgestellt das ich nen fehler drinhatte jetzt scheints irgendwie zu gehen ,
Aber : jetzt hab ich nen anderen fehler vielleicht kann von euch jemand mehr damit anfangen
DB Error: Bad SQL Query: UPDATE 4images_users SET user_email = 'fragger255@hotmail.com', user_showemail = 1, user_allowemails = 1, user_invisible = , user_homepage = '', user_icq = '154490947', user_gender = 'w', birthday = '1988-07-27' WHERE user_id = 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' user_homepage = '', user_icq = '154490947', user_gender = 'w', birthday = '1988' at line 2



Offline dgparent

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #67 on: August 22, 2006, 03:34:18 PM »
Great mod thx. One thing is there a way to just list male ,female or bisexual instead of the gif showing up ? My users don't know what those mean thanks again

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [MOD] Select country and gender with gif when register
« Reply #68 on: September 20, 2006, 09:55:03 AM »
Hallo zusammen,

ich habe genau das Problem gehabt, das ich den MOD eingebaut hatte aber die "dropdown" nicht dargestellt urden.
Nach langem hin und her habe ich den Fehler gefunden.

Ich habe aus dem Mod [MOD] Dropdown options for custom database fields die Daten für die Member übernommen
(Step 1).

Jetzt funkt. der MOD einwandfrei ;-)

Thanks Darkness  :lol:

Offline TubeTopia

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • TubeTopia
Re: [MOD] Select country and gender with gif when register
« Reply #69 on: October 24, 2006, 08:07:14 AM »
 :) works fine in 1.7.4
"Don't worry about the world coming to an end today. It's already tomorrow in Australia." Charles Schultz

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Select country and gender with gif when register
« Reply #70 on: March 17, 2007, 11:57:33 AM »
I would like country flags in view profile. how can I do that?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline datenplatz

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #71 on: December 19, 2007, 02:35:27 PM »
Code: [Select]
First: Open phpMyAdmin and create a new column called user_country inside of 4images_users I used type varchar (255).
      And another for the gender call user_gender inside of 4images_users I used type text.

how can i do this ? where is the option in phpmyadmin to create new columns ?
wie kann ich dies machen ? sorry bin vollnoob mit phpmyadmin
« Last Edit: December 20, 2007, 08:07:00 AM by Nicky »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #72 on: December 19, 2007, 03:09:19 PM »
Code: [Select]
First: Open phpMyAdmin and create a new column called user_country inside of 4images_users I used type varchar (255).
      And another for the gender call user_gender inside of 4images_users I used type text.

how can i do this ? where is the option in phpmyadmin to create new columns ?
wie kann ich dies machen ? sorry bin vollnoob mit phpmyadmin

http://www.vielegruesse.com

If no get how use phpmyadmin - use this plugin:

http://www.4homepages.de/forum/index.php?topic=19254.0

Click: [ Expert mode] link - paste code in textarea and click submit button. ;)

Code: [Select]
ALTER TABLE `4images_users` ADD user_country varchar(255) NOT NULL;

Code: [Select]
ALTER TABLE `4images_users` ADD user_gender text NOT NULL;

(each submit - no same time) ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline datenplatz

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #73 on: December 19, 2007, 09:36:30 PM »
thx a lot , it works  :lol:
« Last Edit: December 20, 2007, 08:05:46 AM by Nicky »

Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [MOD] Select country and gender with gif when register
« Reply #74 on: February 20, 2008, 06:14:30 AM »
hi

I do like to select the country not to change the field to complete the registration form. As a change in this part includes_functions.php

Quote
function get_dropdown_options($name, $options = array(), $value = "", $multi_dim = 1, $number = 0, $auto = 0, $keypress = 0, $extra = "", $class = "", $i_start = 0, $i_step = 1, $i_stop = 1) {
  $keypress = ($keypress) ? " onkeypress=\"if(window.event.keyCode==13)this.form.submit();\"" : "";
  $auto = ($auto) ? " onchange=\"this.form.submit();\"" : "";
    $dropdown = "<SELECT name=\"".$name."\"".$auto.$keypress." class=\"".(($class) ? $class : "select")."\"".$extra.">\n";
   $i = $i_start;
  if (count($options)) {
    foreach ($options as $key => $val) {
       $what = (($number) ? $i : (($multi_dim) ? $key : $val));
        $dropdown .= "<option value=\"".$what."\"".(($value == $what) ? " selected" : "").">".preg_replace (array("/{key}/siU", "/{val}/siU", "/{what}/siU", "/{value}/siU"), array($key, $val, $what, $value), $val)."</option>\n";
        $i = $i + $i_step;
     }
  }else{
    for ($i = $i_start; $i <= $i_stop; $i += $i_step) {
        $dropdown .= "<option value=\"".$i."\"".(($value == $i) ? " selected" : "").">".$i."</option>\n";
    }
  }
   $dropdown .= "</select>\n";
  return $dropdown;
}
function get_db_fields_dropdown($key, $val, $value) {
  return get_dropdown_options($key, $val[3], $value, $val[4], $val[5], $val[7], 1, "", "select", $val[6]);
}

thank
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?