Jump to content
GIGN Forum

Serveris Web Augšā


Recommended Posts

Kāds var palīdzēt izdarīt lai WEB augšā rādītos serveris ??

Es lietoju http://www.gign.lv/forum/index.php?showtop...mp;#entry220875

pašu pirmo SERVERI...

Vopšem man ir WEB....Un es gribu kko līdzīgu tākā ŠEIT!!!

Nevajag IDENTISI...bet kko līdzīgu...kāds var palīdzēt??

Cik es sapratu man jāpārlabo THEME.PHP...

Es nezinu kurā rindiņā man kas jāraksta....

Es lietoju php-FUSION!

Link to comment
Share on other sites

:unsure:

nez itkā var meiģināt pirms/pēc, headera koda uzlikt, monitoru kodu, vēlams, manuprāt, būtu caur inframe kā kau teici...

ps parādi savas themes.php sākumu lidz heiderim....

Edited by esctm
Link to comment
Share on other sites

<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "95%";
$theme_width_l = "175";
$theme_width_r = "175";

if(!function_exists("ImageTTFText"))
    $rendered_captions = false;
else
    $rendered_captions = true;

function render_header($header_content) {

global $theme_width,$settings;
echo "
<div style='width: ".(stristr("".$theme_width."", "%")? $theme_width : $theme_width."px")."; margin: 0 auto; text-align: left;'>
    <div id='headerbg'>
        <div id='headerl'>
            <div id='headerr'>

            </div>
        </div>
    </div>
    
    <img style='float:left;' src='".THEME."images/whiteheaderl.jpg' alt='<' hspace='0'>
    <img style='float:right;' src='".THEME."images/whiteheaderr.jpg' alt='>' hspace='0'>
    <div class='white-header'>
        <div style='float:left'>
            ".showsublinks(" ? ", "white")."
        </div>
        
        <div style='float:right;'>
            ".showsubdate()."
        </div>
    </div>
    
    <table width='100%' cellspacing='0' cellpadding='0' id='content'>
        <tr>";

Cerams pieteiks???...Bet šitā THEME ir EDITĒTA....

Šitā izskatās normālai THEME....

<?
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "95%";
$theme_width_l = "175";
$theme_width_r = "175";

if(!function_exists("ImageTTFText"))
    $rendered_captions = false;
else
    $rendered_captions = true;

function render_header($header_content) {

global $theme_width,$settings;
echo "
<div style='width: ".(stristr("".$theme_width."", "%")? $theme_width : $theme_width."px")."; margin: 0 auto; text-align: left;'>
    <img src='".THEME."images/headerlefttop.jpg' alt='<---->' hspace='0' vspace='0' style='vertical-align: bottom;'>
    <div id='headerbg'>
        <div id='headerl'>
            <div id='headerr'>
                <img src='".THEME."images/banner.gif' alt='Battlefield 2' style='margin-top: 16px;'>
            </div>
        </div>
    </div>
    
    <img style='float:left;' src='".THEME."images/whiteheaderl.jpg' alt='<' hspace='0'>
    <img style='float:right;' src='".THEME."images/whiteheaderr.jpg' alt='>' hspace='0'>
    <div class='white-header'>
        <div style='float:left'>
            ".showsublinks(" ? ", "white")."
        </div>
        
        <div style='float:right;'>
            ".showsubdate()."
        </div>
    </div>
    
    <table width='100%' cellspacing='0' cellpadding='0' id='content'>
        <tr>";

}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

echo "
        </tr>
    </table>

Link to comment
Share on other sites

Tu vari darīt, tā: Pašu banneri headerim iemet CSS kā backgroundu, bet norādi, lai viņš neatkārtojas un ar koordinātām iemet precīzu vietu kur viņam būs jābūt. Tālāk aver to theme.php un ar inkclūdi iemet linku uz monitoru, kuru būsi iekopējis inklūdētajā failā, tur kur būtu jābūt bannerim, un atkal ar koordinātām novirzi, tur kur gribi viņu redzēt.

Ja gadījumā, tev kautkas ir neskaidrs pameklējies te, jo man ir baigais slinkums visu rādīt priekšā.

Link to comment
Share on other sites

theme.php un ar inkclūdi iemet linku uz monitoru, kuru būsi iekopējis inklūdētajā failā, tur kur būtu jābūt bannerim, un atkal ar koordinātām novirzi, tur kur gribi viņu redzēt.

Ja gadījumā, tev kautkas ir neskaidrs pameklējies te, jo man ir baigais slinkums visu rādīt priekšā.

Nu jā bet man nemaz tas banneris nav....vari paskatīties.... ŠEIT Tur tukš ir pa vidu...jo viņa ir editēta...

Link to comment
Share on other sites

:)

