Limit listing

This is a discussion on Limit listing within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; Hey how can restrict to enter only one listing for users?...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Questions & Support

 
LinkBack Thread Tools Display Modes
  #1  
Old 12-11-2008, 08:35 AM
Member
 
Join Date: Apr 2006
Posts: 80
Rep Power: 13
Default Limit listing

Hey
how can restrict to enter only one listing for users?

Reply With Quote
  #2  
Old 12-11-2008, 09:27 AM
Moderator
 
Join Date: Mar 2006
Posts: 3,772
Rep Power: 92
Default

Can you be a little more specific? For example are you looking to make it so that a registered site user can only have one active listing at a time?

If so then what you would probably needto do is edit the checkout procedure and add a database query that gets the currently logged in user ID and checks the database to see if there are any active ads and if so send some data to the template letting the ustomer know they already have an ad and are only allowed one at a time.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #3  
Old 12-11-2008, 10:12 AM
Member
 
Join Date: Apr 2006
Posts: 80
Rep Power: 13
Default

I have the need for an already registered user can insert a single ad
Reply With Quote
  #4  
Old 12-11-2008, 01:01 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,772
Rep Power: 92
Default

Quote:
Originally Posted by gppromano View Post
I have the need for an already registered user can insert a single ad
Then the basic rundown of what you need to do I covered in my post above. Of course would have to edit the script files for this to work but since you didnt say exactly what version of 68C your using and if its the designer or developer edition along with what template your using its hard to say if you can even do it.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #5  
Old 12-11-2008, 01:39 PM
Member
 
Join Date: Apr 2006
Posts: 80
Rep Power: 13
Default

Hey,
the version is 3.1.10 developer
Reply With Quote
  #6  
Old 12-11-2008, 01:51 PM
Moderator
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,059
Rep Power: 33
Default

I'm not really understanding what your goal is by limiting a user to only one ad, but to each his own.

If it were me, I'd be looking at the usercheckout.php file around line 29 where it has:
PHP Code:
if(isset($_SESSION['uid']))
   {
      
$userid=(int)$_SESSION['uid'];
   } 
I would put some type of $sSQL there to check if they have an existing ad. If they do then put a statement there explaining and then redirecting them back to the home page, then an "else" statement that continues on in the code that is there.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1RC2
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit # of free ads SkGold v3.1 Questions & Support 0 12-18-2007 02:26 AM
Limit announcement fo gppromano v3.1 Modules & Modifications 4 09-20-2007 10:38 AM
Limit the # of times listing can be Modified garysr v3.1 Questions & Support 11 06-20-2007 01:46 PM
Limit the number of "New Listing" displays (re-visited) brw9532 v3.1 Modules & Modifications 8 05-12-2007 10:10 PM
external.php 15 limit CB v3.1 Questions & Support 3 10-30-2006 01:10 PM


All times are GMT -4. The time now is 09:50 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21