• 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!

Shop System Full! [Modern AAC]

I think you are missing some </divs> try this and post result

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="author" content="Unknown" />
<meta name="Robots" content="index,follow" />

<link rel="stylesheet" href="{$path}/templates/fvusion/images/fvusion.css" type="text/css" />
{$head}

<title>{$title}</title>
    
</head>

<body>
<div id="header"><div id="logoheader"></div>
</div>
<div id="bgheader"></div>
        <div id="menu" align="center">
        
            <ul><div id="menuposx">
                <li{if $controller == "" || $controller == "home"} id="current"{/if}><a href="{$path}">Home</a></li>
                {if $logged == 1}
                    <li{if $controller == "account"} id="current"{/if}><a href="{$path}/index.php/account">Account</a></li>
                {else}
                    <li{if $controller == "account" && $method == "create"} id="current"{/if}><a href="{$path}/index.php/account/create">Create Account</a></li>
                    <li{if $controller == "account" && $method == "login"} id="current"{/if}><a href="{$path}/index.php/account/login">Login</a></li>
                {/if}
                    <li{if $controller == "character" && $method == "view"} id="current"{/if}><a href="{$path}/index.php/character/view">Characters</a></li>
                    <li{if $controller == "character" && $method == "online"} id="current"{/if}><a href="{$path}/index.php/character/online">Who is Online</a></li>
                    <li{if $controller == "guilds"} id="current"{/if}><a href="{$path}/index.php/guilds">Guilds</a></li>
                    <li{if $controller == "highscores"} id="current"{/if}><a href="{$path}/index.php/highscores">Highscores</a></li>    
                    <li{if $controller == "forum"} id="current"{/if}><a href="{$path}/index.php/forum">Forum</a></li>        </div>    
                    
            </ul>
        </div>    
<!-- wrap starts here -->
<div id="wrap">
                
            
        <!-- content-wrap starts here -->
        <div id="content-wrap">
                
            <div id="sidebar">
                {$online}
                <h1>Sidebar Menu</h1>
                <div class="left-box">
                    <ul class="sidemenu">                
                        {if $logged == 1}
                        <li><a href="{$path}/index.php/account">Account</a></li>
                        {else}
                        <li><a href="{$path}/index.php/account/create">Create Account</a></li>
                        <li><a href="{$path}/index.php/account/login">Login</a></li>
                        {/if}
                        <li><a href="{$path}/index.php/p/v/info">Server Info</a></li>
                        <li><a href="{$path}/index.php/p/v/auctionsystem"><span style="color: green;font-weight: bold;">Trade Online</span></a></li>
                        <li><a href="{$path}/index.php/p/v/support"><span style="color: orange;font-weight: bold;">Support in game</span></a></li>    
                        <li><a href="{$path}/index.php/character/view">Characters</a></li>
                        <li><a href="{$path}/index.php/guilds">Guilds</a></li>
                        <li><a href="{$path}/index.php/bugtracker">Bug Tracker</a></li>    
                        <li><a href="{$path}/index.php/p/v/fragers">Top fraggers</a></li>    
                        <li><a href="{$path}/index.php/video">Videos</a></li>    
                        <li><a href="{$path}/index.php/houses/main">Houses</a></li>    
                        <li><a href="{$path}/index.php/p/v/deaths">Latest Deaths</a></li>    
                        <li><a href="{$path}/index.php/p/v/gallery">Tokens</a></li>
                        <li><a href="{$path}/index.php/p/v/rep">Reputation</a></li>    
                        <li><a href="{$path}/index.php/p/v/shop">Shop</a></li>
                        <li><a href="{$path}/index.php/p/v/gifts">Shop</a>
                        <li><a href="{$path}/index.php/p/v/gifts/history">Shop History</a></li>
                        <li><a href="{$path}/index.php/p/v/gifts/donate">Donate</a> </li>
                        <li><a href="{$path}/index.php/p/v/gifts/donate/history">Donation History</a></li>

                    </ul>    
