← Back to vBulletin 4.x Add-ons

Status of PHP 8.5 support: Possible. Open Contacts for details.

how to change the word AM and PM
Mod Version: 1.00, by hazem_aliraqi

vB Version: 4.2.2 Rating: (0 vote - 0 average) Installs: 3
Released: 04 Jun 2015 Last Update: Never Downloads: 0
Not Supported Code Changes  

hello

how to change the word AM and PM

1- open functions.php in folder includes

2- fine

PHP Code:
if (!empty($userinfo['lang_locale']))
    {
        
setlocale(LC_TIME, $currentlocale);
        if (
substr($currentlocale, 0, 5) != 'tr_TR')
        {
            
setlocale(LC_CTYPE, $currentlocale);
        }
    }
    return 
$returndate;
} 


3- replace with

PHP Code:
if (!empty($userinfo['lang_locale']))
    {
        
setlocale(LC_TIME, $currentlocale);
        if (
substr($currentlocale, 0, 5) != 'tr_TR')
        {
            
setlocale(LC_CTYPE, $currentlocale);
        }
    }

$returndate=preg_replace('/AM/', 'صباحاً',$returndate);
$returndate=preg_replace('/PM/', 'مساء ً',$returndate);

return 
$returndate;

} 


that was for arabic word (صباحاً , مساءً)

and that keep your Detailed time like last post since one second

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2025