Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
#39
p01 Wrote:
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 :
Code:
echo $metad;
$metad = 'TEST' . $metad;
So impossible to preg_replace. Weird.
Did you use the global word? If you don’t your function wont be able to access a variable in the global scope.

p01 Wrote:
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;
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.
“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!
Reply


Messages In This Thread
askcopy syntax Not Working - by celextel - 2019-05-24, 01:54:40
RE: askcopy syntax Not Working - by celextel - 2019-05-28, 01:51:47
p01-contact : simply add contact forms in your pages - by Zegnåt - 2010-10-18, 06:15:44



Users browsing this thread: 2 Guest(s)