Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 203
Total: 204

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

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal