RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

Results 1 to 16 of 16
  1. #1
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    smile RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Well hai!
    I had a little trouble adding VIP to my account via Navicat, so I tried to add a VIP textbox into the housekeeping and it works great.

    Credits:
    Kryptos
    Me
    tdid

    Screenshot:
    Screenshot by Lightshot

    How to add?
    Simple go to your wwwroot/htdocs
    and into app and replace the class.template.php with yours (If you have edited it make sure to make backup)
    Then go to wwwroot/htdocs
    and go to app/tpl/skins/(yourskin)/hk/and replace the edit.php with yours (make sure to make a backup if you have edited it)

    Finish!

    Download:
    http://www.mediafire.com/?7ixzgee9ug6gvjz (Thanks to tdid for the fix )
    edit.php

    Rep + Like if you love this release (and me )
    Last edited by PRIZM; 12-11-12 at 01:03 PM.


  2. #2
    Gamma Spamma Liam is online now
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,945Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    This is a good release, for people who aren't capable of adding a simple textbox and a line of code. :) But yeah, thanks a lot!

  3. #3
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by Liam View Post
    This is a good release, for people who aren't capable of adding a simple textbox and a line of code. :) But yeah, thanks a lot!
    Thanks Liam, actually i'm proud of myself. One step forward into PHP.
    Actually I wrote the code myself, I just looked at the other texts and did the same with some edit. ^^

  4. #4
    Gamma Spamma Liam is online now
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,945Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by Prizm View Post
    Thanks Liam, actually i'm proud of myself. One step forward into PHP.
    Actually I wrote the code myself, I just looked at the other texts and did the same with some edit. ^^
    Yes, editing PHP code will help you learn in the future. I do hope one day you become better, as everyone has potential, but you need to find it!

  5. #5
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    You sure it works cause I dont see VIP in the mysql_query:

    mysql_query("UPDATE users SET username = '" . filter($_POST['username']) . "', mail = '" . filter($_POST['email']) . "', motto = '" . filter($_POST['motto']) . "', rank = '" . filter($_POST['rank']) . "', credits = '" . filter($_POST['credits']) . "', activity_points = '" . filter($_POST['pixels']) . "' WHERE username = '" . filter($_POST['username_current']) . "'") or die(mysql_error());

  6. #6
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by tdid View Post
    You sure it works cause I dont see VIP in the mysql_query:

    mysql_query("UPDATE users SET username = '" . filter($_POST['username']) . "', mail = '" . filter($_POST['email']) . "', motto = '" . filter($_POST['motto']) . "', rank = '" . filter($_POST['rank']) . "', credits = '" . filter($_POST['credits']) . "', activity_points = '" . filter($_POST['pixels']) . "' WHERE username = '" . filter($_POST['username_current']) . "'") or die(mysql_error());
    Oh lol thanks, I try to fix it when I have got some food ;3

    As I can see when I give myself VIP from the database I can see it in the housekeeping, but when I do it in the housekeeping it doesn't save.
    If anyone can help me I would be happy! =)

  7. #7
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Code:
    mysql_query("UPDATE users SET username = '" . filter($_POST['username']) . "', mail = '" . filter($_POST['email']) . 		"', motto = '" . filter($_POST['motto']) . "', rank = '" . filter($_POST['rank']) . "', credits = '" . filter($_POST['credits']) . "', activity_points = '" . filter($_POST['pixels']) . "', vip = '" . filter($_POST['vip']) . "' WHERE username = '" . filter($_POST['username_current']) . "'") or die(mysql_error());
    Replace that query at line 59 with this. Should work thought didnt test it.

  8. #8
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by tdid View Post
    Code:
    mysql_query("UPDATE users SET username = '" . filter($_POST['username']) . "', mail = '" . filter($_POST['email']) .         "', motto = '" . filter($_POST['motto']) . "', rank = '" . filter($_POST['rank']) . "', credits = '" . filter($_POST['credits']) . "', activity_points = '" . filter($_POST['pixels']) . "', vip = '" . filter($_POST['vip']) . "' WHERE username = '" . filter($_POST['username_current']) . "'") or die(mysql_error());
    Replace that query at line 59 with this. Should work thought didnt test it.
    Ow, thank you tdid! :D

  9. #9
    Valued Member PrinceOren is offline
    MemberRank
    Jul 2010 Join Date
    115Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Nice release I guess ?
    But I didn't use this housekeeping :/

  10. #10
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by PrinceOren View Post
    Nice release I guess ?
    But I didn't use this housekeeping :/
    Just make sure you don't use GrapeASE it does have exploits in it

  11. #11
    Valued Member PrinceOren is offline
    MemberRank
    Jul 2010 Join Date
    115Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by Prizm View Post
    Just make sure you don't use GrapeASE it does have exploits in it
    I see . Nope . Didn't use that one .
    Thanks for the info

  12. #12
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by PrinceOren View Post
    I see . Nope . Didn't use that one .
    Thanks for the info
    Your welcome

  13. #13
    Apprentice Releastixx is offline
    MemberRank
    Oct 2012 Join Date
    AustraliaLocation
    12Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Its Greate for newbies it help allot of people Thanks for the release

  14. #14
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    If you're selling VIP why not make it automatic?

  15. #15
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by tdid View Post
    If you're selling VIP why not make it automatic?
    Because i'm a noob and don't know how. :P

  16. #16
    Ask me about Daoism FullmetalPride is offline
    MemberRank
    Nov 2010 Join Date
    2,172Posts

    Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]

    Quote Originally Posted by Prizm View Post
    Because i'm a noob and don't know how. :P
    Learn :D That would really help the whole community out x)



Advertisement