I haven't got habbo.settings table.(settings)
settings replace to server_settings??
I haven't got habbo.settings table.(settings)
settings replace to server_settings??
There is a method to do it with the db?
try it:
delete
$_CONFIG['hotel']['in_maint'] =false;
write
- - - Updated - - -Code:$maintenance_q=mysql_query("SELECT * FROM maintenance"); while($row_m=mysql_fetch_assoc($maintenance_q)) { $_CONFIG['hotel']['in_maint'] = $row_m['maintenance']; }
and create table maintenance
maintenance varchar(5)
id int(1) index:primary
and insert into maintenance true
Last edited by selimrecep; 15-02-15 at 09:57 AM.
http://prntscr.com/65c8ey Right?
It doesn't work :c
hmm wait please
- - - Updated - - -
go config.php
$_CONFIG['hotel']['in_maint'] = true;
to
$_CONFIG['hotel']['in_maint'] = false;
and go extra/head/head.php
add line 1:
PHP Code:$connect_m=mysql_connect("hostname","root","password");
mysql_select_db("habbo",$connect_m);
$sql_m=mysql_query("SELECT maintenance FROM maintenance LIMIT 1",$connect_m);
while($row_m=mysql_fetch_assoc($sql_m))
{
$if_maintenance=$row_m['maintenance'];
}
if($if_maintenance==="true" && $_GET['url']!="maintenance")
{
header('Location: '.$_CONFIG['hotel']['url'].'/maintenance');
exit();
}
Last edited by selimrecep; 15-02-15 at 01:17 PM. Reason: parse error
http://prntscr.com/65d76j Nope bro :c
So, i was translating the register, and if i click "exit" on the register it doesn't redirect me to the index.
PHP Code:<input type="submit" value="Registrati" name="register">
<a href="/index.php"><input type="submit" value="Esci" name="exit"></a>
</form></form>
ops :D
please write after <?php code
- - - Updated - - -
<a href="/index.php"><input type="submit" value="Esci" name="exit"></a>
replace to
<a href="/index.php"><input type="exit" value="Esci" name="exit"></a>
and go to styles/register.css
add:
input[type="exit"]{
background-color: #2A9CDE ;
border-color: #53BDF9 ;
}
input[type="exit"] {
-webkit-border-radius: 6px;
border-radius: 6px;
margin-left:5px;
cursor: pointer;
}
input[type="exit"]{
font-size: .875em;
-webkit-border-radius: 5px;
border-radius: 5px;
border-width: 2px;
border-style: solid;
padding: 8px 36px;
-webkit-box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
box-shadow: 0 3px 0 1px rgba(0,0,0,.3);
color: #FFF ;
line-height: 1;
text-align: center;
transition:all ease .2s;
text-transform: uppercase;
white-space: nowrap;
}
input[type="exit"]:hover , input[type="exit"]:focus {
-webkit-box-shadow: 0 1px 0 2px rgba(0,0,0,.3);
box-shadow: 0 1px 0 2px rgba(0,0,0,.3);
transition:all ease .2s;
}
- - - Updated - - -
head.php(replace all page):
<?php
$connect_m=mysql_connect("hostname","root","password");
mysql_select_db("habbo",$connect_m);
$sql_m=mysql_query("SELECT maintenance FROM maintenance LIMIT 1",$connect_m);
while($row_m=mysql_fetch_assoc($sql_m))
{
$if_maintenance=$row_m['maintenance'];
}
if($if_maintenance==="true" && $_GET['url']!="maintenance")
{
header('Location: '.$_CONFIG['hotel']['url'].'/maintenance');
exit();
}
if(!isset($_SESSION['user']['username'])){
header('Location: index');
exit();
}
$rankLimit = "5";
$deleted = '<div id="sucess-message">All your messages are cleared</div>'; //Message confirmation for truncating entries table.
?>
Last edited by selimrecep; 15-02-15 at 01:35 PM. Reason: .php to replace .css
Did it work?
Oh yes! thanks!
But it works only if u login, but it's ok.
So, is there a method to solve this:
http://prntscr.com/67mjkg ?
If a news is too long, you need to scroll out, I wish it would go down automatically
Is there a reason no images show up when I try using this skin?
add <br> code?
- - - Updated - - -
go to admin/news_create
go line 52
replace
toPHP Code:$longstory = $_POST['longstory'];
PHP Code:$longstory = $_POST['longstory']; $longstory_split=str_split($longstory,76); for($xi=0;$xi<count($longstory_split);$xi++) { $longstory_split[$xi]=$longstory_split[$xi]."<br>"; } $longstory=implode("", $longstory_split);