Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12411
Latest: PabloWatts
New This Month: 1
New This Week: 1
New Today: 0
Stats
Total Posts: 39948
Total Topics: 7033
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 47
Total: 47

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

+- Recent Topics

hashTags only used by admins, but visible to everyone? by SMFHacks
December 04, 2019, 11:08:35 am

Responsive Layout by Matthias
November 30, 2019, 03:05:57 pm

Secure connection failed Pretty Url Pro by Rock Lee
November 26, 2019, 10:44:23 am

Black Friday Sale Week 2019 by SMFHacks
November 23, 2019, 04:47:56 pm

German Translation missing in SMF 2.1R1 by SMFHacks
November 19, 2019, 02:38:42 pm

Unread items issue by SMFHacks
November 19, 2019, 10:07:32 am

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

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

Powered by EzPortal