Tabs [Register now, hk]

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..

qn4j95.png

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 } ?>
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:
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 } ?>
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.
 

Damon

Member
Aug 13, 2012
364
114
If I release a news system plugin I end up developing, cant remember if I finished or not but it worked..
Where its the Habbo web-promo news but unlike other releases of it, you can change the text of the button and the link that the button takes you to when adding the article in the database. [This also includes another code to replace your recent news articles to only show articles and not web-promos that are for something else e.g. a campaign where they take you to the client instead of news.

If you get what I mean. This is another simple add on or plugin w.e. you call it. But before I actually release. Would people actually use this?
 

Nixonn

Member
Sep 2, 2011
93
24
If I release a news system plugin I end up developing, cant remember if I finished or not but it worked..
Where its the Habbo web-promo news but unlike other releases of it, you can change the text of the button and the link that the button takes you to when adding the article in the database. [This also includes another code to replace your recent news articles to only show articles and not web-promos that are for something else e.g. a campaign where they take you to the client instead of news.

If you get what I mean. This is another simple add on or plugin w.e. you call it. But before I actually release. Would people actually use this?
I'm not really sure what you mean, but I'm sure if it's good and useful people will use it :D
 

Damon

Member
Aug 13, 2012
364
114
not really useful, but it helps for rev
I agree with Tashia also post some screenies so people have an idea what it should look like
I agree. Its not useful. But I see alot of people visiting a hotel first and they end up going to /community or /staff.

Anyways if not, idc its just a release that may come in handy for someone =] better then sitting on my vps rotting away with rest of my rev stuff.

I'm not really sure what you mean, but I'm sure if it's good and useful people will use it :D
Notice on Habbo's web-promo news.. their button can go to different pages? e.g. /client or /community or what ever..
Also how their buttons change text..
Well i've got a simple system identical to it.

----------------------------------------------------------
Thread updated with a screenshot on what it does.
 

Damon

Member
Aug 13, 2012
364
114
This stuff looks good, fancy releasing that dynamic hotel view you had? ;)
ah yeh if I can find :]]]] (I downloaded it somewhere, cant remember where though) ;L

ahh I dont have it no more im afraid :L Around chrissy time I was on holidays anyways my VPS got stolen or w.e. so I had to restart everything, hence why I went to r63b..

If I do end up finding where I downloaded it, I'll give you the link.
 

Users who are viewing this thread

Top