2010-10-17, 02:50:56
p01 Wrote:How to access various information of GS, such as description, …When a page is loaded to be displayed a variable $metad is created with the description of the page.
Running something like the following function when a page is being loaded should be able to change the description the way you want it.
Code:
function rewriteDescription() {
global $metad;
$metad = preg_replace(); # Strip away your tag here.
}
p01 Wrote:… language or …What language do you want to check? The one used in the admin panel? It is stored in $LANG.
p01 Wrote:email administrator?Probably at $datac->EMAIL. Please note I’ve never used this one so I can’t be sure.
Of course all of the above is only true when other plugins haven’t reused these variables in the global scope.
p01 Wrote:And is it possible to reuse the pretty error message used by GS?Those are all printed by the /admin/template/error_checking.php file. There are too many different ways to get into right now in a reply so I advice you to take a look at what variables might trigger error_checking into working.
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!