Advertisement:

Author Topic: SMFShop- Version 3.2 Now SMF 2.0 Support!  (Read 801280 times)

Offline InfoStrides

  • Full Member
  • ***
  • Posts: 497
  • www.TheInfoStrides.com
    • InfoStrides on Facebook
    • @TheInfoStrides on Twitter
    • TheInfoStrides.com
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2720 on: April 05, 2012, 12:55:14 PM »
That item appears to be an example item doesn't do anything. Basically an example if you want to build custom items.

How do I got about it? Because I added the items.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,648
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2721 on: April 05, 2012, 03:56:06 PM »
There is a coding forum on smfshop.com that talks about coding custom items and has examples
http://smfshop.com/forum/index.php/board,14.0.html?
Community Suite - Take your forum to the next level built for SMF, Gallery,Store,Classfieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - Portal System for SMF
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline InfoStrides

  • Full Member
  • ***
  • Posts: 497
  • www.TheInfoStrides.com
    • InfoStrides on Facebook
    • @TheInfoStrides on Twitter
    • TheInfoStrides.com
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2722 on: April 06, 2012, 12:44:03 AM »
Thanks. I have visited the website but did not answer my issue.

I used send email to Admin feature under Add Items and configure it accordingly. I tested with an account and it indicated success message sent but I did not receive email in the specified email. Do I need to set any other thing?

Offline InfoStrides

  • Full Member
  • ***
  • Posts: 497
  • www.TheInfoStrides.com
    • InfoStrides on Facebook
    • @TheInfoStrides on Twitter
    • TheInfoStrides.com
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2723 on: April 06, 2012, 09:45:10 AM »
Thanks. It is working now.

Offline wynnyelle

  • SMF Hero
  • ******
  • Posts: 2,530
    • Warrior Cats RPG
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2724 on: April 30, 2012, 10:28:14 PM »
Hello! I have this installed on my site, the 2.0 version. There is more than one problem with it; one problem is that we need to change the desctiptions that happen when a player tries to use a custom made item. They all say "This is a test item!" and they don't explain anything so the members all get confused.

Can I go somewhere in the code and put in the descritions for when they click on the item to use it?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,648
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2725 on: April 30, 2012, 10:30:36 PM »
Yes you can change the description inside the item itself

Found in
Sources/items/youritemname.php
Community Suite - Take your forum to the next level built for SMF, Gallery,Store,Classfieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - Portal System for SMF
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Ascot

  • Jr. Member
  • **
  • Posts: 126
  • No soy tan noob!
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2726 on: May 01, 2012, 06:49:10 PM »
can someone help me on adapt this item to smf 2.0.2 ?
i'm having the following error on parsing

Quote
Fatal error: Call to undefined function db_query() in /home/lucas/public_html/forum/Sources/shop/items/AddMemberGroup.php on line 30


here's the item code
Code: [Select]
<?php
//File: AddMembergroup.php
//      Item

//DATE: Mar 07, 2007
//Author Taj

class item_AddMembergroup extends itemTemplate {
    function 
getItemDetails() {
    
$this->authorName "Taj";

$this->authorWeb "http://www.hostadore.com/";

$this->authorEmail "admin@hostadore.com";

        
$this->name "Add Membergroup";
        
$this->desc "Allows you to add yourself to a membergroup!";
        
$this->price 1;

        
$this->require_input false;
        
$this->can_use_item true;
    }

    function 
getAddInput() {
global $db_prefix;

$selectBox '<select name="info1">';

// Get all non post-based membergroups
$result db_query("SELECT ID_GROUP, groupName
FROM 
{$db_prefix}membergroups
WHERE minPosts = -1"
,
__FILE____LINE__);

// For each membergroup, add it to the list
while ($row mysql_fetch_assoc($result)) {
$selectBox .= "<option value='{$row['ID_GROUP']}'>{$row['groupName']}</option>";
}

$selectBox .= "</select>";
        return 
"Membergroup: ".$selectBox;
    }
    

    function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;

$additionalGroups mysql_fetch_array(db_query("SELECT `additionalGroups` FROM {$db_prefix}members WHERE ID_MEMBER = {$ID_MEMBER}"__FILE____LINE__),MYSQL_ASSOC);

if(
$additionalGroups['additionalGroups']) {
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].", ".$item_info[1];
} else {
$additionalGroups['additionalGroups'] = $item_info[1];
}


