php forum
php mysql forum
php mysql smarty
 
Topic Options
#226551 - 10/20/02 12:26 PM [6.1.1] ISO and German Date Format
noox Offline
Journeyman

Registered: 04/19/01
Posts: 109
Loc: Austria/Salzburg

   [6.1.1] ISO and German Date Format to Del.icio.us Add to del.icio.us
  Digg [6.1.1] ISO and German Date Format Digg it
Mod Name: ISO and German Date Format 1.0<br />Description: Admins can switch to ISO (YYYY-MM-DD hh:mm) or German (DD.MM.YYYY hh:mm) date format<br />Working under: at least 5.4.1 and 6.1.1 <br />Any pre-requisites: none<br />Author(s): nòóx (Hannes Schmiderer)<br />Credits: Rick, for the code, which made it so easy to add it ;-)<br />Demo: www.dh-rangers.com (currently 5.4.1) and www.nooxnet.com/ubbthreads.php (6.1.1) <br />Files Altered:<br />- theme.inc.php (optionally)<br />- ubbt.inc.php<br />- admin/edittheme.php<br />Database Altered: no<br />New Files: none<br />Any other info:<br />I think this should be included in some further release. The standardized ISO date format is interesting for multilingual boards. And there are some German boards where the other date formats do not really fit.<br /><br />theme.inc.php (end of file)<pre><font class="small">code:</font><hr><br /><br />// Which Time format to use<br />// short1 = 'MM/DD/YY 10:19 AM';<br />// short2 = 'DD/MM/YY 10:19 AM';<br />// short3 = 'YY/MM/DD 10:19 AM';<br />// short4 = 'YYYY/MM/DD 22:43';<br />// german = 'DD.MM.YYYY 22:43';<br />// iso = 'YYYY-MM-DD 22:43';</pre><hr><br /><br />ubbt.inc.php (function convert_time)<pre><font class="small">code:</font><hr><br />look for:<br /> function convert_time($time="",$offset="") {<br />add:<br /> elseif ($theme['timeformat'] == "iso") {<br /> $time = date("Y-m-d H:i", $time);<br /> }<br /> elseif ($theme['timeformat'] == "german") {<br /> $time = date("d.m.Y H:i", $time);<br /> }</pre><hr><br /><br />admin/edittheme.php<pre><font class="small">code:</font><hr><br />look for:<br /> if ($theme[timeformat] == "long")<br />add:<br /> elseif ($theme[timeformat] == "iso") {<br /> $mod_iso = "SELECTED";<br /> }<br /> elseif ($theme[timeformat] == "german") {<br /> $mod_german = "SELECTED";<br /> }<br /></pre><hr><br /><pre><font class="small">code:</font><hr><br />look for:<br /> <select name=timeformat class=formboxes><br />add:<br /> <option value=\"iso\" $mod_iso>YYYY-MM-DD 22:19<br /> <option value=\"german\" $mod_german>DD.MM.YYYY 22:19</pre><hr><br /><br />
_________________________
nòóx
_____________________
www.dh-rangers.com, www.downhill-board.com

Top


Who's Online
0 Registered (), 46 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks