Some of them work in the mail manager, because they are defined there, in /class/xoopsmailer.php
le="color: #000000"><?php foreach ($this->toUsers as $user) { // set some user specific variables $subject = str_replace('{X_UNAME}', $user->getVar('uname'), $this->subject); $text = str_replace('{X_UID}', $user->getVar('uid'), $this->body); $text = str_replace('{X_UEMAIL}', $user->getVar('email'), $text); $text = str_replace('{X_UNAME}', $user->getVar('uname'), $text); $text = str_replace('{X_UACTLINK}', XOOPS_URL . '/register.php?op=actv&id=' . $user->getVar('uid') . '&actkey=' . $user->getVar('actkey'), $text);
You can also define them yourself in your module, as it was done, for example in SmartObject :
le="color: #000000"><?php public static function sanitizeForCommonTags($text) { global $xoopsConfig; $text = str_replace('{X_SITENAME}', $xoopsConfig['sitename'], $text); $text = str_replace('{X_ADMINMAIL}', $xoopsConfig['adminmail'], $text); return $text; }
or in tdmspot:
le="color: #000000"><?php $body = str_replace('{X_NAME}', $user_name, $body); $body = str_replace('{X_UNAME}', $user_uname, $body); $body = str_replace('{X_UEMAIL}', $user_email, $body); $body = str_replace('{X_ADMINMAIL}', $xoopsConfig['adminmail'], $body); $body = str_replace('{X_SITENAME}', $xoopsConfig['sitename'], $body); $body = str_replace('{X_SITEURL}', XOOPS_URL, $body); $tpitem['text'] = $body; $meta_keywords .= $body; $meta_description .= $body;
Just search in all you modules for "{X_" and you'll find many examples of how it is done.