Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 221
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 211
Total: 212

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

0 Members and 1 Guest are viewing this topic.

Offline rotorsrule

  • Member
  • *
  • 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: 16452
    • 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

  • Member
  • *
  • 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: 16452
    • 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

  • Member
  • *
  • 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
9601 Views
Last post July 05, 2008, 04:53:48 pm
by SMFHacks
1 Replies
4297 Views
Last post June 17, 2009, 10:44:22 am
by SMFHacks
1 Replies
3424 Views
Last post April 12, 2011, 02:08:15 pm
by SMFHacks
2 Replies
4089 Views
Last post May 06, 2011, 06:23:17 am
by sirkiu
2 Replies
1827 Views
Last post May 19, 2019, 11:03:42 pm
by ajac63

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal