für hecht: funktioniert nicht wie gedacht, daher am ende der workaround. - so funktioniert es wenn die clan info editiert wurde.

main
elfenland 10 years ago
parent a52cedd342
commit 196ab44e0b

@ -51,7 +51,7 @@ if((isset($_GET['value1']) || isset($_GET['value2']) || isset($_GET['edited']))
case 'Homepage':
$value1 = validateURL($_GET['value1']);
break;
case 'Info':
case 'Info':
$value1 = encodeNoHTMLWithBB($_GET['value1']);
break;
case 'Clanzeichen':
@ -66,6 +66,7 @@ if((isset($_GET['value1']) || isset($_GET['value2']) || isset($_GET['edited']))
$value1 = validateUnsignedIntegerArray($_GET['value1'], NULL); // kicked members
$value2 = validateUnsignedIntegerArray($_GET['value2'], NULL); // whitelist members
break;
case 'Background':
}
}
@ -108,8 +109,7 @@ function displayClanProfileReadOnly($clan, $ownclan, $userid){
$openChallengeRequestsDisplay[] = displayClanLink($request['clan_challenged']) ;
}
}
?>
?>
<div align="center">
<table width="100%">
<tr>
@ -171,6 +171,7 @@ function displayClanProfileReadOnly($clan, $ownclan, $userid){
<?php
if(count($openChallengeRequestsDisplay) > 0) {
?>
<tr>
<th align="Left">Herausforderungen:</th>
<td><?php echo join('<br>', $openChallengeRequestsDisplay); ?></td>
@ -217,10 +218,10 @@ function displayClanProfileReadOnly($clan, $ownclan, $userid){
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="GET">
<input type="hidden" name="as" value="clan/clan_info"> <input
type="hidden" name="action" value="newsletter">
<table cellpadding="0" cellspacing="0" width="100%" height="69">
<table cellpadding="0" cellspacing="0" width="100%" height="69">
<tr>
<th height="18" valign="top" width="603" colspan="2"
class="content">Nachricht an alle Clanmember schicken</th>
style="background-color: rbga(255,255,255 .7);">Nachricht an alle Clanmember schicken</th>
</tr>
<tr>
<td height="25" valign="top" colspan="2" align="center">&nbsp;<textarea
@ -376,6 +377,7 @@ function displayClanProfileEditable($clan, $userid){
<th align="Left" height="25">Homepage:<a
href="index.php?as=clan/clan_info&action=edit&what=Homepage">(edit)</a>
</th>
<?php
if($clan['homepage'] != 'Keine'){
echo '<td><a href="'.$clan['homepage'].'" target=_blank>'.$clan['homepage'].'</a></td>';
@ -384,11 +386,17 @@ function displayClanProfileEditable($clan, $userid){
}
?>
</tr>
<tr>
<th align="Left">Info:<a
href="index.php?as=clan/clan_info&action=edit&what=Info">(edit)</a></th>
<td><?php echo $clan['info']; ?></td>
</tr>
<tr>
<th align="Left" height="25">Background:<a
href="index.php?as=clan/clan_info&action=edit&what=Background">(edit)</a>
</th>
</tr>
<tr>
<th align="left">Clan aufl&ouml;sen</th>
<td><a
@ -398,6 +406,7 @@ function displayClanProfileEditable($clan, $userid){
<?php
if(isClanNewsletterAvailable($clan['id'])) {
?>
<tr>
<td>&nbsp;</td>
</tr>
@ -408,8 +417,8 @@ function displayClanProfileEditable($clan, $userid){
type="hidden" name="action" value="newsletter">
<table cellpadding="0" cellspacing="0" width="100%" height="69">
<tr>
<th height="18" valign="top" width="603" colspan="2"
class="content">Nachricht an alle Clanmember schicken</th>
<th style="background-color: rbga(255,255,255 .7);" height="18" valign="top" width="603" colspan="2"
class="table1">Nachricht an alle Clanmember schicken</th>
</tr>
<tr>
<td height="25" valign="top" colspan="2" align="center">&nbsp;<textarea
@ -471,6 +480,7 @@ function setProfile($user, $what, $value1, $value2, $clanid, $rootlvl){
case 'Homepage':
mysql_query('UPDATE clan SET homepage = \''.$value1.'\' where id = '.$clanid);
return NULL;
case 'Clanzeichen':
if(strlen($value1.$value2) > MAX_CHARS_CLANSIGN) {
return 'Clanzeichen sind ungültig: Summe aus beiden Teilen darf nicht größer als '.MAX_CHARS_CLANSIGN.' Zeichen sein!';
@ -483,6 +493,9 @@ function setProfile($user, $what, $value1, $value2, $clanid, $rootlvl){
case 'Info':
mysql_query('UPDATE clan SET Info = \''.$value1.'\' where id = '.$clanid);
return NULL;
case 'Background':
mysql_query('UPDATE clan SET background = \''.$value1.'\' where id = '.$clanid);
return NULL;
case 'Leadership':
$clan = getClan($clanid);
@ -545,6 +558,9 @@ function displayEdit($what, $clanid, $rootlvl){
case 'Homepage':
$content = '<tr><td colspan="2"><input class="input" name="value1" value="'.$clan['homepage'].'"/></td></tr>';
break;
case 'Background':
$content = '<tr><td colspan="2"><input class="input" name="value1" value="'.$clan['background'].'"/></td></tr>';
break;
case 'Clanzeichen':
$content = '<tr><td>Prefix: <input class="input" name="value1" value="'.$clan['clanz_pre'].'"/></td><td>Suffix: <input class="input" name="value2" value="'.$clan['clanz_suff'].'"/></td></tr>';
break;
@ -734,3 +750,11 @@ if($displayMore){
displayClanProfile($clan_id, $user_ida['id']);
}
?>
<!-- Derzeitige "workaround" um jedenfalls den Background anzuzeigen sobald man ihn verändert hat zum testen -->
<style type="text/css">
#content
{
background-image:url('<?php echo $clan['background'] ?>');
background-repeat:no-repeat;
}
</style>
Loading…
Cancel
Save