Thread obsoleto Come faccio a mettere HK ai moderatori?

killerone1

Utente Medio
Autore del topic
8 Febbraio 2010
249
0
Miglior risposta
0
Ciao a tutti mi potete dire come faccio a mettere HouseKeeping ai mod del mio retro?
 
Riferimento: Come faccio a mettere HK ai moderatori?

Praticamente devi impostare il bottone al rank 5 o 4. Se posti la parte del cms in cui si trova il bottone, postala cosi lo modifico e dimmi anche il rank dei mod.
 
Riferimento: Come faccio a mettere HK ai moderatori?

Praticamente devi impostare il bottone al rank 5 o 4. Se posti la parte del cms in cui si trova il bottone, postala cosi lo modifico e dimmi anche il rank dei mod.

Non ti ho capito molto bene... cosa ti devo postare?
 
Riferimento: Come faccio a mettere HK ai moderatori?

Non ti ho capito molto bene... cosa ti devo postare?

Il bottone per accedere all'housekeeping è presente nell'header.php o in ogni pagina del cms tipo community, me, staff, ecc..?

Tu devi postarmi il file.php nel quale è presente il bottone per accedere all'housekeeping.
 
Riferimento: Come faccio a mettere HK ai moderatori?

Il bottone per accedere all'housekeeping è presente nell'header.php o in ogni pagina del cms tipo community, me, staff, ecc..?

Tu devi postarmi il file.php nel quale è presente il bottone per accedere all'housekeeping.

<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

if($hkzone !== true){ header("Location: index.php?throwBack=true"); exit; }

if($user_rank > 6){
$strRank = "Amministratore";
} elseif($user_rank > 5){
$strRank = "Moderatore";
} else {
$strRank = "Faggot"; // no wai!
}

$lyrics = "";

$lyrics = explode("\n", $lyrics); // put diffrent lines in array and..
$chosen = $lyrics[ mt_rand(0, count($lyrics) - 1) ]; // ..pick a random one.

?>
<body>
<div id='loading-layer' style='display:none'>
<div id='loading-layer-shadow'>
<div id='loading-layer-inner' >
<img src='./images/loading_anim.gif' style='vertical-align:middle' border='0' alt='Loading...' /><br />
<span style='font-weight:bold' id='loading-layer-text'>Caricamento...</span>
</div>
</div>
</div>
<div id='ipdwrapper'><!-- IPDWRAPPER -->
<!-- TOP TABS -->
<div class='tabwrap-main'>
<div class='tab<?php if($tab == 1){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/dashboard.png' style='vertical-align:middle' /> <a href='index.php?p=dashboard'>Benvenuto</a></div>

<div class='tab<?php if($tab == 5){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/admin.png' style='vertical-align:middle' /> <a href='index.php?p=users'>Utenti & Moderazione</a></div>
<div class='tab<?php if($tab == 3){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/tools.png' style='vertical-align:middle' /> <a href='index.php?p=maintenance'>Sito & Contenuti</a></div>
<div class='tab<?php if($tab == 6){ echo "on"; } else { echo "off"; } ?>-main'><img src='images/help.png' style='vertical-align:middle' /> <a href='index.php?p=help'> FAQ</a></div>


<div class='logoright'><br /><font size='2' color='black'><?php echo $chosen; ?></font>&nbsp;&nbsp;&nbsp;</div>
</div>
<!-- / TOP TABS -->

<div class='sub-tab-strip'>
<div class='global-memberbar'>
Benvenuto <strong><?php echo $strRank . " " . $admin_username; ?></strong> [
<a href='../index.php' target='_blank'>Home sito</a> &middot;
<a href='index.php?p=logout'>Esci</a>
]
</div>
<div class='navwrap'><a href='index.php?p=dashboard'>HoloCMS: Housekeeping !</a></div>
</div>
<div class='outerdiv' id='global-outerdiv'><!-- OUTERDIV -->
Ecco questo è header.php il rank del mod è n° 5
 
Riferimento: Come faccio a mettere HK ai moderatori?

Il bottone per accedere all'housekeeping è presente nell'header.php o in ogni pagina del cms tipo community, me, staff, ecc..?

Tu devi postarmi il file.php nel quale è presente il bottone per accedere all'housekeeping.

Ma non ci ho capito niente, ma che dici? Bastava dire postami l'header.php che si trova in templates/community/header.php @killerone1
Codice:
Perfavore, Entra oppure Registrati per vedere i codici!
@killerone1 Ci voleva un genio a mettere il min rank alle prime righe a 3? Boh.
 
