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 :love: )
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!
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
Liam
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. ^^
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
Prizm
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!
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());
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
tdid
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! =)
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.
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
tdid
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
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 :/
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
PrinceOren
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 :):
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
Prizm
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
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
PrinceOren
I see . Nope . Didn't use that one .
Thanks for the info
Your welcome :):
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
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
If you're selling VIP why not make it automatic?
Re: RevCMS Housekeeping - Give VIP [Great if you are selling VIP on your hotel]
Quote:
Originally Posted by
tdid
If you're selling VIP why not make it automatic?
Because i'm a noob and don't know how. :P