Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

[NEED HELP WITH] Shops1.4 Plugin
#1

Hi ,

I wanted to know few things

1) Can There be a Attachment or a Download Link which the User Purchases?

2) Can the Default "MyBB Engine" User in the PM change to some other Username like the Administrator??

#2

1) No.
2) Yes, please do a bit of course, it's been posted here.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#3

(04-01-2012, 06:38 AM)Pirata Nervo Wrote: 1) No.
2) Yes, please do a bit of course, it's been posted here.

Thanks...

Fixed it...It was your reply from
http://forums.mybb-plugins.com/Thread-Re...7#pid49147


Another question now...

1) How do i restrict a User to purchase a Item only once..
Example..Say he has already taken a item...and i dont want him to buy it again...
#4

It can't be done.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#5

(04-01-2012, 11:30 PM)Pirata Nervo Wrote: It can't be done.

Cant it be done by adding some Condition and checking the Quantity of the item the user already has??
#6

(04-03-2012, 12:38 AM)bzforum Wrote:
(04-01-2012, 11:30 PM)Pirata Nervo Wrote: It can't be done.

Cant it be done by adding some Condition and checking the Quantity of the item the user already has??

Yes, but you need to edit plugin code.
#7

(04-03-2012, 10:14 PM)mikiii18 Wrote:
(04-03-2012, 12:38 AM)bzforum Wrote:
(04-01-2012, 11:30 PM)Pirata Nervo Wrote: It can't be done.

Cant it be done by adding some Condition and checking the Quantity of the item the user already has??

Yes, but you need to edit plugin code.

Ill try and post a solution here if i come up with it...Smile
#8

Do this edit for it to work.

Open newpoints_shop.php and find:
PHP Code:
                    if (!$myitems)
                        
$myitems = array(); 

And add after:
PHP Code:
                    if(in_array($item['iid'], $myitems))
                    {
                        
error_no_permission();
                    } 

So it now looks like this:
PHP Code:
                    if (!$myitems)
                        
$myitems = array();
                    if(
in_array($item['iid'], $myitems))
                    {
                        
error("You can only buy up to one item of the same kind.");
                    } 

Take into consideration that even with this file edit, users can still have many of the same items if another user sends them the item.
Support PM's will be ignored. Exclamation
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread




Users browsing this thread: 1 Guest(s)