$config['use_guild_logos'] now actually works, toggle it between true and false.

This commit is contained in:
Stefan Brannfjell 2014-06-14 07:39:58 +02:00
parent 5349c96018
commit 0c6f177d45
2 changed files with 13 additions and 4 deletions

View File

@ -299,7 +299,7 @@
$config['invalidNameTags'] = array("god", "gm", "cm", "gamemaster", "hoster", "admin", "admim", "adm", "owner", "staff");
// Use guild logo system
$config['use_guild_logos'] = 4;
$config['use_guild_logos'] = true;
// Level requirement to create guild? (Just set it to 1 to allow all levels).
$config['create_guild_level'] = 8;

View File

@ -168,8 +168,17 @@ if (user_logged_in() === true) {
// Display the specific guild page
?>
<h1><img src="<?php logo_exists(sanitize($_GET['name'])); ?>"></img> Guild: <?php echo sanitize($_GET['name']);
?> </h1>
<div id="guildTitleDiv">
<?php if ($config['use_guild_logos']): ?>
<div id="guildImageDiv" style="float: left; margin-right: 10px;">
<img style="max-width: 100px; max-height: 100px;" src="<?php logo_exists(sanitize($_GET['name'])); ?>"></img>
</div>
<?php endif; ?>
<div id="guildDescription">
<h1>Guild: <?php echo sanitize($_GET['name']); ?></h1>
<p>Motive of the Guild</p>
</div>
</div>
<table id="guildViewTable" class="table table-striped">
<tr class="yellow">
<th>Rank:</th>