Jūs nevarat lūdzu vienkārši NOKOPĒT to pirmo CODE un biški EDITĒT pēc jūsu domām ka vajadzētu un tad es varētu pamēģināt...??

Vai kaurt arī otro CODE...jo man ir abi divi THEME...

Es tax esmu :lohs:

Link to comment
Share on other sites

karoč es tev visu sourci izrakāju un varu pateikt, ka viņš tev ir iekļauts @ CSS

Izdari tā:

Uztaisi failu ar nosaukumu monitors.php un tajā iekopē, sava monitora skriptu.

Tagad paņem savu theme.php un starp <div id='headerr'></div> tagu ieliec šādu rindiņu <center><?php include("monitors.php"); ?> </center>, ja kautkas nesanāk, pamēģini bez center tagiem.

Tam monitors.php jābūt weba root direktorijā, vai arī tajā folderī kur atrodas theme.php - neatceros :)

Link to comment
Share on other sites

Izdari tā:

Uztaisi failu ar nosaukumu monitors.php un tajā iekopē, sava monitora skriptu.

Tagad paņem savu theme.php un starp <div id='headerr'></div> tagu ieliec šādu rindiņu <center><?php include("monitors.php"); ?> </center>, ja kautkas nesanāk, pamēģini bez center tagiem.

Tam monitors.php jābūt weba root direktorijā, vai arī tajā folderī kur atrodas theme.php - neatceros :)

Tas nekas ja lieku apbās vietās?

Link to comment
Share on other sites

<!-- BEGIN: MAIN -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2" />
<meta http-equiv="expires" content="Fri, Apr 01 1974 00:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="refresh" content="30;url=../Serveris/index.php" />

<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="last-modified" content="Fri, 04 Mar 2005 22:07:10 GMT" />
<link href="../cs/small.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
.style1 {
    font-size: 12px;
    color: #c0c0c0;
}
.style2 {
    font-size: 10px;
    font-weight: bold;
    color: #c0c0c0;
}
.style3 {
    color: #c0c0c0;
    font-size: 10;
}
.style4 {
    font-size: 10px;
    color: #CC0000;
}
.style5 {
    color: #c0c0c0;
    font-weight: bold;
}
.style7 {font-size: 10px; color: #c0c0c0; }
.style10 {color: #CCCCCC}
-->
</style>
</head>
<body>
<!-- BEGIN: STATUS -->

<table border="0" cellpadding="2" cellspacing="2" align="center">
  <tr>
    <td><h3 align="center"> <span class="style7">  {name}</span></h3></td>
  </tr>
<td><div align="center">
        <div align="center"><span class="style2">Players: {player_name}/{player_kills}</span><br />
  <tr>
    <td><div align="center">
        <div align="center"><span class="style2">Players: {totalplayers}/{maxplayers}</span><br />
            <span class="style10">{ip}</span></div>
      </div>
  </tr>
  <tr>
    <td>
      <div align="center"><img src="/stats/images/maps/{map}.jpg" width="139" height="105" title="{map}" /><br />
        <span class="style3"><strong>Current map </strong>: {map}<br />
        <strong>Timeleft</strong>: {rules.amx_timeleft} min</span><a href="http://naziic.sytes.net/serveris.htm"><br />
          </a><br />
    </div></td>
  </tr>
</table>
<!-- END: STATUS -->
<!-- BEGIN: TIMEOUT -->
<table border="0" cellpadding="2" cellspacing="2" align="center">
  <tr>
    <td colspan="2"><h3><span class="style1">{name}</span></h3></td>
  </tr>
  <tr>
    <td colspan="2" align="center"> <span class="style4">Server are not respondig .</span><br />
        <br />
        <a href="../cs/?"></a><br />
        <br />
        <br /></td>
  </tr>
</table>
<!-- END: TIMEOUT -->
<!-- BEGIN: DEV -->
{dev}
<!-- END: DEV -->
</body>
</html>
<!-- END: MAIN -->

Šitais ir tas MONITORA scripts ja?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...