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?...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hey
how can restrict to enter only one listing for users? |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
I have the need for an already registered user can insert a single ad
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
Hey,
the version is 3.1.10 developer |
|
#6
|
||||
|
||||
|
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:
-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 |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |