Demo
Give it a try
and play around
with ClanSphere
Demo
Donate
ClanSphere is free OpenSource Software.
Please support us.
Donate
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
|
|
|
|
Tom08 

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:
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++;
}
|
------------------
|
|
| |
|
Answers: 2
Page [1] |