<div id ="bottom-rmenu">

                    
                    <h1>Server status</h1><br />
                    {foreach from=$worlds key=id item=world}
                        &nbsp; <b>World:</b> {$world} <br />
                        &nbsp; <b>Status:</b>  
                            {if $serverOnline[$id]}
                                <font color='green'>Online</font><br />
                                &nbsp; <b>Uptime:</b> {$serverUptime[$id]} <br />
                                &nbsp; <b>Players:</b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />

                            {else}
                                <font color='red'>Offline</font><br />
                            {/if}
                    {/foreach}
                </div>      
            </div>
                
<div id="main" style='padding-top: 10px;'>
                {$main}
</div>
<div id="sidebar-right">
                {$online}
                <h1>Search</h1>
                <div class="left-box">
                    <ul class="sidemenu">                
                        
            <form class="search" method="post" action="#">
                <p>
                  <input class="textbox" type="text" name="search_query" value="" />
                 <input class="button" type="submit" name="Submit" value="Search" />
                </p>
            </form>    
                <h1>Top 5 players</h1>
            <div id="top10">
             {include_php file='templates\fvusion\topplayer.php'} 
             </div>            
         </div>
        </ul>    
</div>                    
<div id ="bottom-menu">
</div>

        <!-- content-wrap ends here -->    
</div>
                    
        <!--footer starts here-->
<div id="footer">
            <a href="{$path}/index.php/credits">Credits</a>, 
            Page rendered in: {$renderTime}
            {$admin}
                <BR />
<p>Design by <a href="http://otland.net/members/xenios">Xenios</a></p>
</div>    

<!-- wrap ends here -->
</div>

</body>
</html>
 
