Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Yuna Scatari Edition (YSE) (http://www.bvlist.com/forumdisplay.php?f=22)
-   -   Problem with warnings YSE v2.2 PRE7 by kp380lv (http://www.bvlist.com/showthread.php?t=3073)

cop1976 24th July 2009 19:25

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.

kp380lv 25th July 2009 10:02

problem is with global.php

cop1976 26th July 2009 14:41

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.

kp380lv 26th July 2009 20:04

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";
}


cop1976 27th July 2009 13:32

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?

Paaskehare 3rd August 2009 21:43

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.

kingofcrime 30th September 2009 11:25

Quote:

Originally Posted by Paaskehare (Post 14063)
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

BoLaMN 30th September 2009 15:06

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

kingofcrime 30th September 2009 22:14

Quote:

Originally Posted by BoLaMN (Post 16139)
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


All times are GMT +2. The time now is 17:16.

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