Ultima modifica da un moderatore:
Riferimento: Come faccio a mettere HK ai moderatori?

Ma non ci ho capito niente, ma che dici? Bastava dire postami l'header.php che si trova in templates/community/header.php @killerone1
Codice:
Perfavore, Entra oppure Registrati per vedere i codici!
@killerone1 Ci voleva un genio a mettere il min rank alle prime righe a 3? Boh.

Ma io l'ho preso da Housekeeping--->Header
 
Riferimento: Come faccio a mettere HK ai moderatori?

Posta quello del templates/community/header.php :facepalm:

?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

if (!defined("IN_HOLOCMS")) { header("Location: index.php"); exit; }

if(empty($body_id)){
$body_id = "home";
}

?>
<body id="<?php echo $body_id; ?>" class="<?php if(!$logged_in){ echo "anonymous"; } ?> ">
<div id="overlay"></div>




<div id="header-container">
<div id="header" class="clearfix">
<h1><a href="index.php"></a></h1>
<div id="subnavi">
<div id="subnavi-user">
<?php if($logged_in){ ?>
<ul>
<li id="myfriends"><a href="#"><span>I miei Amici</span></a><span class="r"></span></li>
<li id="mygroups"><a href="#"><span>I miei Gruppi</span></a><span class="r"></span></li>
<li id="myrooms"><a href="#"><span>Le mie Stanze</span></a><span class="r"></span></li>
</ul>



<?php } elseif(!$logged_in){ ?>
<div class="clearfix">&nbsp;</div>
<p>
<a href="reauthenticate.php" id="enter-hotel-open-medium-link" target="client" onclick="openOrFocusHabbo(this); return false;">Entra in <?php echo $sitename; ?></a>
</p>
<?php } ?>
<?php if($online == "online" && $logged_in){ ?>
<a href="client.php" id="enter-hotel-open-medium-link" target="client" onclick="openOrFocusHabbo('client.php'); return false;">Entra in <?php echo $sitename; ?></a>
<?php } elseif($logged_in){ ?>
<div id="hotel-closed-medium"><?php echo $sitename; ?> è offline</div>
<?php } ?>
</div>
<?php if(!$logged_in){ ?>
<div id="subnavi-login">
<form action="index.php?anonymousLogin" method="post" id="login-form">
<input type="hidden" name="page" value="<?php echo $pageid; ?>" />
<ul>
<li>
<label for="login-username" class="login-text"><b>Username</b></label>
<input tabindex="1" type="text" class="login-field" name="username" id="login-username" />
<a href="#" id="login-submit-new-button" class="new-button" style="float: left; display:none"><b>Entra</b><i></i></a>
<input type="submit" id="login-submit-button" value="Entra" class="submit"/>
</li>
<li>
<label for="login-password" class="login-text"><b>Password</b></label>
<input tabindex="2" type="password" class="login-field" name="password" id="login-password" />
<input tabindex="3" type="checkbox" name="_login_remember_me" value="true" id="login-remember-me" />
<label for="login-remember-me" class="left">Ricorda i miei dati</label>
</li>
</ul>
</form>
<div id="subnavi-login-help" class="clearfix">
<ul>
<li class="register"><a href="forgot.php" id="forgot-password"><span>Ho dimenticato Username/password</span></a></li>
<li><a href="register.php"><span>Registrati, e' gratis!</span></a></li>
</ul>
</div>
<div id="remember-me-notification" class="bottom-bubble" style="display:none;">
<div class="bottom-bubble-t"><div></div></div>
<div class="bottom-bubble-c">
Cliccando qui, deciderai di restare connesso finch&egrave non cliccherai su 'Esci'
</div>
<div class="bottom-bubble-b"><div></div></div>
</div>
</div>
</div>
<script type="text/javascript">
LoginFormUI.init();
RememberMeUI.init("right");
</script>
<?php } else { ?>
<div id="subnavi-search">
<div id="subnavi-search-upper">
<ul id="subnavi-search-links">
<li><a href="pixel.php" class="userlink""><b><i></i></b></b></a></li>
<li><a href="statistiche.php" class="userlink"><font color="#42b1c5">Statistiche</font></a>
<li><a href="iot/go.php" class="userlink"><font color="#42b1c5">Aiuto</font></a></li>
<li><a href="logout.php?reason=site" class="userlink">Esci</a></li>
</ul>
</div>
<form name="tag_search_form" action="user_profile.php" class="search-box clearfix">
<a id="search-button" class="new-button search-icon" href="#" onclick="$('search-button').up('form').submit(); return false;"><b><span></span></b><i></i></a>
<input type="text" name="tag" id="search_query" value="Profilo Utente" class="search-box-query search-box-onfocus" style="float: right"/>
</form>
<script type="text/javascript">SearchBoxHelper.init();</script>
</div>
</div>
<script type="text/javascript">
L10N.put("purchase.group.title", "Crea un gruppo");
</script>
<?php } ?>
<ul id="navi">
<?php if($pageid > 0 && $pageid < 4 || $pageid == "myprofile" && $logged_in == true){ ?>
<li class="selected"><strong><?php echo $name; ?></strong><span></span></li>
<?php } elseif($logged_in == true){ ?>
<li class=" "><a href="index.php"><?php echo $name; ?></a><span></span></li>
<?php } elseif($logged_in !== true){ ?>
<li id="tab-register-now"><a href="register.php" target="_self">Registrati!</a><span></span></li>
<?php } ?>

