|
You last visited: Today at 21:32
Advertisement
[web]question
Discussion on [web]question within the SRO Private Server forum part of the Silkroad Online category.
10/02/2015, 22:22
|
#1
|
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
|
[web]question
hello,
any web developer here can tell me how to put the fortress guild owners on
my home page like an php script to show the guild owners name
thx all
|
|
|
10/03/2015, 01:17
|
#2
|
elite*gold: 0
Join Date: May 2012
Posts: 179
Received Thanks: 56
|
here you go but you will need to edit the times on here to your server times and good luck
Quote:
<?php
$mssql->dbClose();
$mssql->dbOpen($conf->shardDbName);
?>
<div class="page-body newsblock">
<div class="news-title">
<p>Registrations: <span class="orange">Friday 24 Hours (GMT-4:30)</span></p>
<p>Fortress War: <span class="orange">Saturday 19:30 - 21:30 (GMT-4:30)</span></p>
<p>Tax Period: <span class="orange">Sunday 20:00 - 22:00 (GMT-4:30)</span></p>
</div>
<div class="news-title">
Fortress state:
</div>
<table style="border:1px solid #3f3f3f; border-radius: 8px 8px 8px 8px;padding: 4px;background-color:rgba(50,50,50,0.55);text-align:center;color: #fff;font-family: Arial, Helvetica, sans-serif;" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="10px" style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);"></td>
<td style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);">Fortress</td>
<td style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);">Guild</td>
<td style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);">Tax</td>
</tr>
<tr>
<?php $mssql->getFortData(1); ?>
</tr>
<tr>
<?php $mssql->getFortData(6); ?>
</tr>
<tr>
<?php $mssql->getFortData(3); ?>
</tr>
</table>
</div>
<?php
$mssql->dbClose();
$mssql->dbOpen($conf->accountDbName);
?>
|
|
|
|
10/03/2015, 14:01
|
#3
|
elite*gold: 0
Join Date: Jun 2012
Posts: 239
Received Thanks: 26
|
thx for your answer mate but that didn't work for me cuze nothing shows up
i try it as u said and i try it like this
PHP Code:
<?php $mssql->dbClose(); $mssql->dbOpen($conf->SRO_VT_SHARD); ?> <div class="page-body newsblock"> <div class="news-title">
<p>Registrations: <span class="orange">Friday 24 Hours (GMT-4:30)</span></p> <p>Fortress War: <span class="orange">Saturday 19:30 - 21:30 (GMT-4:30)</span></p> <p>Tax Period: <span class="orange">Sunday 20:00 - 22:00 (GMT-4:30)</span></p>
</div> <div class="news-title"> Fortress state: </div> <table style="border:1px solid #3f3f3f; border-radius: 8px 8px 8px 8px;padding: 4px;background-color:rgba(50,50,50,0.55);text-align:center;color: #fff;font-family: Arial, Helvetica, sans-serif;" width="100%" cellpadding="0" cellspacing="0"> <tr>
<td width="10px" style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);"></td> <td style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);">Fortress</td> <td style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);">Guild</td> <td style="border:1px solid #3f3f3f;background:rgba(0,0,0,0.55);">Tax</td> </tr> <tr> <?php $mssql->getFortData(1); ?> </tr> <tr> <?php $mssql->getFortData(6); ?> </tr> <tr> <?php $mssql->getFortData(3); ?> </tr> </table> </div>
<?php $mssql->dbClose(); $mssql->dbOpen($conf->SRO_VT_ACCOUNT); ?>
i'm guessing it is my connection file so
PHP Code:
<?php ob_start(); // Base configuration file for SroLand web panel 3 - Special edit for GerSro // coded by HyperProCoders - 27.09.2011 - Last Edit: 23.10.2012
// Site Settings $sitecharset = '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'; $sitetitle = "here"; $facebooklink = "here; $showusername = 1; // Show user name on profiles? $mysqlsupport = 1; // Your host support MySQL? (mysql for mysql_real_escape_string) $languages = array("en" => "English", "tr" => "Turkish"); // Site Settings finish.
// Connection Settings //account db $accountdbhost = "here\SQLEXPRESS"; // DB Host $accountdbuser = "sa"; // DB user $accountdbpass = "here"; // DB pass $accountdb = "SRO_VT_ACCOUNT"; // DB //account db //shard db $sharddbhost = "here\SQLEXPRESS"; $sharddbuser = "sa"; $sharddbpass = "here"; $sharddb = "SRO_VT_SHARD"; //shard db // Connection Settings finish.
// DB Connection include_once("connection.php"); // DB Connection
// Do not edit $girisdurum = $_SESSION["girisdurum"]; $kullanici = $_SESSION["username"]; $kullaniciid = $_SESSION["userid"]; $yonetici = $_SESSION["rutbe"]; $reseller = $_SESSION["resellername"]; $language = $_SESSION["language"]; // Do not edit ?>
iam using Epic WebSite Click Me!
so what i did wrong ? :/
|
|
|
All times are GMT +1. The time now is 21:32.
|
|