Siccome ho visto molta gente che cerca come si creano le nuove categorie ho deciso di fare una semplicissima guida .
Come primo fornirsi del file php che serve tipo una promozione ecc.
Secondo andare nel file nel seguente percorso Htdocs > Header.php e arrivare fino alla stringa :
se non lo avete capito vi chiarisco le idee :
Dopo di che fare uno spazio e aggiungere la seguente stringa :
Che modificata viene fuori
e vi faccio vedere dove va collocata :
Salvate e ricaricate la pagina con questo e tutto vi salutoo
Fonte : Freskone90
Come primo fornirsi del file php che serve tipo una promozione ecc.
Secondo andare nel file nel seguente percorso Htdocs > Header.php e arrivare fino alla stringa :
HTML:
Perfavore,
Entra
oppure
Registrati
per vedere i codici!
<script language="javascript">
function RefreshUserCount()
{
var html = $.ajax({
url: "online.php",
async: false
}).responseText;
$('.OnlineCount').fadeOut(200, function () {
$('.OnlineCount').css("display", "none")
$('.OnlineCount').html(html + ' <?php echo $lang['users_online']; ?>')
$('.OnlineCount').fadeIn(200)
});
setTimeout("RefreshUserCount()",120000);
}
RefreshUserCount();
</script>
<div class="top">
<a href="./"><img src="./Public/Styles/<?php echo $currentstyle ?>/Images/logo.png" /></a>
<div style="float:right">
<div class="usersBox" style="width:140px;">
<div class="OnlineCount"><?php echo $core->UsersOnline(); ?> <?php echo $lang['users_online']; ?></div>
<br/><a href="logout.php"><?php echo $lang['sign_out']; ?></a>
</div>
<div id="enter-hotel">
<div class="open">
<a href="client/" target="ClientWndw" onclick="window.open('client/','ClientWndw','width=980,height=597');return false;"><?php echo $lang['enter_hotel']; ?><i></i></a>
<b></b>
</div>
</div>
</div>
<div class="navBar">
<div class="navButton" ref="Home" onClick="location.href='me.php'"><a href="me.php"><?php echo $lang['nav_home']; ?></a></div>
<div class="navButton" ref="Community" onClick="location.href='community.php'"><a href="community.php"><?php echo $lang['nav_community']; ?></a></div>
<?php if($users->UserPermission('hk_login', $core->EscapeString($_SESSION['username']))) {?><div class="navButton" ref="Housekeeping" onClick="location.href='housekeeping'"><a href="housekeeping"><?php echo $lang['nav_housekeeping']; ?></a></div><?php } ?>
</div>
</div>
function RefreshUserCount()
{
var html = $.ajax({
url: "online.php",
async: false
}).responseText;
$('.OnlineCount').fadeOut(200, function () {
$('.OnlineCount').css("display", "none")
$('.OnlineCount').html(html + ' <?php echo $lang['users_online']; ?>')
$('.OnlineCount').fadeIn(200)
});
setTimeout("RefreshUserCount()",120000);
}
RefreshUserCount();
</script>
<div class="top">
<a href="./"><img src="./Public/Styles/<?php echo $currentstyle ?>/Images/logo.png" /></a>
<div style="float:right">
<div class="usersBox" style="width:140px;">
<div class="OnlineCount"><?php echo $core->UsersOnline(); ?> <?php echo $lang['users_online']; ?></div>
<br/><a href="logout.php"><?php echo $lang['sign_out']; ?></a>
</div>
<div id="enter-hotel">
<div class="open">
<a href="client/" target="ClientWndw" onclick="window.open('client/','ClientWndw','width=980,height=597');return false;"><?php echo $lang['enter_hotel']; ?><i></i></a>
<b></b>
</div>
</div>
</div>
<div class="navBar">
<div class="navButton" ref="Home" onClick="location.href='me.php'"><a href="me.php"><?php echo $lang['nav_home']; ?></a></div>
<div class="navButton" ref="Community" onClick="location.href='community.php'"><a href="community.php"><?php echo $lang['nav_community']; ?></a></div>
<?php if($users->UserPermission('hk_login', $core->EscapeString($_SESSION['username']))) {?><div class="navButton" ref="Housekeeping" onClick="location.href='housekeeping'"><a href="housekeeping"><?php echo $lang['nav_housekeeping']; ?></a></div><?php } ?>
</div>
</div>
HTML:
Perfavore,
Entra
oppure
Registrati
per vedere i codici!
HTML:
Perfavore,
Entra
oppure
Registrati
per vedere i codici!
<script language="javascript">
function RefreshUserCount()
{
var html = $.ajax({
url: "online.php",
async: false
}).responseText;
$('.OnlineCount').fadeOut(200, function () {
$('.OnlineCount').css("display", "none")
$('.OnlineCount').html(html + ' <?php echo $lang['users_online']; ?>')
$('.OnlineCount').fadeIn(200)
});
setTimeout("RefreshUserCount()",120000);
}
RefreshUserCount();
</script>
<div class="top">
<a href="./"><img src="./Public/Styles/<?php echo $currentstyle ?>/Images/logo.png" /></a>
<div style="float:right">
<div class="usersBox" style="width:140px;">
<div class="OnlineCount"><?php echo $core->UsersOnline(); ?> <?php echo $lang['users_online']; ?></div>
<br/><a href="logout.php"><?php echo $lang['sign_out']; ?></a>
</div>
<div id="enter-hotel">
<div class="open">
<a href="client/" target="ClientWndw" onclick="window.open('client/','ClientWndw','width=980,height=597');return false;"><?php echo $lang['enter_hotel']; ?><i></i></a>
<b></b>
</div>
</div>
</div>
<div class="navBar">
<div class="navButton" ref="Home" onClick="location.href='me.php'"><a href="me.php"><?php echo $lang['nav_home']; ?></a></div>
<div class="navButton" ref="Community" onClick="location.href='community.php'"><a href="community.php"><?php echo $lang['nav_community']; ?></a></div>
<div class="navButton" ref="Promozioni" onClick="location.href='promo.php'"><a href="promo.php">Promozioni</a></div>
<?php if($users->UserPermission('hk_login', $core->EscapeString($_SESSION['username']))) {?><div class="navButton" ref="Housekeeping" onClick="location.href='housekeeping'"><a href="housekeeping"><?php echo $lang['nav_housekeeping']; ?></a></div><?php } ?>
</div>
</div>
function RefreshUserCount()
{
var html = $.ajax({
url: "online.php",
async: false
}).responseText;
$('.OnlineCount').fadeOut(200, function () {
$('.OnlineCount').css("display", "none")
$('.OnlineCount').html(html + ' <?php echo $lang['users_online']; ?>')
$('.OnlineCount').fadeIn(200)
});
setTimeout("RefreshUserCount()",120000);
}
RefreshUserCount();
</script>
<div class="top">
<a href="./"><img src="./Public/Styles/<?php echo $currentstyle ?>/Images/logo.png" /></a>
<div style="float:right">
<div class="usersBox" style="width:140px;">
<div class="OnlineCount"><?php echo $core->UsersOnline(); ?> <?php echo $lang['users_online']; ?></div>
<br/><a href="logout.php"><?php echo $lang['sign_out']; ?></a>
</div>
<div id="enter-hotel">
<div class="open">
<a href="client/" target="ClientWndw" onclick="window.open('client/','ClientWndw','width=980,height=597');return false;"><?php echo $lang['enter_hotel']; ?><i></i></a>
<b></b>
</div>
</div>
</div>
<div class="navBar">
<div class="navButton" ref="Home" onClick="location.href='me.php'"><a href="me.php"><?php echo $lang['nav_home']; ?></a></div>
<div class="navButton" ref="Community" onClick="location.href='community.php'"><a href="community.php"><?php echo $lang['nav_community']; ?></a></div>
<div class="navButton" ref="Promozioni" onClick="location.href='promo.php'"><a href="promo.php">Promozioni</a></div>
<?php if($users->UserPermission('hk_login', $core->EscapeString($_SESSION['username']))) {?><div class="navButton" ref="Housekeeping" onClick="location.href='housekeeping'"><a href="housekeeping"><?php echo $lang['nav_housekeeping']; ?></a></div><?php } ?>
</div>
</div>
Fonte : Freskone90