2010-10-18, 06:15:44
p01 Wrote:Did you use the global word? If you don’t your function wont be able to access a variable in the global scope.Zegnåt Wrote: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.
}
I don't understand this $metad var... I can change it :
Code:$metad = 'something';
But i can't recuperate its value like :
So impossible to preg_replace. Weird.Code:echo $metad;
$metad = 'TEST' . $metad;
p01 Wrote:Please try $datac->EMAIL first. Every getXML you use in your plugins will slow down the website and $datac should already have user.xml in it.Zegnåt Wrote:Probably at $datac->EMAIL. Please note I’ve never used this one so I can’t be sure.Thanks. The email is stored in user.xml file, so i retrieved this way :
Code:$userdata = getXML(GSDATAOTHERPATH . 'user.xml');
$userdata->EMAIL;
“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!