Damon
Member
- Aug 13, 2012
- 364
- 114
I thought to release this, because I no longer use Rev.
I've got a few extra plugins and what ever and I might release some other time.
If you can call this a plugin then alright.
What is this?
Have you ever visited your hotel thats using rev, with out logging in? [E.g. going to /community]?
Well you would notice in the first tab you would see {USERNAME} and if you have a house keeping, you would see {hk} somewhere. Well with these you can fix this up..
1st. Change {username} tab into green Register Now! tab if not logged in:
Replace:
<li class="selected"><strong>{username}</strong><span></span></li>
with:
This should work. As far as I know there is no exploits in it. But if you do find one in this please tell me.
[remember to do this to mostly all pages... but not me.php!!!!]
2nd. Hide {hk} if not logged in
Replace:
{hk}
with:
this one should now hide {hk} if not signed in..
As I said it may not be advanced or there may be some exploits in it, what ever. It may be useful to some people.
I've got a few extra plugins and what ever and I might release some other time.
If you can call this a plugin then alright.
What is this?
Have you ever visited your hotel thats using rev, with out logging in? [E.g. going to /community]?
Well you would notice in the first tab you would see {USERNAME} and if you have a house keeping, you would see {hk} somewhere. Well with these you can fix this up..
1st. Change {username} tab into green Register Now! tab if not logged in:
Replace:
<li class="selected"><strong>{username}</strong><span></span></li>
with:
Code:
<?php if(!isset($_SESSION['user']['id'])){ ?>
<li id="tab-register-now" class="tab-register-now"><a href="{url}/quickregister">Register Now!</a><span></span></li>
<?php } else { ?>
<li><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/Habbo/images/id.png" style="vertical-align: middle;"></a>
</a><span></span></li>
<?php } ?>
[remember to do this to mostly all pages... but not me.php!!!!]
2nd. Hide {hk} if not logged in
Replace:
{hk}
with:
Code:
<?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 7)
{ ?>
<li id="tab-register-now"><a style="color:#fff;" href="ase/">Housekeeping</a><span></span></li>
<?php } ?>
As I said it may not be advanced or there may be some exploits in it, what ever. It may be useful to some people.