User Tools

Site Tools


plugins:tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugins:tips [2014/02/07 10:05]
datiswous [Success and Error Messages]
plugins:tips [2014/02/07 10:07] (current)
datiswous [Working around the broken sitewide cookies in GS 3.0]
Line 58: Line 58:
 The publication date in the page XML files is stored in an english text format, which can be converted to a UNIX timestamp with The publication date in the page XML files is stored in an english text format, which can be converted to a UNIX timestamp with
  
-<​code>​+<​code ​php>
 $timestamp = strtotime($data->​pubDate);​ $timestamp = strtotime($data->​pubDate);​
 </​code>​ </​code>​
Line 66: Line 66:
 To display a truly localized date, use: To display a truly localized date, use:
  
-<​code>​+<​code ​php>
 $dateLocale = '​de_DE,​de,​ger,​deu'; ​     // or use $LANG or a setting in your plugin, ​ $dateLocale = '​de_DE,​de,​ger,​deu'; ​     // or use $LANG or a setting in your plugin, ​
                                        // for OS compatibility multiple locales should be possible                                        // for OS compatibility multiple locales should be possible
Line 83: Line 83:
 However, if you need it for the backend, e.g. linking to a php somewhere in the plugins folder, you can add the following code to your plugin (e.g. directly after setting up the hooks): However, if you need it for the backend, e.g. linking to a php somewhere in the plugins folder, you can add the following code to your plugin (e.g. directly after setting up the hooks):
  
-<​code>​+<​code ​php>
 if (!myplugin_is_frontend() && myplugin_gsversion() == '​3.0'​) { if (!myplugin_is_frontend() && myplugin_gsversion() == '​3.0'​) {
   // workaround for GetSimple 3.0:   // workaround for GetSimple 3.0:
plugins/tips.1391767529.txt.gz ยท Last modified: 2014/02/07 10:05 by datiswous