Is it possible to fix the room? [RevCMS]

Results 1 to 4 of 4
  1. #1
    Valued Member Meller Plus is offline
    MemberRank
    Mar 2015 Join Date
    In my laptop.Location
    111Posts

    ! Is it possible to fix the room? [RevCMS]

    Well I want to know if there anyway to fix this {url}/room/{roomid} in RevCMS?
    http://prntscr.com/6jhq0m - This print is from Room info

    - - - Updated - - -

    Anyone?


  2. #2
    Ragezone Furni Releaser maartenvn is offline
    MemberRank
    Dec 2012 Join Date
    Ragezone WorldLocation
    928Posts

    Re: Is it possible to fix the room? [RevCMS]

    I made a little script for you:

    Add to .htaccess:
    Code:
    RewriteRule ^room/([^/]+)$ ./room.php?room=$1
    Add to client.php(Make sure you don't have 2 times the same line so search first and delete the old one)
    Code:
    "forward.type" : "2", 
    "forward.id" : "<?php if(isset($_GET['roomid'])){echo $_GET['roomid'];}?>",
    Create a file room.php and place in that:
    Code:
    <?php
    if (isset($_GET['room'])) {
    	header('Location: http://yourhotellink/client.php?roomid='.$_GET['room'].'');
    }
    
    ?>
    Don't forgot to change yourhotellink before you save it.

    Not tested so post if it doesn't work.

    - Maartenvn
    Last edited by maartenvn; 22-03-15 at 07:37 PM.

  3. #3
    Valued Member Meller Plus is offline
    MemberRank
    Mar 2015 Join Date
    In my laptop.Location
    111Posts

    Re: Is it possible to fix the room? [RevCMS]

    Quote Originally Posted by maartenvn View Post
    I made a little script for you:

    Add to .htaccess:
    Code:
    RewriteRule ^room/([^/]+)$ ./room.php?room=$1
    Add to client.php(Make sure you don't have 2 times the same line so search first and delete the old one)
    Code:
    "forward.type" : "2", 
    "forward.id" : "<?php if(isset($_GET['roomid'])){echo $_GET['roomid'];}?>",
    Create a file room.php and place in that:
    Code:
    <?php
    if (isset($_GET['room'])) {
        header('Location: http://yourhotellink/client.php?roomid='.$_GET['room'].'');
    }
    
    ?>
    Don't forgot to change yourhotellink before you save it.

    Not tested so post if it doesn't work.

    - Maartenvn
    Thanks but this didnt work,

  4. #4
    Valued Member Meller Plus is offline
    MemberRank
    Mar 2015 Join Date
    In my laptop.Location
    111Posts

    Re: Is it possible to fix the room? [RevCMS]

    Bump?



Advertisement