أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

[مجابه] Making detailed settings for hours

موضوع مغلق


27-09-2011 08:24 مساءً
Darq5
معلومات الكاتب
Il do this by how detailed the clock settings?

Making detailed settings for hours

How do I close the upper side there is a space
How do I remove that code

t.html">
Making detailed settings for hours
  header.png   تحميل png header.png مرات التحميل :(155)
الحجم :(307.469) KB
  Adsız.png   تحميل png Adsız.png مرات التحميل :(156)
الحجم :(7.006) KB
 

look/images/icons/i1.gif [مجابه] Making detailed settings for hours
  27-09-2011 10:56 مساءً   [1]
نجم الويب
معلومات الكاتب
اقتبـاس ،، Il do this by how detailed the clock settings?

Making detailed settings for hours
i don't understand Making detailed settings for hours
اقتبـاس ،، How do I close the upper side there is a space
How do I remove that code

t.html">
Making detailed settings for hours
Put your problem in this section the problems of Styles
On link

https://pbboard.info/forums/f25

look/images/icons/i1.gif [مجابه] Making detailed settings for hours
  28-09-2011 04:16 مساءً   [2]
Darq5
معلومات الكاتب
Detailed time display, for example: as the subject opened 3 days ago

look/images/icons/i1.gif [مجابه] Making detailed settings for hours
  14-10-2011 08:58 صباحاً   [3]
Soliman
معلومات الكاتب
Old, but does not prevent that by adding the solution with respect to time Making detailed settings for hours


To make history last post on the subject appear on the home page instead of the time when the past history

Open the file: engine/ibs/functions.class.php

And search for:
CODE
function BackHTML($text)


Place the top:

CODE
function arabi_time_ago($input,$type = 'ty')
{
/*
get it from :http://css-tricks.com/snippets/php/time-ago-function/
translated by :codeboxy
*/
   if($input > time()){
   return false;
   exit;
   }
    $period = array ("seconds", "minute", "hour", "Day", "week", "month", "Year", "decade");
    $periods = array ("sec", "minutes", "hours", "days", "weeks", "months", "years", "decade");
    $periodtw = array ("two seconds", "minutes", "hours", "day", "two weeks", "two months", "two", "decade");   
   
   $lengths = array("60","60","24","7","4.35","12","10");

   $now = time();
    $difference = $now - $input;
   for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {
      $difference /= $lengths[$j];
   }

   $difference = round($difference);
    if($difference == 2){
    $x = $periodtw[$j];
      return "ago $x";
   }elseif($difference != 1 and $difference <= 10) {
    $x= $periods[$j];
       return "ago $difference $x";
   }else{
    $x = $period[$j];
     return "ago $difference $x";
   }


}


# And save the file

--------------------------------------------

Open the file: includes/functions.class.php
And search for:
CODE
$forum[&#39;last_date&#39;] = $PowerBB->functions->date($forum_last_time1);

And replace with:
CODE
$forum[&#39;last_date&#39;] = $PowerBB->sys_functions->arabi_time_ago($forum_last_time1);


# And save the file


Ended ...

look/images/icons/i1.gif [مجابه] Making detailed settings for hours
  14-10-2011 01:30 مساءً   [4]
Darq5
معلومات الكاتب
thank you :)

look/images/icons/i1.gif [مجابه] Making detailed settings for hours
  14-10-2011 10:47 مساءً   [5]
moad
معلومات الكاتب
السلام عليكم ورحمة الله وبركاته ،،
تم غلق الموضوع لأحد الأسباب التالية:
  1. تم حل المشكلة والحمدلله.
  2. بقاء الموضوع لمدة 3 أيام بدون الرد عليه أو وجود إشارة تدل على رجوع العضو إليه.
  3. لا يوجد حل لهذه المشكلة (إذا وجد الحل سوف يتم إعادة فتح الموضوع).
عزيزي العضو حرصا على عدم تداخل المواضيع ببعضها وبالتالي صعوبة إستخدام عملية البحث بالنسبة للأعضاء قررت إدارة المنتديات بإغلاق المواضيع التي تتوافق مع الأسباب السابقة.
بإمكانك بدأ موضوع جديد أو مراسلة أحد المشرفين إن كنت متأكد من رغبتك في الإستمرار .

إدارة المنتديات،،



الكلمات الدلالية
لا يوجد كلمات دلالية ..






الساعة الآن 03:40 AM