|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
problem is with global.php
|
#3
|
||||
|
||||
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. |
#4
|
||||
|
||||
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"; } |
#5
|
||||
|
||||
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? |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
Quote:
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 |
#8
|
|||
|
|||
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
|
#9
|
|||
|
|||
Quote:
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 |
Tags |
kp380lv , pre7 , problem , v22 , warnings , yse |
|
|
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 |