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

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

Loading…
Cancel
Save