<?php if($pageid == 4 || $pageid > 3 && $pageid < 6 || $pageid == "profile" || $pageid == "com" || $pageid == "8" || $pageid == "staffapp" || $pageid == "802" || $pageid == "rare" || $pageid == "801" || $pageid == "forum"){ ?>
<li class="selected"><strong>Community</strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="community.php">Community</a><span></span></li>
<?php } ?>
















<?php if($pageid == 90 || $pageid > 91 && $pageid < 92){ ?>
<li class="selected"><strong>SwiSS Tv</strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="credits.php"> Tv</a><span></span></li>
<?php } ?>

<?php if($pageid == 567 || $pageid > 546 && $pageid < 845){ ?>
<li class="selected"><strong>Chatt</strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="chatt.php">SwiSS Chatt</a><span></span></li>
<?php } ?>

<?php if($pageid == 222 || $pageid > 333 && $pageid < 22){ ?>
<li class="selected"><strong>SwiSS Su Facebook</strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="/rarevalue.php">SwiSS Su Facebook</a><span></span></li>
<?php } ?>


<?php if($pageid == 333 || $pageid > 444 && $pageid < 55){ ?>
<li class="selected"><strong>Promozioni </strong><span></span></li>
<?php } else { ?>
<li class=" "><a href="/promo.php">Promozioni</a><span></span></li>
<?php } ?>


<?php if($user_rank > 5 && $logged_in == true){ ?>
<li id="tab-register-now">
<a href="./housekeeping/" target="_self"><b>Amministrazione</b></a><span></span>
<?php } ?>
</ul>

<div id="habbos-online"><div class="rounded"><span><b><?php echo $online_count; ?> Utenti Online</b></span></div></div>
</div>
</div>

<div id="content-container">

<div id="navi2-container" class="pngbg">
<div id="navi2" class="pngbg clearfix">

<ul>
<?php if($pageid > 0 && $pageid < 4 || $pageid == "myprofile"){ ?>
<?php if($pageid == "1"){ ?>
<li class="selected">
Homepage
<?php } else { ?>
<li class="">
<a href="index.php">Homepage</a>
<?php } ?>
</li>

<?php if($pageid == "myprofile"){ ?>
<li class="selected">
La mia Pagina
<?php } else { ?>
<li class="">
<a href="user_profile.php?name=<?php echo $rawname; ?>">La mia pagina</a>
<?php } ?>
</li>

<?php if($pageid == "2" && $logged_in){ ?>
<li class="selected">
Impostazioni Account
<?php } elseif($logged_in){ ?>
<li class="">
<a href="account.php">Impostazioni Account</a>
<?php } ?>

<li class="last">
<a href="club.php"><?php echo "$shortname" ?> Club</a>

<li>
<li class="last"> <a href="Shop_badge.php"><li>Badge Shop</a>
<?php } else if($pageid == 4 || $pageid > 3 && $pageid < 6 || $pageid == "staffapp" || $pageid == "profile" || $pageid == "802" || $pageid == "com" || $pageid == "8" || $pageid == "forum" || $pageid == "rare" || $pageid == "801"){ ?>
<?php if($pageid == "com"){ ?>
<li class="selected">
Community
<?php } else { ?>
<li class=" ">
<a href="community.php">Community</a>

<?php } ?>
<?php if($pageid == "4"){ ?>
<li class="selected">
News
<?php } else { ?>
<li class=" ">
<a href="news.php">News</a>
<?php } ?>

<?php if($pageid == "9"){ ?>
<li class="selected">
Staff
<?php } else { ?>
<li class=" ">
<a href="staff.php">Lista Staff</a>
<?php } ?>


<?php if($pageid == "forum"){ ?>
<li class="selected">
Forum
<?php } else { ?>
<li class=" ">
<a href="forum.php">Forum</a>

<?php } ?>
<?php if($pageid == "5"){ ?>
<li class="selected last">
Tags
<?php } else { ?>
<li class=" last">
<a href="sbugga.php">Arbitri</a>
<?php } ?>
<li class=" ">
<a href="curriculum.php">Curriculum</a>

<?php } else if($pageid == "6" || $pageid == "col1" || $pageid > 5 && $pageid < 8 || $pageid == "6b"){ ?>
<?php if($pageid == "6"){ ?>

<li class="selected ">
Crediti
<?php } else { ?>
<li class=" ">
<a href="credits.php">Crediti</a>
<?php } ?>
<?php if($pageid == "7"){ ?>
<li class="selected last">
<?php echo "$shortname" ?> Club
<?php } else { ?>
<li class=" last">
<a href="club.php"><?php echo "$shortname" ?> Club</a>
<?php } ?>
<?php if($pageid == "8"){ ?>

<?php } ?>

<?php } ?>
</li>
</ul>


