- 帖子: 4
- 收到的致谢 0
<?php mosLoadModules ('guestsonly' , -1); ?>
<?php if (!$my->id) {mosLoadModules ('guestsonly' , -1);} ?>
<?php mosLoadModules ( 'user3', -1); if ( !$my->id ) { mosLoadModules ('user9', -1); }?>
// user group things JOOMLA 1.5
// if user is not logged in, show mod 44. If they are logged in show mod 45:
if ($user->usertype == "" || $user->usertype == "Public Frontend") return 44; else return 45;
// if user is not logged in, show mod 44. If they are logged in show nothing at all:
if ($user->usertype == "" || $user->usertype == "Public Frontend") return 44; else return;
// if user IS logged in, show module 45, else show nothing at all:
if ($user->usertype != "" && $user->usertype != "Public Frontend") return 44; else return;
if ($user->usertype == "User") return 46; // a plain registered user, no additional privileges
if ($user->usertype == "Publisher") return 47; // show a notice for users with "Publisher" privileges
// user group things JOOMLA 1.0.x
// if user is not logged in, show mod 44. If they are logged in show mod 45:
if ($my->usertype == "" || $my->usertype == "Public Frontend") return 44; else return 45;
// if user is not logged in, show mod 44. If they are logged in show nothing at all:
if ($my->usertype == "" || $my->usertype == "Public Frontend") return 44; else return;
// if user IS logged in, show module 45, else show nothing at all:
if ($my->usertype != "" && $my->usertype != "Public Frontend") return 44; else return;
if ($my->usertype == "User") return 46; // a plain registered user, no additional privileges
if ($my->usertype == "Publisher") return 47; // show a notice for users with "Publisher" privileges