:( nop now all are under the sidebar menu :S heres an image

169f889.jpg
 
Try this post results

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="author" content="Unknown" />
<meta name="Robots" content="index,follow" />

<link rel="stylesheet" href="{$path}/templates/fvusion/images/fvusion.css" type="text/css" />
{$head}

<title>{$title}</title>
    
</head>

<body>
<div id="header"><div id="logoheader"></div>
</div>
<div id="bgheader"></div>
        <div id="menu" align="center">
        
            <ul><div id="menuposx">
                <li{if $controller == "" || $controller == "home"} id="current"{/if}><a href="{$path}">Home</a></li>
                {if $logged == 1}
                    <li{if $controller == "account"} id="current"{/if}><a href="{$path}/index.php/account">Account</a></li>
                {else}
                    <li{if $controller == "account" && $method == "create"} id="current"{/if}><a href="{$path}/index.php/account/create">Create Account</a></li>
                    <li{if $controller == "account" && $method == "login"} id="current"{/if}><a href="{$path}/index.php/account/login">Login</a></li>
                {/if}
                    <li{if $controller == "character" && $method == "view"} id="current"{/if}><a href="{$path}/index.php/character/view">Characters</a></li>
                    <li{if $controller == "character" && $method == "online"} id="current"{/if}><a href="{$path}/index.php/character/online">Who is Online</a></li>
                    <li{if $controller == "guilds"} id="current"{/if}><a href="{$path}/index.php/guilds">Guilds</a></li>
                    <li{if $controller == "highscores"} id="current"{/if}><a href="{$path}/index.php/highscores">Highscores</a></li>    
                    <li{if $controller == "forum"} id="current"{/if}><a href="{$path}/index.php/forum">Forum</a></li>        </div>    
                    
            </ul>
        </div>    
<!-- wrap starts here -->
<div id="wrap">
                
            
        <!-- content-wrap starts here -->
        <div id="content-wrap">
                
            <div id="sidebar">
                {$online}
                <h1>Sidebar Menu</h1>
                <div class="left-box">
                    <ul class="sidemenu">                
                        {if $logged == 1}
                        <li><a href="{$path}/index.php/account">Account</a></li>
                        {else}
                        <li><a href="{$path}/index.php/account/create">Create Account</a></li>
                        <li><a href="{$path}/index.php/account/login">Login</a></li>
                        {/if}
                        <li><a href="{$path}/index.php/p/v/info">Server Info</a></li>
                        <li><a href="{$path}/index.php/p/v/auctionsystem"><span style="color: green;font-weight: bold;">Trade Online</span></a></li>
                        <li><a href="{$path}/index.php/p/v/support"><span style="color: orange;font-weight: bold;">Support in game</span></a></li>    
                        <li><a href="{$path}/index.php/character/view">Characters</a></li>
                        <li><a href="{$path}/index.php/guilds">Guilds</a></li>
                        <li><a href="{$path}/index.php/bugtracker">Bug Tracker</a></li>    
                        <li><a href="{$path}/index.php/p/v/fragers">Top fraggers</a></li>    
                        <li><a href="{$path}/index.php/video">Videos</a></li>    
                        <li><a href="{$path}/index.php/houses/main">Houses</a></li>    
                        <li><a href="{$path}/index.php/p/v/deaths">Latest Deaths</a></li>    
                        <li><a href="{$path}/index.php/p/v/gallery">Tokens</a></li>
                        <li><a href="{$path}/index.php/p/v/rep">Reputation</a></li>    
                        <li><a href="{$path}/index.php/p/v/shop">Shop</a></li>
                        <li><a href="{$path}/index.php/p/v/gifts/history">Shop History</a></li>
                        <li><a href="{$path}/index.php/p/v/gifts/donate">Donate</a> </li>
                        <li><a href="{$path}/index.php/p/v/gifts/donate/history">Donation History</a></li>

                    </ul>
</div>    
<div id ="bottom-rmenu">

                    
                    <h1>Server status</h1><br />
                    {foreach from=$worlds key=id item=world}
                        &nbsp; <b>World:</b> {$world} <br />
                        &nbsp; <b>Status:</b>  
                            {if $serverOnline[$id]}
                                <font color='green'>Online</font><br />
                                &nbsp; <b>Uptime:</b> {$serverUptime[$id]} <br />
                                &nbsp; <b>Players:</b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />

                            {else}
                                <font color='red'>Offline</font><br />
                            {/if}
                    {/foreach}
                </div>      
            </div>
                
<div id="main" style='padding-top: 10px;'>
                {$main}
</div>
<div id="sidebar-right">
                {$online}
                <h1>Search</h1>
                <div class="left-box">
                    <ul class="sidemenu">                
                        
            <form class="search" method="post" action="#">
                <p>
                  <input class="textbox" type="text" name="search_query" value="" />
                 <input class="button" type="submit" name="Submit" value="Search" />
                </p>
            </form>    
                <h1>Top 5 players</h1>
            <div id="top10">
             {include_php file='templates\fvusion\topplayer.php'} 
             </div>            
         </div>
        </ul>    
</div>                    
<div id ="bottom-menu">
</div>

        <!-- content-wrap ends here -->    
</div>
                    
        <!--footer starts here-->
<div id="footer">
            <a href="{$path}/index.php/credits">Credits</a>, 
            Page rendered in: {$renderTime}
            {$admin}
                <BR />
<p>Design by <a href="http://otland.net/members/xenios">Xenios</a></p>
</div>    

<!-- wrap ends here -->
</div>

</body>
</html>
 
What about this? ^^

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="author" content="Unknown" />
<meta name="Robots" content="index,follow" />

<link rel="stylesheet" href="{$path}/templates/fvusion/images/fvusion.css" type="text/css" />
{$head}

<title>{$title}</title>
    
</head>

<body>
<div id="header"><div id="logoheader"></div>
</div>
<div id="bgheader"></div>
        <div id="menu" align="center">
        
            <ul><div id="menuposx">
                <li{if $controller == "" || $controller == "home"} id="current"{/if}><a href="{$path}">Home</a></li>
                {if $logged == 1}
                    <li{if $controller == "account"} id="current"{/if}><a href="{$path}/index.php/account">Account</a></li>
                {else}
                    <li{if $controller == "account" && $method == "create"} id="current"{/if}><a href="{$path}/index.php/account/create">Create Account</a></li>
                    <li{if $controller == "account" && $method == "login"} id="current"{/if}><a href="{$path}/index.php/account/login">Login</a></li>
                {/if}
                    <li{if $controller == "character" && $method == "view"} id="current"{/if}><a href="{$path}/index.php/character/view">Characters</a></li>
                    <li{if $controller == "character" && $method == "online"} id="current"{/if}><a href="{$path}/index.php/character/online">Who is Online</a></li>
                    <li{if $controller == "guilds"} id="current"{/if}><a href="{$path}/index.php/guilds">Guilds</a></li>
                    <li{if $controller == "highscores"} id="current"{/if}><a href="{$path}/index.php/highscores">Highscores</a></li>    
                    <li{if $controller == "forum"} id="current"{/if}><a href="{$path}/index.php/forum">Forum</a></li>        </div>    
                    
            </ul>
        </div>    
<!-- wrap starts here -->
<div id="wrap">
                
            
        <!-- content-wrap starts here -->
        <div id="content-wrap">
                
            <div id="sidebar">
                {$online}
                <h1>Sidebar Menu</h1>
                <div class="left-box">
                    <ul class="sidemenu">                
                        {if $logged == 1}
                        <li><a href="{$path}/index.php/account">Account</a></li>
                        {else}
                        <li><a href="{$path}/index.php/account/create">Create Account</a></li>
                        <li><a href="{$path}/index.php/account/login">Login</a></li>
                        {/if}
                        <li><a href="{$path}/index.php/p/v/info">Server Info</a></li>
                        <li><a href="{$path}/index.php/p/v/auctionsystem"><span style="color: green;font-weight: bold;">Trade Online</span></a></li>
                        <li><a href="{$path}/index.php/p/v/support"><span style="color: orange;font-weight: bold;">Support in game</span></a></li>    
                        <li><a href="{$path}/index.php/character/view">Characters</a></li>
                        <li><a href="{$path}/index.php/guilds">Guilds</a></li>
                        <li><a href="{$path}/index.php/bugtracker">Bug Tracker</a></li>    
                        <li><a href="{$path}/index.php/p/v/fragers">Top fraggers</a></li>    
                        <li><a href="{$path}/index.php/video">Videos</a></li>    
                        <li><a href="{$path}/index.php/houses/main">Houses</a></li>    
                        <li><a href="{$path}/index.php/p/v/deaths">Latest Deaths</a></li>    
                        <li><a href="{$path}/index.php/p/v/gallery">Tokens</a></li>
                        <li><a href="{$path}/index.php/p/v/rep">Reputation</a></li>    
                        <li><a href="{$path}/index.php/p/v/shop">Shop</a></li>
                        <li><a href="{$path}/index.php/p/v/gifts/history">Shop History</a></li>
                        <li><a href="{$path}/index.php/p/v/gifts/donate">Donate</a> </li>
                        <li><a href="{$path}/index.php/p/v/gifts/donate/history">Donation History</a></li>

                    </ul>
</div>    
<div id ="bottom-rmenu">

                    
                    <h1>Server status</h1><br />
                    {foreach from=$worlds key=id item=world}
                        &nbsp; <b>World:</b> {$world} <br />
                        &nbsp; <b>Status:</b>  
                            {if $serverOnline[$id]}
                                <font color='green'>Online</font><br />
                                &nbsp; <b>Uptime:</b> {$serverUptime[$id]} <br />
                                &nbsp; <b>Players:</b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />

                            {else}
                                <font color='red'>Offline</font><br />
                            {/if}
                    {/foreach}
                </div>      
            </div>
                
<div id="main" style='padding-top: 10px;'>
                {$main}
</div>
</div>
<div id="sidebar-right">
                {$online}
                <h1>Search</h1>
                <div class="left-box">
                    <ul class="sidemenu">                
                        
            <form class="search" method="post" action="#">
                <p>
                  <input class="textbox" type="text" name="search_query" value="" />
                 <input class="button" type="submit" name="Submit" value="Search" />
                </p>
            </form>    
                <h1>Top 5 players</h1>
            <div id="top10">
             {include_php file='templates\fvusion\topplayer.php'} 
             </div>            
         </div>
        </ul>    
</div>                    
<div id ="bottom-menu">
</div>

        <!-- content-wrap ends here -->    
</div>
                    
        <!--footer starts here-->
<div id="footer">
            <a href="{$path}/index.php/credits">Credits</a>, 
            Page rendered in: {$renderTime}
            {$admin}
                <BR />
<p>Design by <a href="http://otland.net/members/xenios">Xenios</a></p>
</div>    

<!-- wrap ends here -->
</div>

</body>
</html>
 
worked :D!! but i got a question or a problem idk :p
when i use the admin panel and add like 10 points to a player, why he doesnt recive it? :S!
i already add the shop.lua in globalevents u.u
 
Last edited:
LOL'd when saw source of that script.
PHP:
if($SQL->query('SELECT * FROM shop_offer WHERE id = '.$product.'')->fetch())
{
$info = $SQL->query('SELECT * FROM shop_offer WHERE id = '.$product.'')->fetch();
Yes, we like double up queries. :D It's 108 line of gifts/gifts.php.

Next, let's look two lines above.
PHP:
$product = $this->uri->segment(5);
I didn't know how URI class implements vulnerability chars (I looked quickly, and It's taken from Code Igniter framework, and these doesn't escape ' char for example). It's bad habit, let's do integer casting before embed in SQL. (mysql_real_escape or something for strings). I hope that URI class successfully make this code secure.

But wait.

Line 178:
PHP:
if($SQL->query('SELECT * FROM players WHERE name = "'.$_POST['other_char'].'"')->fetch())
Oh, cmon guys. :/


I disliked this script. I revive it for others.
 
here you are :p
have someone translate the installation guide?


1.- Copy the contents of the folder "htdocs"folder in "htdocs" in your web

2.- Copy the script shop.lua "folder" globalevents "in the " globalevents "of the data on your server

3.- Open Globalevents.xml file and add the following line:

<globalevent name="shop" interval="30" script="script path"/>

Changing "script path" for the location of your script


/************************** INSTALL ***********************/

Log in with an administrator account on the website and enter the following path

http://TUURL/p/v/gifts

And it installed by itself


/**************************HOW TO EDIT ***********************/

To edit ContenidoPago and PayPal go to the folder:

"htdocs" -> "gifts" -> "config"

and open the file "config.php"


/************************* CONTENIDO **************************/

$config['donations']['methods'] = array('ContenidoPago' => true, 'PayPal' => true);

-> Set true if the service is enabled for donations and false if it is



$config['donations']['paypal'] = array('Mail' => '[email protected]', 'Points' => 6, 'Product' => 'Donation for VipHera', 'Money' => 'EUR', 'Amount' => 1);

-> Mail = yOUR pAYPAL MAIL

-> Points = how many points the player will receive

-> Product = Product name (will appear in paypal :p)

-> Money = money (EUR,USD,etc..)

-> Amount = how much money


$config['donations']['contenidopago'] = array('Product' => '1347', 'Points' => 4);

-> Product = your id nickname in ContenidoPago

-> Points = how many points the player will receive
 
lol, when i enter "http://TUURL/p/v/gifts" it says no page found or "Oops! This link appears to be broken."
 
1.- Copy the contents of the folder "htdocs"folder in "htdocs" in your web

2.- Copy the script shop.lua "folder" globalevents "in the " globalevents "of the data on your server

3.- Open Globalevents.xml file and add the following line:

<globalevent name="shop" interval="30" script="script path"/>

Changing "script path" for the location of your script


/************************** INSTALL ***********************/

Log in with an administrator account on the website and enter the following path

http://TUURL/p/v/gifts

And it installed by itself


/**************************HOW TO EDIT ***********************/

To edit ContenidoPago and PayPal go to the folder:

"htdocs" -> "gifts" -> "config"

and open the file "config.php"


/************************* CONTENIDO **************************/

$config['donations']['methods'] = array('ContenidoPago' => true, 'PayPal' => true);

-> Set true if the service is enabled for donations and false if it is



$config['donations']['paypal'] = array('Mail' => '[email protected]', 'Points' => 6, 'Product' => 'Donation for VipHera', 'Money' => 'EUR', 'Amount' => 1);

-> Mail = yOUR pAYPAL MAIL

-> Points = how many points the player will receive

-> Product = Product name (will appear in paypal :p)

-> Money = money (EUR,USD,etc..)

-> Amount = how much money


$config['donations']['contenidopago'] = array('Product' => '1347', 'Points' => 4);

-> Product = your id nickname in ContenidoPago

-> Points = how many points the player will receive

i have done the all it says "/
 
in :
/************************** INSTALL ***********************/

Log in with an administrator account on the website and enter the following path

http://TUURL/p/v/gifts

And it installed by itself

must be:
/************************** INSTALL ***********************/

Log in with an administrator account on the website and enter the following path

http://yoururl/p/v/gifts

And it installed by itself
 
Back
Top