Php webtags: Difference between revisions

731 bytes added ,  11:26, 20 April 2020
m
Line 65: Line 65:
'''Instead of producing your own template''' as described in '''Option 2'''below, there are a number already produced (if they contain output parameters they are specific to a particular flavour of Cumulus), of course ''none of them cover all web tag combinations'' possible using output parameters, but they might cover enough for your purposes:
'''Instead of producing your own template''' as described in '''Option 2'''below, there are a number already produced (if they contain output parameters they are specific to a particular flavour of Cumulus), of course ''none of them cover all web tag combinations'' possible using output parameters, but they might cover enough for your purposes:


=== MX specific ===
*For version 3.5.3 (build 3074), a single template file can be downloaded from [https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=17991 CumulusMX PHPwebtags] topic in the support forum, posted by the administrator (water01) as an update to the one below.
 
*An equivalent for version 3.0.x is at [https://cumulus.hosiene.co.uk/viewtopic.php?f=39&t=13252&p=103860&hilit=cumuluswebtags.txt#p103830 this page on  support forum] also posted by the administrator (water01), and developed from the original by David Jamieson and Ray Beriau. This one does not contain any web tags added since 2015, but use this one also for versions before 3.5.3 to avoid any errors being reported and accept it may not include some of the web tags available in in-between versions. Most php variable names match the corresponding web tags name, but there are some extra PHP variable names for web tags with particular output parameters. For example:
*For version 3.5.3 (build 3074), a single template file can be downloaded from [https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=17991 CumulusMX PHPwebtags] topic in the support forum, posted by the administrator (water01).  
<pre>$date2                      = strtotime(str_replace('/','-',"<#date>"));  //  current date (example format: 1346569200)
*An equivalent for version 3.0.x is at [https://cumulus.hosiene.co.uk/viewtopic.php?f=39&t=13252&p=103860&hilit=cumuluswebtags.txt#p103830 this page on  support forum] also posted by the administrator (water01), this one does not contain any web tags added since 2015, but use this one also for versions before 3.5.3 to avoid any errors being reported and accept it may not include some of the web tags available in in-between versions.
$dateU                      = strtotime(str_replace('/','-',"<#date>"));  //  current date (Unix datestamp format)
$datelong                  = "<#date format="dddd, MMMM dd, yyyy">";  //  current date (example format: Monday, January 23, 2011)
$dateshort                  = "<#date format="MMM dd, yyyy">";  //  current date (example format: Jan 23, 2011)</pre>


=== Cumulus 1 specific ===
=== Cumulus 1 specific ===
5,838

edits