Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] REVCMS Hot-Rooms
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vRory" data-source="post: 187600" data-attributes="member: 2857"><p>Hello Devbest,</p><p> </p><p>Yes another release this time better <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p> </p><p>This was imported from ubercms and edited a slight</p><p> </p><p>Screenshot:</p><p><img src="http://img7.imageshack.us/img7/747/314b2ae80c7e48cb89566a3.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="http://img59.imageshack.us/img59/9012/6b4f625367534d3094bc64f.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><img src="http://img820.imageshack.us/img820/3105/9e9221461fb4405384ad1c3.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>I haven't tested this out to see if it gets the most popular as phx is down <img src="/styles/default/xenforo/smilies/emojione/frown.png" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" />!</p><p> </p><p><span style="font-size: 18px">HOW TO INSTALL</span></p><p><span style="font-size: 12px"><em>1. Under </em></span><span style="font-size: 10px"><em> <title>{hotelName} - Community</title> ADD THESE LINES</em></span></p><p> </p><p>[PHP]<link rel="stylesheet" href="{url}/web-gallery/styles/rooms.css" type="text/css"></p><p> </p><p><script type="text/javascript" src="{url}/web-gallery/js/rooms.js"></script>[/PHP]</p><p> </p><p>2. LOCATE</p><p>[PHP]<script type="text/javascript"></p><p> var activeHabbosHabblet = new ActiveHabbosHabblet();</p><p> document.observe("dom:loaded", function() { activeHabbosHabblet.generateRandomImages(); });</p><p> </script></p><p> </div></p><p> </div>[/PHP]</p><p> </p><p>3. AFTER THE TWO </DIV> TAGS ADD THIS CODE</p><p>[PHP]<?php</p><p>///////////////////////////////////////////////////////////////////</p><p>// #Converted by vRory from Devbest //</p><p>// # From reflectionhotel.info //</p><p>/////////////////////////////////////////////////////////////////</p><p>$eo = 'even';</p><p> </p><p>function GenerateRoomOccupancy($usersNow, $usersMax)</p><p>{</p><p> $num = 1;</p><p> $percentage = intval(($usersNow / $usersMax) * 100);</p><p> </p><p> if ($percentage <= 0)</p><p> {</p><p> $num = 1;</p><p> }</p><p> else if ($percentage < 35)</p><p> {</p><p> $num = 2;</p><p> }</p><p> else if ($percentage < 75)</p><p> {</p><p> $num = 3;</p><p> }</p><p> else if ($percentage < 100)</p><p> {</p><p> $num = 4;</p><p> }</p><p> else if ($percentage >= 100)</p><p> {</p><p> $num = 5;</p><p> }</p><p> </p><p> return 'room-occupancy-' . $num;</p><p>}</p><p> </p><p>?></p><p><div class="habblet-container "> </p><p><div class="cbb clearfix red "></p><p> </p><p><h2 class="title">Hot Rooms</h2></p><p> </p><p><style type="text/css"></p><p>.room-occupancy-1 { background-image: url('{web-gallery}/images/rooms/room_icon_1.gif') !important; }</p><p>.room-occupancy-2 { background-image: url('{web-gallery}/images/rooms/room_icon_2.gif') !important; }</p><p>.room-occupancy-3 { background-image: url('{web-gallery}/images/rooms/room_icon_3.gif') !important; }</p><p>.room-occupancy-4 { background-image: url('{web-gallery}/images/rooms/room_icon_4.gif') !important; }</p><p>.room-occupancy-5 { background-image: url('{web-gallery}/images/rooms/room_icon_5.gif') !important; }</p><p></style></p><p> </p><p><div id="rooms-habblet-list-container-h124" class="recommendedrooms-lite-habblet-list-container"></p><p><ul class="habblet-list"></p><p> </p><p><?php</p><p> </p><p>$get = mysql_query("SELECT * FROM rooms WHERE roomtype = 'private' ORDER BY users_now DESC LIMIT 5")or die(mysql_error());</p><p> </p><p>while ($room = mysql_fetch_assoc($get))</p><p>{</p><p> if ($eo == 'even')</p><p> {</p><p> $eo = 'odd';</p><p> }</p><p> else</p><p> {</p><p> $eo = 'even';</p><p> }</p><p> </p><p> echo '<li class="' . $eo . '"></p><p> <span class="clearfix enter-room-link ' . GenerateRoomOccupancy($room['users_now'], $room['users_max']) . '" title="Go There" roomid="' . $room['id'] . '"></p><p> <span class="room-enter">Enter room</span></p><p> <span class="room-name">' . ($room['caption']) . '</span></p><p> <span class="room-description">' . ($room['description']) . '</span> </p><p> <span class="room-owner">Owner: <a href="/home/' . ($room['owner']) . '">' . ($room['owner']) . '</a></span></p><p> </span></p><p> </li>';</p><p>}</p><p> </p><p>?></p><p> </p><p><div id="room-more-data-h124" style="display: none"></p><p><ul class="habblet-list room-more-data"></p><p> </p><p><?php</p><p> </p><p>$get = mysql_query("SELECT * FROM rooms WHERE roomtype = 'private' ORDER BY users_now DESC LIMIT 6,10")or die(mysql_error());</p><p> </p><p>while ($room = mysql_fetch_assoc($get))</p><p>{</p><p> if ($eo == 'even')</p><p> {</p><p> $eo = 'odd';</p><p> }</p><p> else</p><p> {</p><p> $eo = 'even';</p><p> }</p><p> </p><p> echo '<li class="' . $eo . '"></p><p> <span class="clearfix enter-room-link ' . GenerateRoomOccupancy($room['users_now'], $room['users_max']) . '" title="Go There" roomid="' . $room['id'] . '"></p><p> <span class="room-enter">Enter room</span> <br></p><p> <span class="room-name">' . ($room['caption']) . '</span> <br></p><p> <span class="room-description">' . ($room['description']) . '</span> </p><p> <span class="room-owner">Owner: <a href="/home/' . ($room['owner']) . '">' . ($room['owner']) . '</a></span></p><p> </span></p><p> </li>';</p><p>}</p><p> </p><p>?></p><p> </p><p></ul></p><p></div></p><p> </p><p><div class="clearfix"></p><p><a href="#" class="room-toggle-more-data" id="room-toggle-more-data-h124">More Rooms!</a></p><p></div></p><p> </p><p></div></p><p> </p><p><script type="text/javascript"></p><p>L10N.put("show.more", "Show more rooms");</p><p>L10N.put("show.less", "Show less rooms");</p><p>var roomListHabblet_h124 = new RoomListHabblet("rooms-habblet-list-container-h124", "room-toggle-more-data-h124", "room-more-data-h124");</p><p></script></p><p> </p><p></div></p><p></div></p><p><script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </p><p> </p><p><br /><br></p><p>[/PHP]</p><p>4. change {web-gallery} to where ever your /styles/ /js/ /images/ are located</p><p> </p><p><span style="font-size: 18px">also check out the quick-menu i released : </span><span style="font-size: 15px"><a href="http://devbest.com/threads/revcms-quickmenu.29174/" target="_blank">http://devbest.com/threads/revcms-quickmenu.29174/</a></span></p><p> </p><p>THEN WALLAA! Your done enjoy!</p></blockquote><p></p>
[QUOTE="vRory, post: 187600, member: 2857"] Hello Devbest, Yes another release this time better :) This was imported from ubercms and edited a slight Screenshot: [IMG]http://img7.imageshack.us/img7/747/314b2ae80c7e48cb89566a3.png[/IMG] [IMG]http://img59.imageshack.us/img59/9012/6b4f625367534d3094bc64f.png[/IMG] [IMG]http://img820.imageshack.us/img820/3105/9e9221461fb4405384ad1c3.png[/IMG] I haven't tested this out to see if it gets the most popular as phx is down :(! [SIZE=5]HOW TO INSTALL[/SIZE] [SIZE=3][I]1. Under [/I][/SIZE][SIZE=2][I] <title>{hotelName} - Community</title> ADD THESE LINES[/I][/SIZE] [PHP]<link rel="stylesheet" href="{url}/web-gallery/styles/rooms.css" type="text/css"> <script type="text/javascript" src="{url}/web-gallery/js/rooms.js"></script>[/PHP] 2. LOCATE [PHP]<script type="text/javascript"> var activeHabbosHabblet = new ActiveHabbosHabblet(); document.observe("dom:loaded", function() { activeHabbosHabblet.generateRandomImages(); }); </script> </div> </div>[/PHP] 3. AFTER THE TWO </DIV> TAGS ADD THIS CODE [PHP]<?php /////////////////////////////////////////////////////////////////// // #Converted by vRory from Devbest // // # From reflectionhotel.info // ///////////////////////////////////////////////////////////////// $eo = 'even'; function GenerateRoomOccupancy($usersNow, $usersMax) { $num = 1; $percentage = intval(($usersNow / $usersMax) * 100); if ($percentage <= 0) { $num = 1; } else if ($percentage < 35) { $num = 2; } else if ($percentage < 75) { $num = 3; } else if ($percentage < 100) { $num = 4; } else if ($percentage >= 100) { $num = 5; } return 'room-occupancy-' . $num; } ?> <div class="habblet-container "> <div class="cbb clearfix red "> <h2 class="title">Hot Rooms</h2> <style type="text/css"> .room-occupancy-1 { background-image: url('{web-gallery}/images/rooms/room_icon_1.gif') !important; } .room-occupancy-2 { background-image: url('{web-gallery}/images/rooms/room_icon_2.gif') !important; } .room-occupancy-3 { background-image: url('{web-gallery}/images/rooms/room_icon_3.gif') !important; } .room-occupancy-4 { background-image: url('{web-gallery}/images/rooms/room_icon_4.gif') !important; } .room-occupancy-5 { background-image: url('{web-gallery}/images/rooms/room_icon_5.gif') !important; } </style> <div id="rooms-habblet-list-container-h124" class="recommendedrooms-lite-habblet-list-container"> <ul class="habblet-list"> <?php $get = mysql_query("SELECT * FROM rooms WHERE roomtype = 'private' ORDER BY users_now DESC LIMIT 5")or die(mysql_error()); while ($room = mysql_fetch_assoc($get)) { if ($eo == 'even') { $eo = 'odd'; } else { $eo = 'even'; } echo '<li class="' . $eo . '"> <span class="clearfix enter-room-link ' . GenerateRoomOccupancy($room['users_now'], $room['users_max']) . '" title="Go There" roomid="' . $room['id'] . '"> <span class="room-enter">Enter room</span> <span class="room-name">' . ($room['caption']) . '</span> <span class="room-description">' . ($room['description']) . '</span> <span class="room-owner">Owner: <a href="/home/' . ($room['owner']) . '">' . ($room['owner']) . '</a></span> </span> </li>'; } ?> <div id="room-more-data-h124" style="display: none"> <ul class="habblet-list room-more-data"> <?php $get = mysql_query("SELECT * FROM rooms WHERE roomtype = 'private' ORDER BY users_now DESC LIMIT 6,10")or die(mysql_error()); while ($room = mysql_fetch_assoc($get)) { if ($eo == 'even') { $eo = 'odd'; } else { $eo = 'even'; } echo '<li class="' . $eo . '"> <span class="clearfix enter-room-link ' . GenerateRoomOccupancy($room['users_now'], $room['users_max']) . '" title="Go There" roomid="' . $room['id'] . '"> <span class="room-enter">Enter room</span> <br> <span class="room-name">' . ($room['caption']) . '</span> <br> <span class="room-description">' . ($room['description']) . '</span> <span class="room-owner">Owner: <a href="/home/' . ($room['owner']) . '">' . ($room['owner']) . '</a></span> </span> </li>'; } ?> </ul> </div> <div class="clearfix"> <a href="#" class="room-toggle-more-data" id="room-toggle-more-data-h124">More Rooms!</a> </div> </div> <script type="text/javascript"> L10N.put("show.more", "Show more rooms"); L10N.put("show.less", "Show less rooms"); var roomListHabblet_h124 = new RoomListHabblet("rooms-habblet-list-container-h124", "room-toggle-more-data-h124", "room-more-data-h124"); </script> </div> </div> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> <br /><br> [/PHP] 4. change {web-gallery} to where ever your /styles/ /js/ /images/ are located [SIZE=5]also check out the quick-menu i released : [/SIZE][SIZE=4][URL]http://devbest.com/threads/revcms-quickmenu.29174/[/URL][/SIZE] THEN WALLAA! Your done enjoy! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] REVCMS Hot-Rooms
Top