SMF Shop

SMFShop => Items => Topic started by: Illusion on December 20, 2006, 12:34:53 am

Title: Pay to access Arcade?
Post by: Illusion on December 20, 2006, 12:34:53 am
Is there someway to make an item where once you pay for it, you can have access to the SMF arcade?
Title: Re: Pay to access Arcade?
Post by: chougard on December 20, 2006, 05:46:43 am
Really easy do to. Make a member group that has permissions to play in the arcade. Then use the item at http://www.daniel15.com/forum/index.php/topic,369.0.html
to let them buy their self into the member group.
Title: Re: Pay to access Arcade?
Post by: trecool999 on March 10, 2007, 04:32:09 am
Check here (http://"http://www.smfarcade.info/index.php/topic,2627.0.html"). O0
Title: Re: Pay to access Arcade?
Post by: Lew_Cipher on March 15, 2007, 03:36:21 pm
Check here (http://"http://www.smfarcade.info/index.php/topic,2627.0.html"). O0

it gave me  a duplicate code error after install.

Title: Re: Pay to access Arcade?
Post by: Hambil on March 15, 2007, 03:46:53 pm
Can you post a copy of the error message for me?
Title: Re: Pay to access Arcade?
Post by: Lew_Cipher on March 15, 2007, 04:31:12 pm
Can you post a copy of the error message for me?

It's gone. It was dupe code for the acees check in 2 files. One was at line 692 (?) and the other was 990, I think. I removed the code block from Subs.Arcade.php & everything seems to work fine.

the offending code is

Code: [Select]
function hasArcadePass()
{
global $db_prefix, $modSettings, $ID_MEMBER;

Sorry I can't be more specific.

Title: Re: Pay to access Arcade?
Post by: Lew_Cipher on March 15, 2007, 04:32:14 pm
BTW, it works great so far. Thanks for writing this!
Title: Re: Pay to access Arcade?
Post by: Hambil on March 15, 2007, 04:52:58 pm
Thanks, glad it's working :) And you're welcome.

BTW: the link in the post by trecool999 is hosed, so here it is fixed up:

Arcade Pass Item (http://www.smfarcade.info/index.php/topic,2627.0.html)
Title: Re: Pay to access Arcade?
Post by: Lew_Cipher on March 15, 2007, 11:27:42 pm
Can you post a copy of the error message for me?

It's gone. It was dupe code for the acees check in 2 files. One was at line 692 (?) and the other was 990, I think. I removed the code block from Subs.Arcade.php & everything seems to work fine.

the offending code is

Code: [Select]
function hasArcadePass()
{
global $db_prefix, $modSettings, $ID_MEMBER;

Sorry I can't be more specific.



I just noticed that it put 2 instances of the "Arcade Settings" in my Shop settings page.