Demo
	
		
			Probiere ClanSphere aus und teste daran herum.
			Demo
		
	
 
      
Spenden
  
    ClanSphere ist freie OpenSource Software.
Bitte unterstützt uns.
    Spenden
  
 
			
				
  
  
  
    Antworten: 2 
      Seite  [1]   | 
  
  
  
      Juju 
       
      
      
      
         
      Beginner  
       
      
      
        
       
       
      Beiträge: 1      | 
     # Thema - 26.05.2014 um 16:05 Uhr
       
      
      Hallo, 
kann man es irgendwie erreichen, dass Benutzer ihr Land nicht ändern können? 
 
mfg 
Juju
      
      
      
      
       | 
  
  
     | 
    
            | 
  
  
  
  
  
     | 
  
  
      Tom08   
      
       
        
      Supporter  
      
      
      
      
        
  
       
      Herkunft: Daheim 
      Beiträge: 2923      | 
     # Antwort: 1 - 26.05.2014 um 17:20 Uhr
       
      
      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++; 
  } 
  |  
  
      
      
      
  
------------------ 
      
      
 
  | 
  
  
     | 
    
        |     | 
  
  
  
     | 
  
  
  
  
  
  
  
  
    Antworten: 2 
      Seite  [1]   | 
  
 
  
    | Sie müssen sich registrieren, um zu antworten. |