Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12404
Latest: azaratir
New This Month: 10
New This Week: 5
New Today: 1
Stats
Total Posts: 39920
Total Topics: 7027
Most Online Today: 187
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 52
Total: 52

Author Topic: Classifieds v2.0 how to disable add auction menu  (Read 1581 times)

0 Members and 1 Guest are viewing this topic.

Offline cosmicx

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Baguio Ads | Baguio City Online Classifieds Ads
Classifieds v2.0 how to disable add auction menu
« on: August 15, 2011, 11:26:56 pm »
any how-to's?

i want to disable/remove the add auction menu.
« Last Edit: August 15, 2011, 11:28:33 pm by cosmicx »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14967
    • View Profile
Re: Classifieds v2.0 how to disable add auction menu
« Reply #1 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,
);

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline cosmicx

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Baguio Ads | Baguio City Online Classifieds Ads
Re: Classifieds v2.0 how to disable add auction menu
« Reply #2 on: August 16, 2011, 01:14:52 am »
thank you very much... it worked well.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
2569 Views
Last post June 17, 2009, 10:44:22 am
by SMFHacks
0 Replies
1662 Views
Last post January 03, 2011, 10:59:31 pm
by G1
1 Replies
1799 Views
Last post April 12, 2011, 02:08:15 pm
by SMFHacks
1 Replies
2057 Views
Last post April 15, 2011, 02:31:43 pm
by SMFHacks
2 Replies
225 Views
Last post May 19, 2019, 11:03:42 pm
by ajac63

+- Recent Topics

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

How to space icons and multiple reacts? by shadav
October 03, 2019, 04:20:07 pm

Powered by EzPortal