Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=97)
-   -   VIP status (http://www.bvlist.com/showthread.php?t=869)

kp380lv 20th August 2008 13:51

VIP status
 
Mod For YSE PRE 6

Add to cleanup.php after the lifting of warnings:

PHP Code:

/*Begin "Vip Status to..." by Yuna */
//remove vip statuses
    
$now sqlesc(get_date_time());
    
$modcomment sqlesc(date("Y-m-d") . " -     
VIP status expired by date.\n"
);
    
$msg sqlesc("Your VIP status expired. Automaticaly your status changed to the old (prior to installation VIP).\n");
    
$subject sqlesc("Your VIP status expired");
    
sql_query("INSERT INTO messages (sender, receiver, added, msg, subject, poster) SELECT 0, id, $now$msg$subject, 0 FROM users WHERE vipuntil < $now AND vipuntil <> '0000-00-00 00:00:00'") or sqlerr(__FILE__,__LINE__);
    
sql_query("UPDATE users SET class = oldclass, oldclass = 0, vipuntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcomment, modcomment) WHERE vipuntil < $now AND vipuntil <> '0000-00-00 00:00:00'") or sqlerr(__FILE__,__LINE__);
/*End of "Vip Status to..." mod by Yuna */ 

Add to mybonus.php before

PHP Code:

default:
            
stdmsg($tracker_lang['error'], "Unknown bonus type!"); 

PHP Code:

/*Begin "Vip status to..." mod by Yuna */
case "vip":
            if (
get_user_class() >= UC_VIP) {
                
stdmsg($tracker_lang['error'], "That the bonuses you have nowhere devat'sja!?"'error');
                die();
            }
            
$days $arr["quanity"];
            
$vipuntil get_date_time(TIMENOW $days 86400);
            if (!
sql_query("UPDATE users SET bonus = bonus - $points, class = ".UC_VIP.", oldclass = ".$CURUSER["class"].", vipuntil = ".sqlesc($vipuntil)." WHERE id = ".sqlesc($CURUSER["id"]))) {
                
stdmsg($tracker_lang['error'], "I can not update the bonus!"'error');
                die();
            }
            
stdmsg($tracker_lang['success'], "Bonus bartered for VIP status.Your status zakanchvaetsya: $vipuntil");
            break;

/*End "Vip status to..." mod by Yuna */ 

Add to your datbase this:

Code:

ALTER TABLE `users` ADD `vipuntil` datetime NOT NULL default '0000-00-00 00:00:00';
ALTER TABLE `users` ADD `oldclass` tinyint(3) NOT NULL default '0';

INSERT INTO `bonus` (`name`, `points`, `description`, `type`, `quanity`) VALUES ('VIP Status for 30 days', 500, 'With enough bonus points acquired, you are able to exchange them for an VIP Status for 30 days.  The points are then removed from your Bonus Bank and the status is set.', 'vip', '30');

Who should be: give 5 bucks and remade not only in the VIP until such a number in a fashion that simply someone to a certain number - for example moderator to 7 - August 2007 - the year of 10:02.

I believe that this is more useful than just users themselves can take over bonuses VIP ...
Well it will - and so you understand ...
Credit for creating this mod goes to: Yuna
Credit for translation: kp380lv


AlaminT 28th August 2008 23:39

А может хватит так просто, в наглую, воровать мои модификации?
Maybe so simple enough, in the brazen, steal my modification?

http://bit-torrent.kiev.ua/tatus_vip...dex.html?t=528

kp380lv 28th August 2008 23:47

I do not steal your mods! I re-publish them! YSE PRE 7 your source so why you don't wanna your mods in this forum?

AlaminT 29th August 2008 07:32

If you republish, why don't you publish original creator/source of mod?

kp380lv 29th August 2008 12:14

So why! Nobody dryl that your credits! Cuz people interests only mods not a author....

Ok yes I respect your work, but why I need add your credits to this mods! I translate them with +- precision!!!

AlaminT 29th August 2008 14:24

you translated them via machine :D

Quote:

Who should be: give 5 bucks and remade not only in the VIP until such a number in a fashion that simply someone to a certain number - for example moderator to 7 - August 2007 - the year of 10:02.

I believe that this is more useful than just users themselves can take over bonuses VIP ...
Well it will - and so you understand ...
if you were translating it manualy you would have removed thesee, you even don't read what you post :D

johnake 29th August 2008 14:46

@kp380lv, as that code is his intelectual property and gave this mod publicly he is entitled to have a credit either in the code (as a comment), either in the thread name or in the post... or even in the three of them, that's why I will do some editing, hope you don't mind!

agentor 31st August 2008 08:49

thanks

Fireman007 10th April 2010 20:47

small bug case "vip":


All times are GMT +2. The time now is 18:47.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.