• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Post your quick ideas here!

1) Leaders and Vice-Leaders should invite players to a guild.
2) There are problems on leaving guild.
3) There should be a newstickers system.
4) Showing online members on guilds:

PHP:
 <?php
$ide = new IDE;
try { $ide->loadInjections('guild_view'); } catch(Exception $e) { error($e->getMessage()); }
$logo = (file_exists("public/guild_logos/".$guild->getId().".gif")) ? "<img src='".WEBSITE."/public/guild_logos/".$guild->getId().".gif' width='64' height='64'>" : "<img src='".WEBSITE."/public/guild_logos/default.gif'>";
?>

<style type="text/css">
    #logon { width: 97%; height: 100%; padding: 0.5em; }
    #logon h3 { text-align: center; margin: 0; height 10px;}
    </style>

<div id="logon" class="ui-widget-content">
    <h3 class="ui-widget-header"> <?PHP ECHO "".$guild->getName()."";?> </h3>
    <br>
<div id="characters" class="ui-helper-clearfix">
<?PHP 
ECHO "<div style=\"float:left;padding: 0px 5% 9px;\">";
ECHO "$logo"; 
ECHO "</div>";
ECHO "<div style=\"padding: 0px 23% 0px; width:75%;\">";
$mod = $guild->getCustomField("motd");
ECHO $mod;
ECHO "<br><BR>Guild Leader: <a href='".WEBSITE."/index.php/character/view/".$guild->getOwner()."'>".$guild->getOwner()."</a>";
ECHO "</div>";
?>
</div>
</div>
<br>
<?PHP

       
        $rank_list = $guild->getGuildRanksList();
        $rank_list->orderBy('level', POT::ORDER_DESC);
        $showed_players = 1;
                if($ide->isLogged()) {
                $ots = POT::getInstance();
                $ots->connect(POT::DB_MYSQL, connection());
                $account_logged = new OTS_Account();
                $account_logged->load($_SESSION['account_id']);
                $account_players = $account_logged->getPlayers();
                }
        echo "<div style=\"padding: 0.5em;\" class=\"ui-widget-content\">";
                foreach($rank_list as $rank)
                {
                        $players_with_rank = $rank->getPlayersList();
                        $players_with_rank->orderBy('name');
                        $players_with_rank_number = count($players_with_rank);
                        if($players_with_rank_number > 0)
                        {
                                echo "<div class=\"ui-widget-header\"><center><b>".$rank->getName()."</b></center></div>";
                                foreach($players_with_rank as $player)
                                {
                                        $guild_nick = $player->getGuildNick();
                                        if(!empty($guild_nick)) $guild_nick = "($guild_nick)"; else $guild_nick = "";
                                        
                                        if($ide->isLogged()) {$leave = (in_array($player->getName(), $account_players)) ? "<a href='#' onClick='if(confirm(\"Are you sure you want to leave ".$guild->getName()." with a ".$player->getName()." ?\")) window.location.href=\"".WEBSITE."/index.php/guilds/leave/".$guild->getId()."/".$player->getId()."\"'><img src='".WEBSITE."/public/images/false.gif'/></a>" : ""; }
                                        echo @"<li class=\"ui-state-default ui-corner-all\">$leave <a onmouseover=\"tooltip.show('$input', 225);\" onmouseout=\"tooltip.hide();\" href=\"".WEBSITE."/index.php/character/view/".$player->getName()."\">".$player->getName()."</a> $guild_nick </li>";
                                }
                        }
                }
        echo "</div><br>";
               
        if(!$ide->isLogged()) {
                alert("You need to be logged in to access any options.");
        }
        else {

                require_once('system/application/libraries/POT/InvitesDriver.php');
                new InvitesDriver($guild);
                $invited_list = $guild->listInvites();
                        echo "<div style=\"padding: 0.5em;\" class=\"ui-widget-content\">";
                if(count($invited_list) == 0)
                        echo "<center><b>This guild did not invite anyone.</b></center>";
                else {

                echo "<table width=\"100%\"><tr align=center><td width=50%><div class=\"ui-widget-header\"><b>Name<b></div></td><td width=50%><div class=\"ui-widget-header\"><b>Join</b></div></td></tr></table><table width=\"100%\">";
                $characters = array();
                if($ide->isLogged()) {
                        foreach($account_players as $player_from_acc) {
                                $characters[] = $player_from_acc->getName();
                        }
                }
                       
                foreach($invited_list as $invited_player)
                        {
if($ide->isLogged() && in_array($invited_player->getName(), $characters)) {
echo "<tr><td><li class=\"ui-state-default ui-corner-all\"><center><a href=\"".WEBSITE."/index.php/character/view/".$invited_player->getName()."\">".$invited_player->getName()."</a></center></li></td><td><center><a href='".WEBSITE."/index.php/guilds/join/".$guild->getId()."/".$invited_player->getId()."'><span class=\"ui-icon ui-icon-check\"></span></a></center></li>";    
             }
       else {
       echo "<tr><td width=50%><li class=\"ui-state-default ui-corner-all\"><center><a href=\"".WEBSITE."/index.php/character/view/".$invited_player->getName()."\">".$invited_player->getName()."</a></center></li></td><td width=50%><center><span class=\"ui-icon ui-icon-closethick\"></span></center></tr>";
                                               
                                                }
                               
                               
                        }
                echo "</table></div>";
                }
       
        }
        if(($ide->isLogged() && in_array($guild->getOwner(), $account_players)) or $viceleaders) {
                echo "<br/><div class='toolbar'>";
                echo "<a href='".WEBSITE."/index.php/guilds/management/".$guild->getId()."'>Guild Management</a>";     
                echo "</div>";
        }

?>

I use this one.
 
...
- Make it so you can't kick players from guilds while they are online or do any other guild movement that involves in-game information while players are online..
(I gave Stian this suggestion and he already worked on the most important parts)
...
config.lua
PHP:
	ingameGuildManagement = false
Doesn't work? :thumbup:
@soul4soul
The idea of implementing a forum sux, cause everything is saved at database, so if you get hacked, you will lose all your info there, so it is better to use a dedicated forum.
or make backup every 24 hours.. you can make php script that will copy database to your home PC from dedic or from home PC (if you host in home) to free webserver(s)...
i have one big idea -.-
make all script by gesior in modern -.-
make gesior layout for modern...
make add tickers... 68% use gesior 32% use modern... why ... all scripts is rox...and have good's layout's... ;)
ps; make all script by modern ... more without EXPLOIT :)

Another suggestion when you try to search a character it should give a smart list of players with that initials letters, like google!
To developers:
Please add ~ajax like in gesior when you create account/character/guild/search.
No, no SMS shop will be added straight on to the relase.
Can I write daopay/paypal (and other) scripts and post it on forum (free scripts)?
Can I make shop system like (based on same tables, not 'changed to modern' like in tutorial) in gesior acc?
 
I just installed first stable of Modern AAC and... please make check of requirements before the installation :) like php ver, php configuration, chmods and so on...
Also make error reporting as in default on fresh php installation, why it is E_ALL on default - thats should be forbidden.

Looking deeper in sources i have found codeigniter classess imo - thats not the best choice. But i left up this to you.
 
if you have page access 5 you should be able to see all guild boards
 
on config.php choose twitter or facebook, if is twitter @BLABLA ... facebook -> NAME ;

is a niiice idea ;)
 
@Pvls
Because it's a development SVN, easier for people to report bugs.

@kito2, many, many posts ago
You can always request a forum on vapus

@nwtr:
Doesn't work because tfs doesn't support it, and you can't use a email address as name when logging in.

@kito2, last post
No
 
Back
Top