Author Topic: Pay to access Arcade?  (Read 7990 times)

Offline Illusion

Pay to access Arcade?
« 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?

Offline chougard

Re: Pay to access Arcade?
« Reply #1 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.

Offline trecool999

Re: Pay to access Arcade?
« Reply #2 on: March 10, 2007, 04:32:09 am »
Check here. O0

Offline Lew_Cipher

Re: Pay to access Arcade?
« Reply #3 on: March 15, 2007, 03:36:21 pm »
Check here. O0

it gave me  a duplicate code error after install.


Offline Hambil

Re: Pay to access Arcade?
« Reply #4 on: March 15, 2007, 03:46:53 pm »
Can you post a copy of the error message for me?

Offline Lew_Cipher

Re: Pay to access Arcade?
« Reply #5 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.


Offline Lew_Cipher

Re: Pay to access Arcade?
« Reply #6 on: March 15, 2007, 04:32:14 pm »
BTW, it works great so far. Thanks for writing this!

Offline Hambil

Re: Pay to access Arcade?
« Reply #7 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

Offline Lew_Cipher

Re: Pay to access Arcade?
« Reply #8 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.