Gossamer Forum
Home : Products : DBMan : Customization :

Change 'ADD' to 'BUY MORE'

Quote Reply
Change 'ADD' to 'BUY MORE'
Hi All,

I am working on a new project and have successfully added the following:

# Multiple records per user
# Limit total number of records a user can add
# Add a record at the time of signup
# To be used *with* the password lookup mod
# To be used with the *user-friendly* html.pl file

Anyway, my questions is, how do I get the 'Add' link to change to a 'Buy Now' link. So that when a user has used the allocated number of records they can buy more, if you know what I mean...

And how do I setup up the account signup so that the new user is given three options to the type of account they want i.e. Account Type 1 - 1 record, Type 2 - 3 records and Type 3 - 5 records (ideally multiple of 5)

Many thanks
Quote Reply
Part Fixed In reply to
Hi

I have managed to setup DBMan so that a new user can be allocated 1,3 or 5 records per account depending on the account they choose - Solo, Duo or Agency.

I used JPDeni's :-

# Limit the number of records a user can add
# Multiple records per user
# Limit total number of records

Created three .cfg named solo, duo, agency just changing:-

# Permissions a new signup should get.
@auth_signup_permissions = (1,5,1,1,0);

To suit each type of account... 1,3 and 5 respectively.

In the Mods it automatically turns of the 'ADD' function one the record limit has been reached. Surely, using the same method a 'BUY MORE RECORD' link could be activated once all records had run out.

I'm sure this is easy, but I am new to this so any help would be great...

Many thanks

Smile