Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #1  
Old 24th July 2009, 19:25
cop1976's Avatar
cop1976 cop1976 is offline
Senior Member
 
Join Date: May 2009
United Kingdom
Posts: 30
Default Problem with warnings YSE v2.2 PRE7 by kp380lv
Welcome

I have a problem with warnings, if i give someone a warning, the system will be immediately removed, does not respect the deadline for which was a warning data. When checking in the database, it is a warning to 1 January 1970.

Sorry for my english

THX for any help.
Reply With Quote
  #2  
Old 25th July 2009, 10:02
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
problem is with global.php
Reply With Quote
  #3  
Old 26th July 2009, 14:41
cop1976's Avatar
cop1976 cop1976 is offline
Senior Member
 
Join Date: May 2009
United Kingdom
Posts: 30
Default
In global.php has nothing related to the date or warnings. Maybe You think in function_global.php, but i dont now where exactly.

Thanks for answer.
Reply With Quote
  #4  
Old 26th July 2009, 20:04
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
sorry yeah i want say functions-global.php
Replace - function get_elapsed_time($ts) {

with this

Code:
function get_elapsed_time($ts) {
  $mins = floor((time() - $ts) / 60);
  $hours = floor($mins / 60);
  $mins -= $hours * 60;
  $days = floor($hours / 24);
  $hours -= $days * 24;
  $weeks = floor($days / 7);
  $days -= $weeks * 7;
  $t = "";
  if ($weeks > 0)
    return "$weeks wee" . ($weeks > 1 ? "ks" : "k");
  if ($days > 0)
    return "$days da" . ($days > 1 ? "ys" : "y");
  if ($hours > 0)
    return "$hours hou" . ($hours > 1 ? "rs" : "r");
  if ($mins > 0)
    return "$mins minut" . ($mins > 1 ? "es" : "e");
  return "< 1 minut";
}
Reply With Quote
  #5  
Old 27th July 2009, 13:32
cop1976's Avatar
cop1976 cop1976 is offline
Senior Member
 
Join Date: May 2009
United Kingdom
Posts: 30
Default
THX, thats working great. In database i have good time warning, but in user profile it shows 01.01.1970 and 0 days to end of warning.

How can i fix this?
Reply With Quote
  #6  
Old 3rd August 2009, 21:43
Paaskehare Paaskehare is offline
Member
 
Join Date: Nov 2008
Posts: 1
Default
It's a bug in cleanup.php, pretty simple too, it is because the db is using unixtime, and the cleanup.php thinks it's using normal datetime.

So in cleanup.php you just have to make it look for unixtime instead.

It's the same issue with auto-promotion of Power Users.
Reply With Quote
  #7  
Old 30th September 2009, 11:25
kingofcrime kingofcrime is offline
Member
 
Join Date: Aug 2009
P2P
Posts: 3
Default
Quote:
Originally Posted by Paaskehare View Post
It's a bug in cleanup.php, pretty simple too, it is because the db is using unixtime, and the cleanup.php thinks it's using normal datetime.

So in cleanup.php you just have to make it look for unixtime instead.

It's the same issue with auto-promotion of Power Users.
i have this problem too, how can i fix this ?
i have install this versiyon: YunaScatari.v2.0.PRE7.RC2.1

sorry for my english

i translate the complet site on turkish here my site divx.boardu.org
Reply With Quote
  #8  
Old 30th September 2009, 15:06
BoLaMN BoLaMN is offline
Senior Member
 
Join Date: Jan 2008
Australia
Posts: 93
Default
with a changed footer like that i dont think anyone would want to help you as you have removed all credits to the people who did alot of work here
Reply With Quote
  #9  
Old 30th September 2009, 22:14
kingofcrime kingofcrime is offline
Member
 
Join Date: Aug 2009
P2P
Posts: 3
Default
Quote:
Originally Posted by BoLaMN View Post
with a changed footer like that i dont think anyone would want to help you as you have removed all credits to the people who did alot of work here
i dont remove all credits. the credits is not seen on one style and this is Divx style (this style is created by a friend) i think you see this style.(how can i change this ??? to see Yuna Pre7 RC v02.1 - BolaMN Ceviri by Divx! this on Divx style)
I have the andiko style there you can seen

Yuna Pre7 RC v02.1 - BolaMN
Ceviri by Divx!
Theme designed by ANDiTKO

under the site

and at Tbdev style and gray style is this
Yuna Pre7 RC v02.1 - BolaMN
Ceviri by Divx! there

Ceviri = translate

thank you for help sorry for my english

Last edited by kingofcrime; 30th September 2009 at 22:51. Reason: forgott something
Reply With Quote
Reply

Tags
kp380lv , pre7 , problem , v22 , warnings , yse

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
[FIX] FTS 1.1 remove expired warnings Edgein Free Torrent Source 5 3rd March 2010 14:41
Problem with Yuna Scatari Edition PRE7 2.2 AneXA Yuna Scatari Edition (YSE) 2 26th October 2009 18:18
Yuna Scatari v2.2 PRE7 By kp380lv - Hotfixes kp380lv Yuna Scatari Edition (YSE) 3 26th August 2009 09:15
Uploading problem in YSE PRE7 Sayat Yuna Scatari Edition (YSE) 4 16th January 2009 13:29
YSE PRE 7 Cleanup fix by kp380lv kp380lv Yuna Scatari Edition (YSE) 4 15th November 2008 22:37



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