Clan-Level 3 wird nun benötigt um den Background zu ändern.

main
elfenland 10 years ago
parent 5edeb4fd41
commit b1b823eee0

@ -392,11 +392,17 @@ function displayClanProfileEditable($clan, $userid){
href="index.php?as=clan/clan_info&action=edit&what=Info">(edit)</a></th> href="index.php?as=clan/clan_info&action=edit&what=Info">(edit)</a></th>
<td><?php echo $clan['info']; ?></td> <td><?php echo $clan['info']; ?></td>
</tr> </tr>
<tr> <?php
<th align="Left" height="25">Background:<a if(isClanBackgroundAvailable($clan['id'])) { ?><tr>
href="index.php?as=clan/clan_info&action=edit&what=Background">(edit)</a> <th align="Left" height="25">
Background:<a
href="index.php?as=clan/clan_info&action=edit&what=Background">(edit)</a>
</th> </th>
</tr> </tr>
<?php
}
?>
<tr> <tr>
<th align="left">Clan aufl&ouml;sen</th> <th align="left">Clan aufl&ouml;sen</th>
<td><a <td><a
@ -471,7 +477,8 @@ function displayClanProfile($clanid, $userid){
displayClanProfileEditable($clan, $user['id']); displayClanProfileEditable($clan, $user['id']);
} }
if($clan['background'] != "0"){ ?> if($clan['background'] != "0"){
?>
<style type="text/css"> <style type="text/css">
#content #content
{ {

@ -14,6 +14,8 @@ include_once (ROOT_PATH . '/include/designfunctions.inc.php');
defineIfNotDefined('CLAN_LVL_NEWSLETTER', 1); defineIfNotDefined('CLAN_LVL_NEWSLETTER', 1);
defineIfNotDefined('CLAN_LVL_CHAT', 2); defineIfNotDefined('CLAN_LVL_CHAT', 2);
defineIfNotDefined('CLAN_LVL_BACKGROUND', 3);
defineIfNotDefined('MAX_CHARS_CLANSIGN', 8); defineIfNotDefined('MAX_CHARS_CLANSIGN', 8);
$GLOBALS['clan_buffered_instances'] = array (); $GLOBALS['clan_buffered_instances'] = array ();
@ -339,6 +341,10 @@ function isClanChatAvailable($clanid) {
$clan = getClan($clanid); $clan = getClan($clanid);
return $clan['level'] >= CLAN_LVL_CHAT; return $clan['level'] >= CLAN_LVL_CHAT;
} }
function isClanBackgroundAvailable($clanid) {
$clan = getClan($clanid);
return $clan['level'] >= CLAN_LVL_BACKGROUND;
}
function sendClanNewsletter($user, $text){ function sendClanNewsletter($user, $text){
$clan = getClan($user['clan']); $clan = getClan($user['clan']);

Loading…
Cancel
Save