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 Tutorials
[RevCMS] How To Add More Configuration Codes To Your Hotel [Tutorial]
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="RyanzRetros" data-source="post: 326908" data-attributes="member: 55855"><p>Hello DevBest,</p><p>People who can code well, or are nerds with RevCMS will most likely know this already but this will help the users who don't know, so if you are here to put hate, don't bother. I like to keep peace, unlike [USER=2776]@malcolmjr414[/USER] <img src="/styles/default/xenforo/smilies/emojione/wink.png" class="smilie" loading="lazy" alt=";)" title="Wink ;)" data-shortname=";)" /></p><p></p><p>Anyway, in this tutorial, I will show you how to add more code, for example {short_name}. May I just say, that while I did not know how to do this before, it was fluke that I found it as I was just removing an exploit from the CMS.</p><p></p><p>To start with, you will need RevCMS. Then go to app\management and open "config.php". Yours should look something like this: <p style="text-align: center"><img src="http://i.imgur.com/bGKfmDT.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>Now I am going to show you how to add the code {hotelnamelong}. I know that this code is long, and you may want to change this but this explains what the code is for. This way, you can then get rid of "{hotelname} hotel" but still be able to keep {hotelname} in case it sounds/fits better, without the hotel. Now find "<strong>$_CONFIG['hotel']['name'] =</strong>" and go to the end of that line. Then press enter twice and paste "<strong>$_CONFIG['hotel']['namelong'] = 'HOTELNAME HOTEL'; // Hotel's name, long.</strong>". It should now look like this: <p style="text-align: center"><img src="http://i.imgur.com/gdLLTJN.png[/center]" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p> <p style="text-align: center">Now, go to the app folder and find class.template.php and look for "<strong>$this->setParams('hotelName', $_CONFIG['hotel']['name']);</strong>". Underneath, paste the code "<strong>$this->setParams('hotelnamelong'), $_CONFIG['hotel']['namelong']);</strong>". Now save both of them and go to a file, and replace {hotelname} hotel with {hotelnamelong}. Then, you have done.</p> <p style="text-align: center"></p> <p style="text-align: center">Other codes which you may want:</p> <p style="text-align: center">{forumurl}: This is used instead of {url} should you wish to point a help link or something to your forum.</p> <p style="text-align: center">config.PHP code: </p> <p style="text-align: center">class.template.PHP code: <strong>$this->setParams('forumurl', $_CONFIG['forum']['url']);</strong></p> <p style="text-align: center">{server_port}: Sometimes, this is already added, sometimes not.</p> <p style="text-align: center">config.PHP code: <strong>$_CONFIG['server']['port'] = '30000'; //Port that your emulator runs on: Usually 30000 unless using a DDoS protected proxy.</strong></p> <p style="text-align: center">class.template.PHP code: <strong>$this->setParams('server_port', $_CONFIG['server']['port']);</strong></p> <p style="text-align: center">{owner1}/{owner2}: Good for the staff page and footer.</p> <p style="text-align: center">config.PHP code: <strong>$_CONFIG['owner']['one'] = 'Hotel Owner 1'; //The founder or highest owner of your hotel.</strong> and <strong>$_CONFIG['owner']['two'] = 'Hotel Owner 2'; //The second owner of your hotel; Leave it blank if you only have one owner.</strong></p> <p style="text-align: center">class.template.PHP code: <strong>$this->setParams('owner1', $_CONFIG['owner']['one']);</strong> and <strong>$this->setParams('owner2', $_CONFIG['owner']['two']);</strong></p> <p style="text-align: center"></p> <p style="text-align: center">If you wish to check, if you have the exploit I was removing, click <a href="https://devbest.com/threads/release-revcms-important-exploit-fix.52399/" target="_blank">here</a> to see how to remove it. Thanks to Sp0tify and Jamal for finding and releasing this exploit and thanks to [USER=35321]@Jerry_[/USER] for releasing on DevBest.</p> <p style="text-align: center">Thanks for reading this and if I have helped, give me a like. If you find this hard to follow, or do not understand this, please reply below and I will help.</p></blockquote><p></p>
[QUOTE="RyanzRetros, post: 326908, member: 55855"] Hello DevBest, People who can code well, or are nerds with RevCMS will most likely know this already but this will help the users who don't know, so if you are here to put hate, don't bother. I like to keep peace, unlike [USER=2776]@malcolmjr414[/USER] ;) Anyway, in this tutorial, I will show you how to add more code, for example {short_name}. May I just say, that while I did not know how to do this before, it was fluke that I found it as I was just removing an exploit from the CMS. To start with, you will need RevCMS. Then go to app\management and open "config.php". Yours should look something like this: [center][img]http://i.imgur.com/bGKfmDT.png[/img][/center] Now I am going to show you how to add the code {hotelnamelong}. I know that this code is long, and you may want to change this but this explains what the code is for. This way, you can then get rid of "{hotelname} hotel" but still be able to keep {hotelname} in case it sounds/fits better, without the hotel. Now find "[b]$_CONFIG['hotel']['name'] =[/b]" and go to the end of that line. Then press enter twice and paste "[b]$_CONFIG['hotel']['namelong'] = 'HOTELNAME HOTEL'; // Hotel's name, long.[/b]". It should now look like this: [center][img]http://i.imgur.com/gdLLTJN.png[/center][/img] Now, go to the app folder and find class.template.php and look for "[b]$this->setParams('hotelName', $_CONFIG['hotel']['name']);[/b]". Underneath, paste the code "[b]$this->setParams('hotelnamelong'), $_CONFIG['hotel']['namelong']);[/b]". Now save both of them and go to a file, and replace {hotelname} hotel with {hotelnamelong}. Then, you have done. Other codes which you may want: {forumurl}: This is used instead of {url} should you wish to point a help link or something to your forum. config.PHP code: [b][/b] class.template.PHP code: [b]$this->setParams('forumurl', $_CONFIG['forum']['url']);[/b] {server_port}: Sometimes, this is already added, sometimes not. config.PHP code: [b]$_CONFIG['server']['port'] = '30000'; //Port that your emulator runs on: Usually 30000 unless using a DDoS protected proxy.[/b] class.template.PHP code: [b]$this->setParams('server_port', $_CONFIG['server']['port']);[/b] {owner1}/{owner2}: Good for the staff page and footer. config.PHP code: [b]$_CONFIG['owner']['one'] = 'Hotel Owner 1'; //The founder or highest owner of your hotel.[/b] and [b]$_CONFIG['owner']['two'] = 'Hotel Owner 2'; //The second owner of your hotel; Leave it blank if you only have one owner.[/b] class.template.PHP code: [b]$this->setParams('owner1', $_CONFIG['owner']['one']);[/b] and [b]$this->setParams('owner2', $_CONFIG['owner']['two']);[/b] If you wish to check, if you have the exploit I was removing, click [url=https://devbest.com/threads/release-revcms-important-exploit-fix.52399/]here[/url] to see how to remove it. Thanks to Sp0tify and Jamal for finding and releasing this exploit and thanks to [USER=35321]@Jerry_[/USER] for releasing on DevBest. Thanks for reading this and if I have helped, give me a like. If you find this hard to follow, or do not understand this, please reply below and I will help.[/center] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[RevCMS] How To Add More Configuration Codes To Your Hotel [Tutorial]
Top