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
Next revision Both sides next revision
plugins:tips [2013/02/19 16:16]
n00dles101
plugins:tips [2014/02/07 10:04]
datiswous [Determining the GetSimple Version]
Line 7: Line 7:
 Determining the GetSimple version is not as straight forward as it could be, as the only available function in 2.03 - return_site_ver() - outputs the version in 2.03 and returns it in 3.0b (deprecated here). The easiest way to find out, if a plugin is installed on GetSimple 2.03 or 3.0+ seems to be  Determining the GetSimple version is not as straight forward as it could be, as the only available function in 2.03 - return_site_ver() - outputs the version in 2.03 and returns it in 3.0b (deprecated here). The easiest way to find out, if a plugin is installed on GetSimple 2.03 or 3.0+ seems to be 
  
-<​code>​+<​code ​php>
 $isV3 = function_exists('​get_site_version'​);​ $isV3 = function_exists('​get_site_version'​);​
 </​code>​ </​code>​
Line 13: Line 13:
 The probably most correct one is (only use within function, in order not to pollute the global name space!) The probably most correct one is (only use within function, in order not to pollute the global name space!)
  
-<​code>​+<​code ​php>
 include(GSADMININCPATH.'​configuration.php'​);​ include(GSADMININCPATH.'​configuration.php'​);​
 $version = GSVERSION; $version = GSVERSION;
plugins/tips.txt ยท Last modified: 2014/02/07 10:07 by datiswous