</div>
</div>

<?php if($notify_maintenance){ ?>
<div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px; width: 75%"><b>Alert:</b> Il sito e' momentaneamente chiuso!</div>
<?php } ?>

Eccolo
 
Riferimento: Come faccio a mettere HK ai moderatori?

Codice:
Perfavore, Entra oppure Registrati per vedere i codici!
Inserisci questo e postami pure il file index.php che si trova in housekeeping/index.php
 
Riferimento: Come faccio a mettere HK ai moderatori?

Codice:
Perfavore, Entra oppure Registrati per vedere i codici!
Inserisci questo e postami pure il file index.php che si trova in housekeeping/index.php


<?php
/*===================================================+
|| # HoloCMS - Website and Content Management System
|+===================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
Perfavore, Entra oppure Registrati per vedere i Link!

|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+===================================================*/

$is_maintenance = true; // Tell the core to buzz off with it's maintenance

@include('../config.php');
@include('./config.php');

require_once('../core.php');

session_start();

$hkzone = true;
$p = $_GET['p'];
$do = $_GET['do'];
$key = $_GET['key'];

$starttime = explode(' ', microtime());
$starttime = $starttime[1] + $starttime[0];

if(session_is_registered(acp)){

$session = $_SESSION['acp'];
$admin_username = $_SESSION['hkusername'];
$admin_password = $_SESSION['hkpassword'];

$check = mysql_query("SELECT id,rank FROM users WHERE username = '" . $admin_username . "' AND password = '" . $admin_password . "' AND rank > 5 LIMIT 1") or die(mysql_error());
$valid = mysql_num_rows($check);

if($valid > 0){

$tmp = mysql_fetch_assoc($check);
$user_rank = $tmp['rank'];

if($user_rank < 6){ exit; } // something went horribly wrong here

if($p == "content" || $p == "server" || $p == "badgetool" || $p == "recycler" || $p == "wordfilter" || $p == "welcomemsg" || $p == "maintenance" || $p == "loader" || $p == "news_manage" || $p == "news_compose" || $p == "ranktool" || $p == "site" || $p == "logs" || $p == "edituser"){
if($user_rank < 6){
$p = "access_denied";
}
}

if($p == "logout"){
session_destroy();
$notify_logout = true;
include('login.php');
} elseif($p == "recommendedm"){
$tab = 1;
include('recommendedm.php');
} elseif($p == "recommendede"){
$tab = 1;
include('recommendede.php');
} elseif($p == "dashboard"){
$tab = 1;
include('dashboard.php');
} elseif($p == "server"){
$tab = 2;
include('server.php');
} elseif($p == "massa_stuff"){
$tab = 5;
include('massa.php');
} elseif($p == "recycler"){
$tab = 2;
include('recycler.php');
} elseif($p == "wordfilter"){
$tab = 2;
include('wordfilter.php');
} elseif($p == "welcomemsg"){
$tab = 2;
include('welcomemsg.php');
} elseif($p == "holocms"){
$tab = 4;
include('holocms.php');
} elseif($p == "help"){
$tab = 6;
include('help_main.php');
} elseif($p == "help_bugs"){
$tab = 6;
include('help_bugs.php');
} elseif($p == "help_svn"){
$tab = 6;
include('help_svn.php');
} elseif($p == "site"){
$tab = 3;
include('cms_config.php');
} elseif($p == "maintenance"){
$tab = 3;
include('maintenance.php');
} elseif($p == "loader"){
$tab = 3;
include('loader.php');
} elseif($p == "editor_guestroom"){
$tab = 5;
include('guestrooms.php');
} elseif($p == "editguestroom"){
$tab = 5;
include('edit_guestroom.php');
} elseif($p == "editor_publicrooms"){
$tab = 5;
include('publicrooms.php');
} elseif($p == "editpublicroom"){
$tab = 5;
include('edit_publicroom.php');
} elseif($p == "application_edit"){
$tab = 5;
include('appforms.php');
} elseif($p == "news_compose"){
$tab = 3;
include('news_compose.php');
} elseif($p == "collectables_edit"){
$tab = 3;
include('edit_collectables.php');
} elseif($p == "news_manage"){
$tab = 3;
include('news_manage.php');
} elseif($p == "users"){
$tab = 5;
include('users.php');
} elseif($p == "ip"){
$tab = 5;
include('ip.php');
} elseif($p == "clonechecker"){
$tab = 5;
include('cloner.php');
} elseif($p == "transactions"){
$tab = 5;
include('transactions.php');
} elseif($p == "collectables"){
$tab = 3;
include('collectables.php');
} elseif($p == "faq"){
$tab = 3;
include('faq.php');
} elseif($p == "newsletter"){
$tab = 3;
include('newsletter.php');
} elseif($p == "vouchers"){
$tab = 5;
include('vouchers.php');
} elseif($p == "givecredits"){
$tab = 5;
include('givecredits.php');
} elseif($p == "helper"){
$tab = 5;
include('helper.php');
} elseif($p == "ranktool"){
$tab = 5;
include('ranktool.php');
} elseif($p == "badgetool"){
$tab = 5;
include('badgetool.php');
} elseif($p == "logs"){
$tab = 5;
include('logs.php');
} elseif($p == "credits"){
$tab = 4;
include('credits.php');
} elseif($p == "banners"){
$tab = 4;
include('banners.php');
} elseif($p == "ban"){
$tab = 5;
include('bantool.php');
} elseif($p == "uid"){
$tab = 5;
include('uid.php');
} elseif($p == "access_denied"){
$tab = 0;
include('access_denied.php');
} elseif($p == "content"){
$tab = 3;
include('content_tool.php');
} elseif($p == "add_homes"){
$tab = 3;
include('add_homes_stuff.php');
} elseif($p == "banlist"){
$tab = 5;
include('banlist.php');
} elseif($p == "unban"){
$tab = 5;
include('unbantool.php');
} elseif($p == "alert"){
$tab = 5;
include('alert.php');
} elseif($p == "massalert"){
$tab = 5;
include('massalert.php');
} elseif($p == "alertlist"){
$tab = 5;
include('alertlist.php');
} elseif($p == "massmail"){
$tab = 5;
include('massmail.php');
} elseif($p == "minimail"){
$tab = 5;
include('minimail.php');
} elseif($p == "onlinelist"){
$tab = 5;
include('onlinelist.php');
} elseif($p == "chatlogs"){
$tab = 5;
include('chatlogs.php');
} elseif($p == "dboptimize"){
if($sysadmin == $my_id){
$tab = 3;
include('dboptimize.php');
} else {
$tab = 0;
include('access_denied.php');
}
} elseif($p == "dbrepair"){
if($sysadmin == $my_id){
$tab = 3;
include('dbrepair.php');
} else {
$tab = 0;
include('access_denied.php');
}
} elseif($p == "dbquery"){
if($sysadmin == $my_id){
$tab = 3;
include('dbquery.php');
} else {
$tab = 0;
include('access_denied.php');
}
} elseif($p == "edituser"){
$tab = 5;
$userid = $_GET['key'];
include('edituser.php');
} else {
$tab = 0;
header("Location: index.php?p=dashboard");
exit;
}

} else {

session_destroy();
header("Location: index.php");
exit;

}

} else {
include('login.php');
}

include('footer.php');
exit;

?>

Ecco questo è l'index... AI mod non va ancora però