this is a snipped to show the requirements od buildings/researches and ships in xterium
insert in to the pages
class.showbuildings.php
class.showresearch.php
class.shipyard.php
class.showdmdeff.php
class.showdmhangar.php
class.showdmtech.php
in this files search for this parts, sometimes more then one
Display Spoiler
and insert after that
.
in whole it should look like this
Display Spoiler
Display All
in the related tpl files us search for
(page.buildings.tpl
page.dmbuild.tpl
page.research.tpl
page.dmship.tpl
page.dmdeff.tpl
page.dmtech.tpl
page.shipyard.tpl
page.techtree.tpl
)
and replace it with
Display Spoiler
thats it
insert in to the pages
class.showbuildings.php
class.showresearch.php
class.shipyard.php
class.showdmdeff.php
class.showdmhangar.php
class.showdmtech.php
in this files search for this parts, sometimes more then one
PHP Source Code
- foreach($Elements as $ID => $Element)
- {
- if($pricelist[$Element]['special_type'] == 1 && $PLANET['capture_option'] != 1)
- continue;
- $AllTech = array();
- $GetAll = $GLOBALS['DATABASE']->query("SELECT * FROM `uni1_vars_requriements` WHERE elementID = ".$Element." ;");
- if($GLOBALS['DATABASE']->numRows($GetAll)>0){
- while($x = $GLOBALS['DATABASE']->fetch_array($GetAll)){
and insert after that
.
in whole it should look like this
PHP Source Code
- foreach($Elements as $ID => $Element)
- {
- if($pricelist[$Element]['special_type'] == 1 && $PLANET['capture_option'] != 1)
- continue;
- $AllTech = array();
- $GetAll = $GLOBALS['DATABASE']->query("SELECT * FROM `uni1_vars_requriements` WHERE elementID = ".$Element." ;");
- if($GLOBALS['DATABASE']->numRows($GetAll)>0){
- while($x = $GLOBALS['DATABASE']->fetch_array($GetAll)){
- $GetAll1 = $GLOBALS['DATABASE']->query("SELECT * FROM `uni1_planets` WHERE ".$Element." = ".$Element." ;");
- if($x['requireID'] <= 99){
- $x['rlevel'] = $PLANET[$resource[$x['requireID']]];
- }else{
- $x['rlevel'] = $USER[$resource[$x['requireID']]];
- }
- $AllTech[] = $x;
- }
- }
- $infoEnergy = "";
in the related tpl files us search for
(page.buildings.tpl
page.dmbuild.tpl
page.research.tpl
page.dmship.tpl
page.dmdeff.tpl
page.dmtech.tpl
page.shipyard.tpl
page.techtree.tpl
)
and replace it with
<div class="text" style="{if $i.rlevel < $i.requireLevel}color:red; {else} color:green; {/if}"> {$i.rlevel}/{$i.requireLevel}</div>
thats it