Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE) > Mods & Themes
Reply
  #1  
Old 20th August 2008, 13:51
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Thumbs up 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.<br />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


Last edited by johnake; 29th August 2008 at 14:54.
Reply With Quote
The Following User Says Thank You to kp380lv For This Useful Post:
wxlg1117 (4th September 2009)
  #2  
Old 28th August 2008, 23:39
AlaminT's Avatar
AlaminT AlaminT is offline
Senior Member
 
Join Date: Jul 2008
Ukraine
Posts: 39
Default
А может хватит так просто, в наглую, воровать мои модификации?
Maybe so simple enough, in the brazen, steal my modification?

http://bit-torrent.kiev.ua/tatus_vip...dex.html?t=528
Reply With Quote
  #3  
Old 28th August 2008, 23:47
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
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?
Reply With Quote
  #4  
Old 29th August 2008, 07:32
AlaminT's Avatar
AlaminT AlaminT is offline
Senior Member
 
Join Date: Jul 2008
Ukraine
Posts: 39
Default
If you republish, why don't you publish original creator/source of mod?
Reply With Quote
  #5  
Old 29th August 2008, 12:14
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
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!!!
Reply With Quote
  #6  
Old 29th August 2008, 14:24
AlaminT's Avatar
AlaminT AlaminT is offline
Senior Member
 
Join Date: Jul 2008
Ukraine
Posts: 39
Default
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
Reply With Quote
  #7  
Old 29th August 2008, 14:46
johnake's Avatar
johnake johnake is offline
Senior Member
 
Join Date: Dec 2007
Posts: 52
Default
@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!
__________________
PHP Code:
class mySelf extends World
   
{
       public 
$health;
       private 
$friends;
       protected 
$love;
  
   public function 
__construct()
  {
       
$this->health 100;
       
$this->friends 2;
       
$this->love true;
  }
  protected function 
__love()
  { 
      
//has a bug... for the moment...
      //will fix it later.. until then:
      
sleep(15*365*24*3600);
  }

Reply With Quote
  #8  
Old 31st August 2008, 08:49
agentor agentor is offline
Member
 
Join Date: Jun 2008
Posts: 1
Default
thanks
Reply With Quote
  #9  
Old 10th April 2010, 20:47
Fireman007 Fireman007 is offline
Member
 
Join Date: Jan 2009
P2P
Posts: 1
Default
small bug case "vip":
Reply With Quote
Reply

Tags
status , vip

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error in tracker status sri Free Torrent Source 1 15th February 2010 21:51
Problem with status tracker Viruzzz TBDev 4 22nd October 2008 14:45
Mysql Server Status, V1.x to v2 Grom Torrent Trader 0 6th September 2008 13:18



All times are GMT +2. The time now is 21:29. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.