SMFHacks.com

SMF Classifieds => Support => Topic started by: cosmicx on August 15, 2011, 11:26:56 pm

Title: Classifieds v2.0 how to disable add auction menu
Post by: cosmicx on August 15, 2011, 11:26:56 pm
any how-to's?

i want to disable/remove the add auction menu.
Title: Re: Classifieds v2.0 how to disable add auction menu
Post by: SMFHacks on August 15, 2011, 11:45:38 pm
Open Sources/Classified2.php this will remove the top level menu for add auction/listings

Around line 7172
Find and remove
Code: [Select]

// 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,
);

Title: Re: Classifieds v2.0 how to disable add auction menu
Post by: cosmicx on August 16, 2011, 01:14:52 am
thank you very much... it worked well.