Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
#37
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!
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-17, 02:50:56



Users browsing this thread: 4 Guest(s)