Demo

Give it a try
and play around
with ClanSphere
Demo


Answers: 2
Page [1]
Juju


Beginner




Posts: 1
# Thread - 2014-05-26 at 4:05 PM
Hallo,
kann man es irgendwie erreichen, dass Benutzer ihr Land nicht ändern können?

mfg
Juju
Inactive
Tom08 ClanSphere Team

Supporter
Supporter



Location: Daheim
Posts: 2923
# Answer: 1 - 2014-05-26 at 5:20 PM
Indem du die /themes/base/users/profile.tpl so veärnderst?
 
1.
2.
3.
4.
1. / 2. / ... 
  <select name="users_country" onchange="document.getElementById('country_1').src='{page:path}symbols/countries/' + this.form.users_country.options[this.form.users_country.selectedIndex].value + '.png'">
{
loop:country}
<
option value="{country:short}"{country:selection}>{country:full}</option>{stop:country}
</
select>


Ersetzen durch:
 
1.
1. / 2. / ... 
  {users:country_url}



Zudem:
/mods/users/profile.php

Entferne:
 
1.
1. / 2. / ... 
   $cs_user['users_country'] = $_POST['users_country'];


Suche:
 
1.
1. / 2. / ... 
    $data['users']['country_url'] = cs_html_img('symbols/countries/' $cs_user['users_country'] . '.png',0,0,'id="country_1"');


Ersetze durch:
 
1.
1. / 2. / ... 
   $data['users']['country_url'] = cs_html_img('symbols/countries/' $cs_user['users_country'] . '.png',0,0,'id="country_1"') . " " $cs_country[$cs_user['users_country']];


Entferne:
 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
1. / 2. / ... 
 $data['country'] = array();

  
$run 0;
  foreach (
$cs_country AS $short => $full) {
    
$data['country'][$run]['short'] = $short;
    
$data['country'][$run]['selection'] = $short == $cs_user['users_country'] ? ' selected="selected"' '';
    
$data['country'][$run]['full'] = $full;
    
$run++;
  }


------------------
Bei Problemen mit Code von mir bitte eine Private Nachricht an mich


Inactive
|
Juju
Thread author


Beginner




Posts: 1
# Answer: 2 - 2014-05-26 at 7:37 PM
Perfekt, klappt.

Danke!


Inactive
|
Answers: 2
Page [1]


You must be registered.