1
RJ-45
Admin email variable
  • 2008/3/26 15:18

  • RJ-45

  • Just popping in

  • Posts: 53

  • Since: 2005/1/30


Hi,

There is a smarty variable to the site admin email?

Thanks
My Blog about Xoops: http://blog.eme3design.es

2
RJ-45
Re: Admin email variable
  • 2008/3/28 15:46

  • RJ-45

  • Just popping in

  • Posts: 53

  • Since: 2005/1/30


Nobody knows it? Or it doesn't exist?
My Blog about Xoops: http://blog.eme3design.es

3
Anonymous
Re: Admin email variable
  • 2008/3/28 16:11

  • Anonymous

  • Posts: 0

  • Since:


My guess is its the latter

4
mawi27
Re: Admin email variable
  • 2008/3/28 18:01

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


You get the Admin eMail address in the variable:
$xoopsConfig['adminmail']

To use it with smarty just assign it:
$xoopsTpl->assign('adminmail',$xoopsConfig['adminmail'])


Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

5
RJ-45
Re: Admin email variable
  • 2008/4/9 9:02

  • RJ-45

  • Just popping in

  • Posts: 53

  • Since: 2005/1/30


Thanks

However, I've tried to insert in system_siteclosed.html, but I don't know how to do it exactly

Can you help me?

Thanks again
My Blog about Xoops: http://blog.eme3design.es

6
JulioNC
Re: Admin email variable
  • 2008/4/10 3:44

  • JulioNC

  • Quite a regular

  • Posts: 239

  • Since: 2004/10/8


well, you have to edit XOOPS_ROOT_PATH/include/site-closed.php
Line 42 aprox.

$xoopsTpl->assign( array(
        
'xoops_theme' => $xoopsConfig['theme_set'],
        
'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/',
        
'xoops_themecss'=> xoops_getcss($xoopsConfig['theme_set']),
        
'xoops_requesturi' => htmlspecialchars$_SERVER['REQUEST_URI'], ENT_QUOTES),
        
'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES),
        
'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES),
        
'xoops_dirname' => @$xoopsModule $xoopsModule->getVar'dirname' ) : 'system',
        
'xoops_banner' => $xoopsConfig['banners'] ? xoops_getbanner() : ' ',
        
'xoops_pagetitle' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('name') : htmlspecialchars$xoopsConfig['slogan'], ENT_QUOTES ),
        
'lang_login' => _LOGIN,
        
'lang_username' => _USERNAME,
        
'lang_password' => _PASSWORD,
        
'lang_siteclosemsg' => $xoopsConfig['closesite_text'],

    ) );


change by

$xoopsTpl->assign( array(
        
'xoops_theme' => $xoopsConfig['theme_set'],
        
'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/',
        
'xoops_themecss'=> xoops_getcss($xoopsConfig['theme_set']),
        
'xoops_requesturi' => htmlspecialchars$_SERVER['REQUEST_URI'], ENT_QUOTES),
        
'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES),
        
'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES),
        
'xoops_dirname' => @$xoopsModule $xoopsModule->getVar'dirname' ) : 'system',
        
'xoops_banner' => $xoopsConfig['banners'] ? xoops_getbanner() : ' ',
        
'xoops_pagetitle' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('name') : htmlspecialchars$xoopsConfig['slogan'], ENT_QUOTES ),
        
'lang_login' => _LOGIN,
        
'lang_username' => _USERNAME,
        
'lang_password' => _PASSWORD,
        
'lang_siteclosemsg' => $xoopsConfig['closesite_text'],
        
'xoops_adminmail' => $xoopsConfig['adminmail'],
    ) );



As you can see, add 'xoops_adminmail' => $xoopsConfig['adminmail'],

so You can use <{$adminmail}> in system_siteclosed.html

Login

Who's Online

355 user(s) are online (275 user(s) are browsing Support Forums)


Members: 0


Guests: 355


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits