Are you for real?
On topic : Reasonable release.
This is a discussion on UberCMS - Site path and name! within the Habbo Releases forums, part of the Habbo Hotel category; Hi guys! Its been a long time now.. But, here is a small release from me ;) However, if you ...

Hi guys! Its been a long time now.. But, here is a small release from me ;) However, if you want to change your hotel name from hk, then you shall add this!
Go in global.php hit ctrl + h
Search for:Under that add this:PHP Code:$cron->Execute();
One step done.PHP Code:// ############################################################################
// Load Settings
$query = dbquery("SELECT value,name FROM settings ORDER BY title ASC");
while($setting = mysql_fetch_array($query))
{
$setting['value'] = str_replace("\"", "\\\"", $setting['value']);
$settings[$setting['name']] = $setting['value'];
}
mysql_free_result($query);
$core->setting = &$settings;
define("SHORTNAME", $settings['hotel_shortname']);
define("HOTELNAME", $settings['hotel_name']);
Okay, now go to /inc/class.tpl.php
Search forAdd under that this:PHP Code:$this->SetParam('www', WWW);
Now go to /inc/tpl/head-init.tpl. Open it and search forPHP Code:$this->SetParam('shortname', SHORTNAME);
$this->SetParam('hotelname', HOTELNAME);
Replace the whole line with:PHP Code:<title>
I think that is it, its preatty useless really, but good for noobs! Oh wait, i forgot to add the MySQL!PHP Code:<title>%shortname%: %page_title%</title>
Tell me if it not are working!PHP Code:--
-- Table structure for table `settings`
--
CREATE TABLE IF NOT EXISTS `settings` (
`title` int(255) NOT NULL,
`value` varchar(255) NOT NULL,
`name` varchar(2553) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`title`, `value`, `name`) VALUES
(1, 'Habbo', 'hotel_shortname'),
(3, 'Habbo Hotel', 'hotel_name');
-- --------------------------------------------------------
Update:
Open global.php, search for:Add under it:PHP Code:$core->setting = &$settings;
New sql:PHP Code:define("WWW", $settings['hotel_path']);
Remove from inc/inc.config.phpPHP Code:INSERT INTO `settings` (`title`, `value`, `name`) VALUES
(2, 'http://localhost', 'hotel_path');
Credits: Tweeney 90%PHP Code:$config['Site']['www'] = "http://localhost";
Me: Fixing it up.
Last edited by Akimbo; 08-12-11 at 02:13 PM. Reason: Credits
Are you for real?
On topic : Reasonable release.
This could be so much better, without using MySQL. Nice release though.
Uhm, just go into head-init, and write the name of your hotel before : %page_title% ? What's so hard about that?
Yeeehhh You rocks dude this is usefull thanks this is realy Nice you the fucking damm shit good codes dude I love it :D and yes im stoned :p
Lol, haters this is here to make the title be editable via Housekeeping. If you did the configuration document updating through housekeeping that would mean CHMODDING to 777 which could cause security holes...
@OP - I love it :D
Nice release - Should be helpful :)
But why do I have 90% of the credits?
Nice release.
Waste of coding like Law said.