$xoopsUser->getGroups()
global $xoopsUser;
foreach ($xoopsUser->getGroups() as $group) {
if (in_array(1, $group) //or whatever the groupid is
//display content
else
//redirect to user.php
}
bozzy wrote:
Your code gives me parse errors, something about expecting a , or ; on line 442 or something. And what's with those weird symbols?
Weddings Graduations Proms Parties Portfolios Portraiture Landscaping Corporate |
tag and none of them worked. The code by works just fine in a browser by itself but when I add it to my module the formatting is off. The width of the table is also conforming to the 100% specified in the style sheet for the default table settings instead of the 449 that is specified in the tag. When I alter the stylesheet for the default table in the style.css file to match what I want, it works but it also affects all the other tables. So what i am trying to do is to have taht one section be customized the way i ant it separate from the stylesheet and I m having a hard time getting that accomplished since the tag codes are not overriding the stylesheet. If you need any more information let me know
292330
Finaly I figured out where the site name of the titleline was inserted into the site. Just as with the Slogan, it's in the header.php file.
The title line is divided into two parts: The first part is the site name, set using the admin->preferances->general settings form. The second part is a slogan which changes for each module you enter - and for the startpage is is set in same place as the site name. In a previous posting in this thread, I explained the four placed I changed to change the slogan. I at the time that two of the four changes would cover the site name and the other two would cover the slogan - not so! In order to change the site name, I replaced the following line $xoopsTpl->assign(array('xoops_theme' => $xoopsConfig['theme_set'], 'xoops_imageurl' => XOOPS_URL.'/themes/'.$xoopsConfig['theme_set'].'/', 'xoops_themecss'=> xoops_getcss($xoopsConfig['theme_set']), 'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES), 'xoops_sitename' => $xoopsConfig['sitename'], 'xoops_slogan' => $xoopsConfig['slogan'])); ...with the following lines $myts =& MyTextSanitizer::getInstance(); and voila, the browsertitle is multilangual. (Phew - finally I found it LoginSearchRecent PostsWho's OnlineDonat-O-MeterLatest GitHub Commits |