echo 
$additionalGroups['additionalGroups'];          
        
$result db_query("UPDATE {$db_prefix}members SET additionalGroups = '{$additionalGroups['additionalGroups']}'
         WHERE ID_MEMBER=
{$ID_MEMBER}",__FILE____LINE__);

        return 
"You have joined new membergroup {$item_info[1]}!!";
    }
}
?>

This came from http://smfshop.com/forum/index.php/topic,316.msg3491.html#msg3491

I tried to change table names to right actual ones but i still have the parse error. (do i need to clean my cache or something?)
If you're so kind, can you test it before posting back ?
Thanks in advance.  :)
« Last Edit: May 01, 2012, 07:18:51 PM by Ascot »

Offline Shuban

  • SMF Hero
  • ******
  • Posts: 2,446
    • Free Homework Help
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2727 on: May 01, 2012, 10:40:24 PM »
can someone help me on adapt this item to smf 2.0.2 ?
i'm having the following error on parsing

Quote
Fatal error: Call to undefined function db_query() in /home/lucas/public_html/forum/Sources/shop/items/AddMemberGroup.php on line 30


here's the item code
Code: [Select]
<?php
//File: AddMembergroup.php
//      Item

//DATE: Mar 07, 2007
//Author Taj

class item_AddMembergroup extends itemTemplate {
    function 
getItemDetails() {
    
$this->authorName "Taj";

$this->authorWeb "http://www.hostadore.com/";

$this->authorEmail "admin@hostadore.com";

        
$this->name "Add Membergroup";
        
$this->desc "Allows you to add yourself to a membergroup!";
        
$this->price 1;

        
$this->require_input false;
        
$this->can_use_item true;
    }

    function 
getAddInput() {
global $db_prefix;

$selectBox '<select name="info1">';

// Get all non post-based membergroups
$result db_query("SELECT ID_GROUP, groupName
FROM 
{$db_prefix}membergroups
WHERE minPosts = -1"
,
__FILE____LINE__);

// For each membergroup, add it to the list
while ($row mysql_fetch_assoc($result)) {
$selectBox .= "<option value='{$row['ID_GROUP']}'>{$row['groupName']}</option>";
}

$selectBox .= "</select>";
        return 
"Membergroup: ".$selectBox;
    }
    

    function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;

$additionalGroups mysql_fetch_array(db_query("SELECT `additionalGroups` FROM {$db_prefix}members WHERE ID_MEMBER = {$ID_MEMBER}"__FILE____LINE__),MYSQL_ASSOC);

if(
$additionalGroups['additionalGroups']) {
$additionalGroups['additionalGroups'] = $additionalGroups['additionalGroups'].", ".$item_info[1];
} else {
$additionalGroups['additionalGroups'] = $item_info[1];
}


echo 
$additionalGroups['additionalGroups'];          
        
$result db_query("UPDATE {$db_prefix}members SET additionalGroups = '{$additionalGroups['additionalGroups']}'
         WHERE ID_MEMBER=
{$ID_MEMBER}",__FILE____LINE__);

        return 
"You have joined new membergroup {$item_info[1]}!!";
    }
}
?>

This came from http://smfshop.com/forum/index.php/topic,316.msg3491.html#msg3491

I tried to change table names to right actual ones but i still have the parse error. (do i need to clean my cache or something?)
If you're so kind, can you test it before posting back ?
Thanks in advance.  :)

Doesn't have to do with Cache, you're simply coding it wrong. Not too sure how though.

Offline Ascot

  • Jr. Member
  • **
  • Posts: 126
  • No soy tan noob!
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2728 on: May 02, 2012, 02:06:25 PM »
DONE! tnx
« Last Edit: May 02, 2012, 04:56:59 PM by Ascot »

Offline wynnyelle

  • SMF Hero
  • ******
  • Posts: 2,530
    • Warrior Cats RPG
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2729 on: May 04, 2012, 05:45:09 PM »
Yes you can change the description inside the item itself

Found in
Sources/items/youritemname.php

