Total Users Online: 0 üye, 147 guest | Tarih/Saat: 2025-04-29 07:49
Current date for page for Seditio
Adding the possibility to set current date in one click
Current date for page for Seditio

It weary when you often edit/update some pages and you must manually set the date... so I made little mod, and now if you check the chceckbox the date automatically save as current

system/core/page/page.edit.inc.php

Alttakini bul
Kod:
$rpagecat = sed_import('rpagecat','P','TXT')

Altşna ekle
Kod:
$rcurrentdate = sed_import('rcurrentdate','P','INT')

Alttakini bul
Kod:
$rpagedate = sed_mktime($rhour, $rminute, 0, $rmonth, $rday, $ryear) - $usr['timezone'] * 3600

Alttakiyle deşiştir.
Kod:
$rpagedate = ($rcurrentdate==1) ş $sys['now_offset'] : sed_mktime($rhour, $rminute, 0, $rmonth, $rday, $ryear) - $usr['timezone'] * 3600
]
Alttakini bul
Kod:
$pag['page_date'] = sed_selectbox_date($pag['page_date'] + $usr['timezone'] * 3600,'long')

Altşna ekle
Kod:
$pag['page_currentdate'] = "<br /><input type="checkbox" class="checkbox" name="rcurrentdate" value="1" /> ".$L['paged_currentdate']

Alttakini bul
Kod:
"PAGEEDIT_FORM_DATE" => $pag['page_date']." ".$usr['timetext']

Alttakiyle Deşiştir.
Kod:
"PAGEEDIT_FORM_DATE" => $pag['page_date']." ".$usr['timetext']." ".$pag['page_currentdate']

system/lang/en/main.lang.php dosyasşnş aş alttakini bul
Kod:
$L['paged_subtitle'] = "Update values for this page"

Altşna ekle
Kod:
$L['paged_currentdate'] = "Set current date (ignore date selector and update date to current one)"

Sonuş:

Henüz yorum yapılmamıştır.
Current date for page for Seditio
Author: Kaan
Date: 2011-04-11 15:23
Comments: (0)
File: 3934081-52-currentdate.rar
Filesize: 9 KB
Downloads: 408 times
Download Current date for page for Seditio
Benzer SayfalarYorum
Seditio Teknodrom Teması0
Seditio Azərbaycan Dili Paketi1
Seditio Ancient Blog Arayüzü0
Seditio Scenic 2 Arayüzü0
Seditio 173 Html Version2
Seditio v1705
Seditio v170 Beta2
Facebook Comments Plugin (Seditio)3
Protekno Seditio Teması0
CometChat Seditio3
 
Powered by Seditio © 2009-2012 All Rights Reserved