1
Fragrate
getting rid of the...
  • 2005/5/25 22:07

  • Fragrate

  • Just popping in

  • Posts: 21

  • Since: 2005/5/20


i'm using smart faq for a tutorials section, is there a way to get rid of those submit links that popup under the tutorials link?
Resized Image

2
pegasus00321
Re: getting rid of the...

Go to the xoops_version.php in the modules/smartfaq folder.
Delete these lines or comment them out

if (isset($xoopsModule) && is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $modversion['dirname']) {
    
    global 
$xoopsModuleConfig$xoopsUser;
    
    
$isAdmin false;
    if (!empty(
$xoopsUser) && is_object($xoopsModule)) {
        
$isAdmin = ($xoopsUser->isAdmin($xoopsModule->getVar('mid')));
    }
    
    if (
$smartModule =& $xoopsModule) {
        
$smartConfig =& $xoopsModuleConfig;
        
// Add the Submit new faq button
        
if ($isAdmin || (isset($smartConfig['allowsubmit']) && $smartConfig['allowsubmit'] == && (is_object($xoopsUser) || (isset($smartConfig['anonpost']) && $smartConfig['anonpost'] == 1)))) {
            
$modversion['sub'][1]['name'] = _MI_SF_SUB_SMNAME1;
            
$modversion['sub'][1]['url'] = "submit.php?op=add";
        }
        
// Add the Request new faq
        
if ($isAdmin || (isset($smartConfig['allowrequest']) && $smartConfig['allowrequest'] == && (is_object($xoopsUser) || (isset($smartConfig['anonpost']) && $smartConfig['anonpost'] == 1)))) {
            
$modversion['sub'][2]['name'] = _MI_SF_SUB_SMNAME2;
            
$modversion['sub'][2]['url'] = "request.php?op=add";
        }
        
        include_once 
XOOPS_ROOT_PATH "/modules/smartfaq/include/functions.php";
        
        
// Creating the FAQ handler object
        
$faq_handler =& sf_gethandler('faq');
        
        if (
$faq_handler->getFaqsCount(-1,  _SF_STATUS_OPENED) > 0) {
            
$modversion['sub'][3]['name'] = _MI_SF_SUB_SMNAME3;
            
$modversion['sub'][3]['url'] = "open_index.php";
        }
    }
    
}

3
Fragrate
Re: getting rid of the...
  • 2005/5/26 1:17

  • Fragrate

  • Just popping in

  • Posts: 21

  • Since: 2005/5/20


thank you so much!

Login

Who's Online

179 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

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

Latest GitHub Commits