I went in there and there were no files with any of my items in there. Only stuff we don't use. We created our game items by using the test item as a template. I really need this descriptions changed to fit each one becaue it is telling my membres the item doesnt do anything and they are not understanding it, and they are then getting upset. I am dealing with several upset people a day I have to explain to. Please help.

Offline RoCKeT-88

  • `Creature of the D4rKNeSs`
  • Sr. Member
  • ****
  • Posts: 827
  • Gender: Male
  • RoCKeT 88
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2730 on: May 20, 2012, 01:49:16 AM »
Is there some way to show on stats the top ten currency holders that I am not seeing?  Or could it be so easily?  My users are really into this mod and seeing who's ahead and who's not. 

TYIA~

P.S.  This is such an awesome mod!
Insert Witty Signature Here.

Offline InfoStrides

  • Full Member
  • ***
  • Posts: 497
  • www.TheInfoStrides.com
    • InfoStrides on Facebook
    • @TheInfoStrides on Twitter
    • TheInfoStrides.com
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2731 on: June 02, 2012, 12:22:15 AM »
This mod do not work with post moderation. When a post moderation is set on. Credits are awarded to the posts yet to be approved. Can you help look into this?

Thank you.

Offline SPKuja

  • Semi-Newbie
  • *
  • Posts: 13
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2732 on: June 04, 2012, 10:19:16 AM »
I've installed this mod, and it all installed okay with no errors, but I cannot access the admin panel for it, it hasn't installed any links "On the left" or any where else inside of my admin panel.... Any ideas?

Okay, I have sorted that problem, you acutally have to be set as an Admin to view it not just a user that can use the admin panel...

I now have a different problem. I am trying to use the "EMail and Admin" as an item, which once set up, and used, does not send an e-mail out that I can find! Is there a way to set which e-mail address it comes from, or is there an actual way to make sure it's sending emails out!
« Last Edit: June 04, 2012, 01:44:32 PM by SPKuja »

Offline stormiecub

  • Semi-Newbie
  • *
  • Posts: 47
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2733 on: June 06, 2012, 05:11:49 PM »
Only administrator can access my shop. What do I need to fix this? Any member who doesn't have administrative capabilities can't buy or trade at all, and my forum is heavily reliant on a shop system!

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,648
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2734 on: June 06, 2012, 05:16:03 PM »
Admin -> Permissions -> then modify each group and give them shop permissions
Community Suite - Take your forum to the next level built for SMF, Gallery,Store,Classfieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - Portal System for SMF
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline stormiecub

  • Semi-Newbie
  • *
  • Posts: 47
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2735 on: June 06, 2012, 05:18:40 PM »
Thanks! I had tried to go through the usergroups to do it but that was going around my elbow to get to my ear apparently. Easy. Thanks!

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,648
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2736 on: June 06, 2012, 05:39:45 PM »
Glad to help.
Community Suite - Take your forum to the next level built for SMF, Gallery,Store,Classfieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - Portal System for SMF
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Ascot

  • Jr. Member
  • **
  • Posts: 126
  • No soy tan noob!
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2737 on: June 15, 2012, 04:57:24 PM »
Does links to buy an object works in posts?
this could be dangerous
cause there's no "buy or not?" alert or similar. 
It just buy.

Offline bearstreet

  • Jr. Member
  • **
  • Posts: 112
  • Gender: Male
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2738 on: June 15, 2012, 09:57:13 PM »
is there a subscriptions system that I can integrate with this shop mod where users can buy themselves subscriptions for a particular usergroup,
Like I list membership to a particular usergroup as an item and users can get upgraded to that particular membergroup once they buy that item, I hope I made clear what I want
Dont do drugs, coz if you get caught u will go to prison, and drugs are real expensive in prison
:P

Ask me Maths Questions

Offline Kindred

  • The Mean One
  • Project Manager
  • SMF Master
  • *
  • Posts: 41,517
  • Gender: Male
    • wagner999 on Facebook
    • Kindred-999 on GitHub
    • www.linkedin.com/in/wdwagner/ on LinkedIn
    • @Kindred_999 on Twitter
Re: SMFShop- Version 3.2 Now SMF 2.0 Support!
« Reply #2739 on: June 16, 2012, 08:26:38 AM »
SMF 2.x has joinable and subscription member groups
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.