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

Help Needed with adding new page in Gesior Website

Frederus

Member
Joined
Jun 24, 2009
Messages
45
Reaction score
5
Location
UK - London
Hi all im having a small issue and bet im gonna feel like an idiot when i work out what im missing.

Im trying to add a page under the community tab under "Support"

So far i have created addon.php and stuck in with all the other pages, inside this is a piece of code for addon bonus table which i found online. and plan to edit once i get it working.
Code:
<?php
<h1>General</h1>
<hr/> 
<center><b>Addons Bonus.</b></center> 
<hr/> 


<TABLE table  BGCOLOR="'.$config['site']['darkborder'].'" BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%> 
<TR BGCOLOR="'.$config['site']['vdarkborder'].'" ><TD CLASS=white COLSPAN=5><B>Outfit Bonus Table</B></TD></TR> 
<TR><TD><TABLE BORDER=0 CELLPADDING=2 CELLSPACING=1 WIDTH=100%> 
<TR BGCOLOR=#eeddb9><TD><B>Outfit</B></TD><TD><B>Bonus</B></TD></TR> 

<TR class="KL" BGCOLOR=#eeddb9><TD><center><b>Citizen</b><br> 
<img src="./images/addons/1028.gif"/>&nbsp</center><br></TD><TD>+5 speed, +100 hp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Hunter</b><br> 
<img src="./images/addons/1029.gif"/>&nbsp</center><br></TD><TD>+3 distance</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Mage</b><br> 
<img src="./images/addons/1030.gif"/>&nbsp</center><br></TD><TD>+2 magic level, +200 mp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Knight</b><br> 
<img src="./images/addons/1039.gif"/>&nbsp</center><br></TD><TD>+3 sword</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Nobleman/Noblewoman</b><br> 
<img src="./images/addons/1032.gif"/>&nbsp</center><br></TD><TD>+3 club</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Summoner</b><br> 
<img src="./images/addons/1033.gif"/>&nbsp</center><br></TD><TD>+2 magic level, +100 mp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Warrior</b><br> 
<img src="./images/addons/1034.gif"/>&nbsp</center><br></TD><TD>+3 sword</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Barbarian</b><br> 
<img src="./images/addons/1043.gif"/>&nbsp</center><br></TD><TD>+3 axe</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Druid</b><br> 
<img src="./images/addons/1044.gif"/>&nbsp</center><br></TD><TD>+2 magic level</TD></TR>
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Wizard</b><br> 
<img src="./images/addons/1045.gif"/>&nbsp</center><br></TD><TD>+1 magic level, +100 mp</TD></TR>  
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Oriental</b><br> 
<img src="./images/addons/1046.gif"/>&nbsp</center><br></TD><TD>+200 mp, +200 hp, +5 speed</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Pirate</b><br> 
<img src="./images/addons/1051.gif"/>&nbsp</center><br></TD><TD>+3 club, +100 hp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Assassin</b><br> 
<img src="./images/addons/1052.gif"/></center><br></TD><TD>+5 speed, +2 distance</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Beggar</b><br> 
<img src="./images/addons/1053.gif"/>&nbsp</center><br></TD><TD>+200 hp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Shaman</b><br> 
<img src="./images/addons/1054.gif"/>&nbsp</center><br></TD><TD>+2 magic level</TD></TR> 
<TR  class="KL"  BGCOLOR=#eeddb9><TD><center><b>Norseman/Norsewoman</b><br> 
<img src="./images/addons/1151.gif"/>&nbsp</center><br></TD><TD>+2 shielding, +200 hp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Nightmare</b><br> 
<img src="./images/addons/1168.gif"/>&nbsp</center><br></TD><TD>+3 shielding</TD></TR>
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Jester</b><br> 
<img src="./images/addons/1058.gif"/>&nbsp</center><br></TD><TD>+5 speed, +100 hp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Brotherhood</b><br> 
<img src=".images/addons/1178.gif"/>&nbsp</center><br></TD><TD>+2 magic level, +100 hp</TD></TR>
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Demonhunter</b><br> 
<img src="/images/addons/1059.gif"/></center><br></TD><TD>+10 speed, +200 hp</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Yalaharian</b><br> 
<img src="/images/addons/924.gif"/></center><br></TD><TD>+2 magic level, +5 speed</TD></TR> 
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Warmaster</b><br> 
<img src="/images/addons/1060.gif"/></center><br></TD><TD>+2 magic level, +15 speed, +100 hp</TD></TR>
<TR  class="KL" BGCOLOR=#eeddb9><TD><center><b>Wayfarer</b><br> 
<img src="http://otland.net/images/addons/1061.gif"/></center><br></TD><TD>+10 speed, +2 shield, +2 sword</TD>
</tr></table>

I have then edited layout.php and added this snippet of code
Code:
<a href='?subtopic=addon'>
  <div id='submenu_addon' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
    <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
    <div id='ActiveSubmenuItemIcon_addon' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
    <div class='SubmenuitemLabel'>Addon Bonus</div>
    <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
  </div>
</a>

In the Config.php i have added this.
Code:
# PAGE: addon.php
$config['Site'];

That is all.
I have read around and some people are saying to add something along the lines of this in Index.php after say the same code for guild.php for example but it dont seem right as the index.php doesnt refrence to any subtopic / topics

Code:
case "addons";
        $subtopic = "addons";
        $topic = "Addons";
        include("addons.php");
    break;

But my index.php Looks Like this:
Code:
<?php
// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);

// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);

define('INITIALIZED', true);

// if not defined before, set 'false' to load all normal
if(!defined('ONLY_PAGE'))
    define('ONLY_PAGE', false);
   
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');

// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');

// DATABASE
include_once('./system/load.database.php');
if(DEBUG_DATABASE)
    Website::getDBHandle()->setPrintQueries(true);
// DATABASE END

// LOGIN
if(!ONLY_PAGE)
    include_once('./system/load.login.php');
// LOGIN END

// COMPAT
// some parts in that file can be blocked because of ONLY_PAGE constant
include_once('./system/load.compat.php');
// COMPAT END

// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END

// LAYOUT
// with ONLY_PAGE we return only page text, not layout
if(!ONLY_PAGE)
    include_once('./system/load.layout.php');
else
    echo $main_content;
// LAYOUT END

As i said im sure im just being a fool but would like another set of eyes to see what i have missed....

When i click on the menu for "Addon Bonus" whilst on the webpage i just get
Code:
The kingslanding.co.uk page isn’t working
kingslanding.co.uk is currently unable to handle this request.

HTTP ERROR 500

Any Help would be great, :)
 
Ok so i done a little test and copied another page and renamed addon.php
This worked fine so now just to figure out what it is within the original addon.php that is making this page non-viewable
 
Back
Top