Welcome to the RaGEZONE - MMORPG development forums.

UberCMS - Site path and name!

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

LyncusMU
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    Everywhere i go
    Posts
    206
    Liked
    32

    smile UberCMS - Site path and name!

    Tabo Hotel
    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:
    PHP Code:
    $cron->Execute(); 
    Under that add this:
    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']); 
    One step done.
    Okay, now go to /inc/class.tpl.php
    Search for
    PHP Code:
    $this->SetParam('www'WWW); 
    Add under that this:
    PHP Code:
            $this->SetParam('shortname'SHORTNAME);
            
    $this->SetParam('hotelname'HOTELNAME); 
    Now go to /inc/tpl/head-init.tpl. Open it and search for
    PHP Code:
    <title
    Replace the whole line with:
    PHP Code:
    <title>%shortname%: %page_title%</title
    I think that is it, its preatty useless really, but good for noobs! Oh wait, i forgot to add the MySQL!
    PHP Code:
    --
    -- 
    Table structure for table `settings`
    --

    CREATE TABLE IF NOT EXISTS `settings` (
      `
    titleint(255NOT NULL,
      `
    valuevarchar(255NOT NULL,
      `
    namevarchar(2553NOT 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');
    -- -------------------------------------------------------- 
    Tell me if it not are working!

    Update:
    Open global.php, search for:
    PHP Code:
    $core->setting = &$settings
    Add under it:
    PHP Code:
    define("WWW"$settings['hotel_path']); 
    New sql:
    PHP Code:
    INSERT INTO `settings` (`title`, `value`, `name`) VALUES
    (2'http://localhost''hotel_path'); 
    Remove from inc/inc.config.php
    PHP Code:
    $config['Site']['www'] = "http://localhost"
    Credits: Tweeney 90%
    Me: Fixing it up.
    Last edited by Akimbo; 08-12-11 at 02:13 PM. Reason: Credits

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    What you looking at?
    Rank
    Subscriber
    Join Date
    Oct 2009
    Location
    London
    Posts
    221
    Liked
    112

    Re: UberCMS - Site name (Small release)

    Are you for real?

    On topic : Reasonable release.

  4. #3
    MEHHREKHwhgfkehrkgthregir
    Rank
    Member +
    Join Date
    Sep 2011
    Location
    υηιтє∂
    Posts
    927
    Liked
    305

    Re: UberCMS - Site name (Small release)

    This could be so much better, without using MySQL. Nice release though.

  5. #4
    Law
    Garry's Mod is addictive!
    Rank
    Subscriber
    Join Date
    Dec 2009
    Location
    Norway
    Posts
    1,010
    Liked
    230

    Re: UberCMS - Site name (Small release)

    Uhm, just go into head-init, and write the name of your hotel before : %page_title% ? What's so hard about that?

  6. #5
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    Everywhere i go
    Posts
    206
    Liked
    32

    Re: UberCMS - Site name (Small release)

    Quote Originally Posted by Law View Post
    Uhm, just go into head-init, and write the name of your hotel before : %page_title% ? What's so hard about that?
    I really dont know ;)

    Quote Originally Posted by Muscab View Post
    Are you for real?

    On topic : Reasonable release.
    What the fuck do you mean about that?

  7. #6
    [email protected]
    Rank
    Member +
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    239
    Liked
    38

    Re: UberCMS - Site name (Small release)

    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

  8. #7
    Delta Subscription
    Rank
    Subscriber
    Join Date
    Nov 2008
    Location
    Manchester, UK
    Posts
    3,266
    Liked
    822

    Re: UberCMS - Site name (Small release)

    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

  9. #8
    Law
    Garry's Mod is addictive!
    Rank
    Subscriber
    Join Date
    Dec 2009
    Location
    Norway
    Posts
    1,010
    Liked
    230

    Re: UberCMS - Site name (Small release)

    Quote Originally Posted by Hejula View Post
    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
    Still easy enough to edit it in the head-init.php.

    Plus, they have to configure their hotel within inc.config.php? so why not just create a new variable there, and add that variable to the head-init? no need for that in the housekeeping then.

  10. #9
    Delta Subscription
    Rank
    Subscriber
    Join Date
    Nov 2008
    Location
    Manchester, UK
    Posts
    3,266
    Liked
    822

    Re: UberCMS - Site name (Small release)

    Quote Originally Posted by Law View Post
    Still easy enough to edit it in the head-init.php.

    Plus, they have to configure their hotel within inc.config.php? so why not just create a new variable there, and add that variable to the head-init? no need for that in the housekeeping then.
    Why make something harder then it needs to be? A simple housekeeping text box makes life easier then having to go onto your server, then go all the way into a file just for 1 thing. Time which can be better spent.

  11. #10
    Demi-God
    Rank
    Member +
    Join Date
    Aug 2008
    Location
    England
    Posts
    775
    Liked
    92

    Re: UberCMS - Site name (Small release)

    Nice release - Should be helpful :)
    But why do I have 90% of the credits?

  12. #11
    PHP, HTML5, CSS3, JS, C#
    Rank
    Alpha Member
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    1,814
    Liked
    1013

    Re: UberCMS - Site name (Small release)

    Quote Originally Posted by Hejula View Post
    Why make something harder then it needs to be? A simple housekeeping text box makes life easier then having to go onto your server, then go all the way into a file just for 1 thing. Time which can be better spent.
    You choose a name, edit the cms with it, never look back.

    Conclusion: Adding this to your cms is much more work then doing a simple edit

  13. #12
    Delta Subscription
    Rank
    Subscriber
    Join Date
    Nov 2008
    Location
    Manchester, UK
    Posts
    3,266
    Liked
    822

    Re: UberCMS - Site name (Small release)

    Quote Originally Posted by joopie View Post
    You choose a name, edit the cms with it, never look back.

    Conclusion: Adding this to your cms is much more work then doing a simple edit
    Some people like to put version numbers on there hotels... for example Joopie Hotel V1

  14. #13
    Now 35% cooler!
    Rank
    Alpha Member
    Join Date
    Oct 2008
    Location
    United Kingdom
    Posts
    2,071
    Liked
    353

    Re: UberCMS - Site name (Small release)

    Nice release.

  15. #14
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    Everywhere i go
    Posts
    206
    Liked
    32

    Re: UberCMS - Site name (Small release)

    Quote Originally Posted by tweeney View Post
    Nice release - Should be helpful :)
    But why do I have 90% of the credits?
    Bcus, i did see the stuff on torpeedo cms :)

  16. #15
    Custom User Title
    Rank
    Alpha Member
    Join Date
    Jun 2010
    Location
    地下鉄
    Posts
    2,515
    Liked
    392

    Re: UberCMS - Site path and name!

    Waste of coding like Law said.

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •