Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Register/Profile/Edit_profile

Parašė WantedBoy· 2007 Lie. 21 17:07:29
#1

Sveiki noriu vietoj Yahoo arba kurio nors kito :) pasidaryti Salis taciau niekaip nesuprantu kaip padaryti viska kad butu galima pasirinkti tik mano nustatytas salis.Cia reikia daryti su <option></option> funkcija taciau kai padarau man nieko nerodo.Gal kas zinot kaip padaryti?

Redagavo WantedBoy· 2007 Lie. 21 17:07:27

Parašė si-acc-nx-metu· 2007 Lie. 21 18:07:54
#2

1.Idek include aplanka [kuri prisekiau] i tavo ftp.
2.Atidarai :
includes/update_profile_include.php



3.Randi :
if ($username == "" || $_POST['user_email'] == "") {



4.Keiciam i sia eilute :
if ($username == "" || $_POST['user_email'] == "" || $_POST['user_location'] == "") {



5.Randi :
$user_location = isset($_POST['user_location']) ? stripinput(trim($_POST['user_location'])) : "";



6.Keiciam i sia eilute :
$user_location = stripinput(trim($_POST['user_location']));



7.Issaugojam.
8.Atidarai :
locale/English/members-profile.php



9.Randi :
$locale['480'] = "You must specify a user name & email address.";



10.Keiciam i sia eilute :
$locale['480'] = "You must specify a user name, email address & location.";



11.Issaugojam.
12.Atidarai :
locale/English/register.php



13.Randi :
$locale['402'] = "You must specify a user name, password & email address.";



14.Keiciam i sia eilute :
$locale['402'] = "You must specify a user name, password, email address & location.";



15.Randi :
$locale['552'] = "Please specify an email address.";



16.Ir pridedam po ja sia eilute :
$locale['553'] = "Please specify a location.";



17.Issaugojam.
18.Atidarai :
edit_profile.php



19.Randi :
<td class='tbl'>".$locale['u009']."</td>
<td class='tbl'><input type='text' name='user_location' value='".$userdata['user_location']."' maxlength='50' class='textbox' style='width:200px;'></td>



20.Keiciam i sia eilute :
<td class='tbl'>".$locale['u009']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'>
<select name='user_location' class='textbox' style='width:200px;'>
<option value=''></option>\n";

   include INCLUDES."countries.php";
   sort($countries);
   reset($countries);

   foreach ($countries as $country) {
      echo "<option value='$country'".($userdata['user_location'] == $country ? " selected" : "").">$country</option>";
   }
   
   echo "</select></td>



21.Issaugojam.
22.Atidarai :
register.php



Randi :
$result = dbquery("INSERT INTO ".$db_prefix."users VALUES('', '".$user_info['user_name']."', '".md5($user_info['user_password'])."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");



23.Keiciam i sia eilute :
$result = dbquery("INSERT INTO ".$db_prefix."users VALUES('', '".$user_info['user_name']."', '".md5($user_info['user_password'])."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '".$user_info['user_location']."', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')");



24.Randi :
$password1 = stripinput(trim(eregi_replace(" +", "", $_POST['password1'])));



25.Po ja rasom sia eilute :
$user_location = stripinput(trim($_POST['user_location']));



26.Randi :
if ($username == "" || $password1 == "" || $email == "") $error .= $locale['402']."<br>\n";



27.Keiciam i sia eilute :
if ($username == "" || $password1 == "" || $email == "" || $user_location == "") $error .= $locale['402']."<br>\n";



28.Random sia eilute ir triname :
$user_location = isset($_POST['user_location']) ? stripinput(trim($_POST['user_location'])) : "";



29.Randi :
"user_hide_email" => isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1"



30.Keiciam i :
"user_hide_email" => isNum($_POST['user_hide_email']) ? $_POST['user_hide_email'] : "1",
"user_location" => $user_location



31.Randi :
</tr>\n";
   if ($settings['display_validation'] == "1") {



32.Keiciam i sia eilute :
</tr>
<tr>
<td class='tbl'>".$locale['u009']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'>
<select name='user_location' class='textbox' style='width:200px;'>
<option value=''></option>\n";
         
   include INCLUDES."countries.php";
   sort($countries);
   reset($countries);

   foreach ($countries as $country) {
      echo "<option value='$country'>$country</option>";
   }
         
   echo "</select></td>
</tr>\n";
         
   if ($settings['display_validation'] == "1") {



33.Randi ir trink raudona koda :
if ($settings['email_verification'] == "0") {
      echo "<tr>
<td class='tbl'>".$locale['u009']."</td>
<td class='tbl'><input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;'></td>
</tr>

<tr>
<td class='tbl'>".$locale['u010']." <span class='small2'>(mm/dd/yyyy)</span></td>



34.Randi :
if (frm.email.value==\"\") {
      alert(\"".$locale['552']."\");
      return false;
   }



35.Po ja prirasai si koda :
if (frm.user_location.value==\"\") {
      alert(\"".$locale['553']."\");
      return false;
   }



Parašė PLAY· 2007 Lie. 21 18:07:53
#3

Va kur , apsišvietes žmogus :)

Parašė si-acc-nx-metu· 2007 Lie. 21 18:07:15
#4

Arba stai viskas yra jau padyta ;)
EDIT: Tikiuosiu padejau , sorry kat ne lietuviskom raidem rasau ;)

Redagavo si-acc-nx-metu· 2007 Lie. 21 18:07:38

Parašė Toonis· 2007 Lie. 21 18:07:55
#5

Iš kur nucopinai? ?|

Parašė WantedBoy· 2007 Lie. 21 19:07:06
#6

O tai cia paciam reikes irasyti salis? ?|

Parašė si-acc-nx-metu· 2007 Lie. 21 20:07:41
#7

Ne jau viskas yra idek ir paziuresi ;)

Parašė WantedBoy· 2007 Lie. 27 18:07:10
#8

O gal butu galima paaiskinti kaip sukurti nauja laukeli ir kad jisbutu su option? :? Koki koda reikia rasyti prie salies kad kai issaugai rodytu ir veliava? img src neveikia :?

Parašė Qrmiz· 2007 Lie. 27 19:07:30
#9

va jei prireiks, čia su LT miestais
<select name='miestas' class='textbox'>\n
<option value='' selected>Pasirink:</option>

<option value='48'>Vilnius</option>

<option value='13'>Kaunas</option>

<option value='16'>Klaipėda</option>

<option value='36'>Šiauliai</option>

<option value='26'>Panevėžys</option>

<option value='2'>Alytus</option>

<option value='20'>Marijampolė</option>
<option value=''>----</option>

<option value='1'>Akmenė</option>

<option value='3'>Anykščiai</option>

<option value='4'>Birštonas</option>

<option value='5'>Biržai</option>

<option value='6'>Druskininkai</option>

<option value='7'>Elektrėnai</option>

<option value='8'>Ignalina</option>

<option value='9'>Jonava</option>

<option value='10'>Joniškis</option>

<option value='11'>Jurbarkas</option>;

<option value='12'>Kaišiadorys</option>

<option value='14'>Kėdainiai</option>

<option value='15'>Kelmė</option>

<option value='17'>Kretinga</option>

<option value='18'>Kupiškis</option>

<option value='19'>Lazdijai</option>

<option value='21'>Mažeikiai</option>

<option value='22'>Molėtai</option>

<option value='23'>Neringa</option>

<option value='24'>Pakruojis</option>

<option value='25'>Palanga</option>

<option value='27'>Pasvalys</option>

<option value='28'>Plungė</option>

<option value='29'>Prienai</option>

<option value='30'>Radviliškis</option>

<option value='31'>Raseiniai</option>

<option value='32'>Rokiškis</option>

<option value='33'>Skuodas</option>

<option value='34'>Šakiai</option>

<option value='35'>Šalčininkai</option>

<option value='37'>Šilalė</option>

<option value='38'>Šilutė</option>

<option value='39'>Širvintos</option>

<option value='40'>Švenčionys</option>

<option value='41'>Tauragė</option>

<option value='42'>Telšiai</option>

<option value='43'>Trakai</option>

<option value='44'>Ukmergė</option>

<option value='45'>Utena</option>

<option value='46'>Varėna</option>

<option value='47'>Vilkaviškis</option>

<option value='49'>Visaginas</option>

<option value='50'>Zarasai</option>
<option value=''>----</option>

<option value='51'>Lietuva</option>

<option value='52'>D. Britanija</option>

<option value='53'>Airija</option>

<option value='54'>Vokietija</option>

<option value='55'>Prancūzija</option>

<option value='56'>Ispanija</option>

<option value='57'>Italija</option>

<option value='58'>Rusija</option>

<option value='59'>JAV</option>

<option value='60'>Australija</option>
<option value=''>----</option>

<option value='61'>Europa</option>

<option value='62'>Š. Amerika</option>

<option value='63'>P. Amerika</option>

<option value='64'>Azija</option>

<option value='65'>Afrika</option>

</select>

Parašė WantedBoy· 2007 Lie. 27 22:07:03
#10

Tai kad man beda su lkuoduote.Kaip issaugot? ar ka reikia failo pradzioje rasyt?:s

Parašė Sharaz· 2007 Lie. 27 23:07:07
#11

Bandyk saugoti ANSI koduote.

Parašė WantedBoy· 2007 Lie. 28 00:07:57
#12

Kai bandau saugot meta tipo kad ansi koduote prtaras visus duomenis.IR KAI ISSAUGAU NEBUNA LT RAIDZIU.o gal sar galima kaipnor kitai padaryt lt raides, be tu raidziu kodo??|

Parašė Fanio· 2007 Lie. 28 00:07:49
#13

su kuo ten saugai?

Parašė Demonas· 2007 Lie. 28 00:07:16
#14

unicode turi veikt... utf-8...

Parašė WantedBoy· 2007 Lie. 28 03:07:09
#15

faile issaugo lt raidemis, bet saite tu lt raidziu nerodo rodo krinzelius.Gal reikia paciame faile dar kaipnors prirasyti eilute su kuoduote?