SMFHacks.com
SMF Classifieds => Support => Topic started by: cosmicx on August 15, 2011, 11:26:56 pm
-
any how-to's?
i want to disable/remove the add auction menu.
-
Open Sources/Classified2.php this will remove the top level menu for add auction/listings
Around line 7172
Find and remove
// Are there listing categories
if ($listing != 0)
$context['classifieds']['buttons']['selectaddlisting'] = array(
'text' => 'class_text_addlisting',
'url' => $scripturl . '?action=classifieds;sa=selectcat;type=listing' . $catExtra,
'lang' => true,
);
// Are there auction categorys
if ($auction != 0)
$context['classifieds']['buttons']['selectaddauction'] = array(
'text' => 'class_text_addauction',
'url' => $scripturl . '?action=classifieds;sa=selectcat;type=auction' . $catExtra,
'lang' => true,
);
-
thank you very much... it worked well.