Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12376
Latest: Printablecalendars
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 40220
Total Topics: 7084
Most Online Today: 91
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 64
Total: 64

Author Topic: Classifieds v2.0 how to disable add auction menu  (Read 1663 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: 15109
    • 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
2646 Views
Last post June 17, 2009, 10:44:22 am
by SMFHacks
0 Replies
1769 Views
Last post January 03, 2011, 10:59:31 pm
by G1
1 Replies
1995 Views
Last post April 12, 2011, 02:08:15 pm
by SMFHacks
1 Replies
2161 Views
Last post April 15, 2011, 02:31:43 pm
by SMFHacks
2 Replies
370 Views
Last post May 19, 2019, 11:03:42 pm
by ajac63

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal