Php webtags: Difference between revisions

320 bytes added ,  19:42, 20 April 2020
m
Line 109: Line 109:
These templates have not been influenced by the original template, but instead have tried to cover every web tag available at the time the template was written, and each author has made their own independent decision about what parameters to use.
These templates have not been influenced by the original template, but instead have tried to cover every web tag available at the time the template was written, and each author has made their own independent decision about what parameters to use.


*An alternative simpler template, written from scratch by Brandon using all web tags available in November 2014 with Cumulus 1, all very nicely laid out, grouped similar to how they appear on the web tags wiki page. Because Brandon has not used using any output parameters, none of his Recent History PHP variables actually contain anything but rubbish. It was specifically for anyone using a Davis as it was the first version that contains storm rain. It can be downloaded in [https://cumulus.hosiene.co.uk/viewtopic.php?f=6&t=10424#p99549 this storm rain topic].
*The simplest template of all, essentially reproduces the tables on the [[Webtags|web tags wiki page]], so it is very nicely laid out. It was written from scratch by Brandon using all web tags available in November 2014 with Cumulus 1, although MX beta was available then, he has not identified the tags not available in MX at that time. Because Brandon has not used using any output parameters, it will work with Cumulus 1 and MX, but as it is also without any input parameters none of his Recent History PHP variables actually contain anything but rubbish. It can be downloaded in [https://cumulus.hosiene.co.uk/viewtopic.php?f=6&t=10424#p99549 this storm rain topic].
* Another simple template called ''CUtags.txt'' produced by BCJKiwi that works with both Cumulus 1 and MX is at [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&t=17985&p=140688#p140688 this post of mine in a zip], this one does not contain any web tags that are only available in MX, nor does it contain any that require output parameters. The PHP variable names match the web tag names, but some of those PHP variables are set to "not used", instead of to the web tag contents, because this template file is designed for a specific set of web pages.
* Another simple template, but this one includes far fewer web tags, is called ''CUtags.txt'', it was produced by BCJKiwi as a single template file able to work with both Cumulus 1 and MX. It can be downloaded as part of his [[CumulusMX_and_Cumulus1_UI_style_Multilingual_Websites|package]] or separately at [https://cumulus.hosiene.co.uk/viewtopic.php?f=40&t=17985&p=140688#p140688 this post of mine in a zip], this one does not contain any web tags that are only available in MX, nor does it contain any web tags that require input or output parameters. The PHP variable names match the web tag names, but some of those PHP variables are set to "not used", instead of to the web tag contents, because this template file is designed for a specific set of web pages.
*Another approach is to create an array '''$WX''' that holds a sub-set of Cumulus web tags, choosing some parameter combinations to implement:  
*Another approach is to create an array '''$WX''' that holds a sub-set of Cumulus web tags, choosing some parameter combinations to implement:  
**Using this array your customised pages would replace any reference to a Cumulus web tag <tt><#xxyyzz optional_parameter></tt> by a PHP array element '''$WX[xxyyzz]'''''[optional_additional_selector]''  
**Using this array your customised pages would replace any reference to a Cumulus web tag <tt><#xxyyzz optional_parameter></tt> by a PHP array element '''$WX[xxyyzz]'''''[optional_additional_selector]''  
5,838

edits