Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12401
Latest: xyiguran
New This Month: 7
New This Week: 2
New Today: 2
Stats
Total Posts: 39914
Total Topics: 7026
Most Online Today: 58
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 40
Total: 40

Author Topic: Different Listing/Auction options needed!  (Read 4664 times)

0 Members and 1 Guest are viewing this topic.

Offline rotorsrule

  • Newbie
  • *
  • Posts: 7
    • View Profile
Different Listing/Auction options needed!
« on: October 10, 2007, 02:58:58 am »
Right now we have the options of "can have auction listings", which if left unchecked leaves only the "Add listing" link in any category. We also have a "Only auction Listings", which hides the "Add listing" and leaves the "Add auction" link. But it seems is if it is only one or the other..

Several things would be greatly improved if the options were changed... Have the options of "allow listing" and "allow auctions." This way when you create sub-categories you can turn of the option of having users to be able to post anything in the parent category and only in the sub-categories. (Many users wont post listings/auctions in the correct place, and moving them isn't an easy option, and shouldn't have to be done due to users...stupidity..)

For example;

Currently

Fruits <users can post
        Apples <users can post
        Oranges <users can post

If modified

Fruits < users CANNOT post
        Apples <users can post
        Oranges <users can post

I'm just learning PHP and starting to understand how SMF and Classifieds is designed, but it seems fairly simple. Looks like most of the code that needs changing would be around line 74 in classifieds.template.php

echo '<table align="center" width="90%" class="tborder">
         <tr class="windowbg">
         <td>
         ';
         
         if ($context['class_only_auction'])
         {
            echo '<a href="', $scripturl, '?action=classifieds;sa=addauction;cat=', $cat ,'">',$txt['class_text_addauction'],'</a>';
         }
         else
         {
            echo '<a href="', $scripturl, '?action=classifieds;sa=addlisting;cat=', $cat ,'">',$txt['class_text_addlisting'],'</a>';
            
            // Check if the category allows auctions
            if ($context['can_auction'])
               echo '&nbsp;<a href="', $scripturl, '?action=classifieds;sa=addauction;cat=', $cat ,'">',$txt['class_text_addauction'],'</a>';
            
         }
      
         echo '
         </td>
         </tr>
         </table>
         <br />';

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: Different Listing/Auction options needed!
« Reply #1 on: October 10, 2007, 07:21:25 am »
If you check "Can have auction listings" this includes both add listing and add auction.

If you check "Only auction Listings"  this just leaves Add Auction

If you do not check "Can have auction listings"  leaves just Add Listing
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 rotorsrule

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Different Listing/Auction options needed!
« Reply #2 on: October 10, 2007, 08:20:39 am »
I know...the whole point was to remove both..

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: Different Listing/Auction options needed!
« Reply #3 on: October 10, 2007, 08:02:16 pm »
What would if you remove both?
Like what could the user do or post?
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 rotorsrule

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Different Listing/Auction options needed!
« Reply #4 on: October 10, 2007, 11:53:29 pm »
Exactly, I would like to have the option of users NOT being able to post in the Parent category and only in the Sub Categories..

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
7535 Views
Last post July 05, 2008, 04:53:48 pm
by SMFHacks
1 Replies
2568 Views
Last post June 17, 2009, 10:44:22 am
by SMFHacks
1 Replies
1795 Views
Last post April 12, 2011, 02:08:15 pm
by SMFHacks
2 Replies
2219 Views
Last post May 06, 2011, 06:23:17 am
by sirkiu
2 Replies
217 Views
Last post May 19, 2019, 11:03:42 pm
by ajac63

+- Recent Topics

PHP error by SMFHacks
November 11, 2019, 03:55:24 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