Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12414
Latest: danilubrin
New This Month: 4
New This Week: 3
New Today: 0
Stats
Total Posts: 39956
Total Topics: 7034
Most Online Today: 42
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 34
Total: 34

Author Topic: Different Listing/Auction options needed!  (Read 4676 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: 14982
    • 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: 14982
    • 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
7563 Views
Last post July 05, 2008, 04:53:48 pm
by SMFHacks
1 Replies
2577 Views
Last post June 17, 2009, 10:44:22 am
by SMFHacks
1 Replies
1824 Views
Last post April 12, 2011, 02:08:15 pm
by SMFHacks
2 Replies
2247 Views
Last post May 06, 2011, 06:23:17 am
by sirkiu
2 Replies
241 Views
Last post May 19, 2019, 11:03:42 pm
by ajac63

+- Recent Topics

hashTags only used by admins, but visible to everyone? by Dwev
Today at 07:59:19 am

Install ad seller pro problem. by SMFHacks
December 13, 2019, 05:56:56 am

Contact Page Problem by emmebroke
December 11, 2019, 04:19:25 pm

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

Powered by EzPortal