SMF Shop
SMFShop => Items => Topic started 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?
-
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.
-
Check here (http://"http://www.smfarcade.info/index.php/topic,2627.0.html"). O0
-
Check here (http://"http://www.smfarcade.info/index.php/topic,2627.0.html"). O0
it gave me a duplicate code error after install.
-
Can you post a copy of the error message for me?
-
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
function hasArcadePass()
{
global $db_prefix, $modSettings, $ID_MEMBER;
Sorry I can't be more specific.
-
BTW, it works great so far. Thanks for writing this!
-
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)
-
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
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.