Advertisement:

Author Topic: SMFShop - Shop MOD  (Read 1182912 times)

Offline Koper

  • Newbie
  • *
  • Posts: 7
Re: SMFShop - Shop MOD
« Reply #3140 on: November 02, 2018, 10:51:22 AM »
Hello. I would like to enter the paid nickname colors for virtual currency.
How do you make such modifications? I am asking for help

Offline Cathal

  • Semi-Newbie
  • *
  • Posts: 40
Re: SMFShop - Shop MOD
« Reply #3141 on: November 07, 2018, 06:24:43 PM »
I am using the Comet theme and trying to follow the instructions for manually modifying themes but nothing matches
e.g.  looking for
Quote
                        // Show how many posts they have made.
                        echo '
                                                                ', $txt[26], ': ', $message['member']['posts'], '<br />
                                                                <br />';

$txt[26] doesn't exist in that file???

Now I understand every theme is gonna have it's quirks but is anyone else using this theme and the shop addon that can maybe give some pointers?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,188
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop - Shop MOD
« Reply #3142 on: November 07, 2018, 07:15:31 PM »
That's for SMF 1.1.x
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline overdue

  • Semi-Newbie
  • *
  • Posts: 44
Re: SMFShop - Shop MOD
« Reply #3143 on: January 06, 2019, 06:46:18 PM »
How do I get bought items to show up on my profile and profile in posts?
2.0.15; default theme - curve.

Offline overdue

  • Semi-Newbie
  • *
  • Posts: 44
Re: SMFShop - Shop MOD
« Reply #3144 on: January 13, 2019, 12:29:36 PM »
Why was the display inventory on posts removed from this new version? That is so dumb and kind of defeats the purpose of having a shop.

I've installed both SA Shop and SMFShop on two different installs of smf and while SA is older and probably less secure it still does more than SMFShop.

Example:

SA Shop Display.template.php
Code: [Select]
         // Begin shop Mod
         echo '
                  <li>', $modSettings['shopprefix'], $message['member']['cash'], $modSettings['shopsurfix'], ' </li>';
         echo'<li><a href="', $scripturl, '?action=shop;sa=inventory;next2=', $message['member']['username'], '">',$txt['View_Inventory'],'</a></li>
         <li><a href="', $scripturl, '?action=shop;sa=gift;u=', $message['member']['username'], '">Send '.$modSettings['shopsurfix'].'/Gift </a></li>';
          echo '<li>';
      if ($modSettings['ShopIpDis'] == 1 && $modSettings['ShopIpPos'] == 0)
      {
         if (count($message['member']['shopitems']) != 0)
         {   
            foreach ($message['member']['shopitems'] as $shopitem)
            {
            echo '<img src="',$settings['images_url'], '/shopimg/item_images/',$shopitem['image'],' " alt ="',$shopitem['desc'],'" />&nbsp;&nbsp;';
            }
           
         }
      }
echo '</li>';
         // End shop Mod 


SMFShop  Display.template.php   
Code: [Select]
   

 // Begin SMFShop 2.3 (Build 11) code
         echo '
                  <li>', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '</li>
                  <li><a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">', $txt['shop_display_view_inventory'], '</a></li>
                  <li><a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">', $txt['shop_display_send_money'], ' ', $message['member']['name'], '</a></li>';
         //END SMFShop code

SMFShop doesn't display the items. I tried to take the SA Shop coding and use it on SMFShop but it didn't work to show the items. I don't understand why this feature was left out of the updated mod?

I'd also like to know why SMFShop only allows one size of image as the shop items while SA Shop let's you post different sizes. Very frustrating when you post pixel items of different sizes in the shop. I have to choose one size and then let the rest of the items either be squished or stretched. Why SMFShop? Why?!

I think I'm going to have to uninstall SMFShop and install SA Shop as SMFShop falls short on doing well...anything. At least SA is a little closer to the old XMB Shop hack that displayed inventory items on posts. Let me know if someone decides to take the features of SAShop and move them over to SMFShop.
2.0.15; default theme - curve.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,188
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop - Shop MOD
« Reply #3145 on: January 13, 2019, 04:26:28 PM »
They are different mods with different sets of features.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline overdue

  • Semi-Newbie
  • *
  • Posts: 44
Re: SMFShop - Shop MOD
« Reply #3146 on: January 14, 2019, 12:21:34 PM »
They are different mods with different sets of features.

Well it would be nice to be able to display items on posts in SMFShop. And the item image of one size fits all requirement really sucks. Not all item images are going to be the same size on some forums. I'll never understand why that was implemented into the script.

Something to consider for the next update.
2.0.15; default theme - curve.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,963
    • StoryBB/StoryBB on GitHub
Re: SMFShop - Shop MOD
« Reply #3147 on: January 14, 2019, 02:22:34 PM »
Because not everyone has the same needs as you?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline gman123

  • Semi-Newbie
  • *
  • Posts: 35
Re: SMFShop - Shop MOD
« Reply #3148 on: March 24, 2019, 02:59:02 PM »
I think I have a very very very old version of this mod installed on my forum but it's not showing up under my package manager to uninstall. It says on it's info page, Your Version: 1.0 RC1. Would you have any idea how I could figure out what things I need to remove for that?

Under about it says: SA Shop 1.0 RC1 © 2012 Sleepy Arcade

Maybe this is a different dievational version from this one and i'm barking up the wrong tree. But any advice would help thanks :(

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,188
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop - Shop MOD
« Reply #3149 on: March 24, 2019, 03:19:46 PM »
SA Shop is a different shop mod this one here https://custom.simplemachines.org/mods/index.php?mod=1794
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline gman123

  • Semi-Newbie
  • *
  • Posts: 35
Re: SMFShop - Shop MOD
« Reply #3150 on: March 24, 2019, 04:25:46 PM »
SA Shop is a different shop mod this one here https://custom.simplemachines.org/mods/index.php?mod=1794
Yah sorry I figured that out after I posted lol, my bad.

To compound on that however, I installed this mod on my other form just now and when I go to add an item I get the following error:

Code: [Select]
Fatal error: require(): Failed opening required '/home4/*MYWEBSITECENSORED*/public_html/*MYWEBSITECENSORED*/Sources/shop/items/primarymembergroup.php' (include_path='.:/opt/php54/lib/php') in /home3/*MYWEBSITECENSORED*/public_html/*MYWEBSITECENSORED*/Sources/shop/ShopAdmin.php on line 277this is when adding a member group change item.


Any idea what I can do to fix that?



EDIT: I fixed this, apparently the item is case sensitive on my webserver (probably linux), and the file was Named PrimaryMemberGroup and not primarymembergroup like the code suggested. Maybe worth a look on the next version patch.

Offline MegaProyk

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
  • French, spanish and english (less) speaker
Re: SMFShop - Shop MOD
« Reply #3151 on: March 25, 2019, 01:06:40 AM »
Hello,

I am looking for a way to charge fees for posting affiliate links. The best idea I got is to use x credits when a forumer posts an affiliate link.

If the forumer does not have enough credits, he could not post affiliate links.

First, is it possible for the forum to distinguish affiliate links ?
If yes, is my idea doable with SMFShop ?

Thank you :)

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,188
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop - Shop MOD
« Reply #3152 on: March 25, 2019, 11:41:25 AM »
how do you know if it is a affiliate link
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline MegaProyk

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
  • French, spanish and english (less) speaker
Re: SMFShop - Shop MOD
« Reply #3153 on: March 25, 2019, 01:46:57 PM »
I would have to analize more affiliate links for a more complete answer but the URL contains "aff=" or "tag=" or "affiliate"...

I suppose it is possible for the forum/a mod to distinguish url that contain these patterns isn' it ?
If it is, I will be happy to tell you all the patterns I find.

The problem may be if the url does not naturally contain something like that (but I think a pattern is always distinguishable) or if it is shortened/modified (with bitly or the Pretty urls mod for example) I guess...
Perhaps it is possible to distinguish the real/complete link or forbid shortened links in a forum ? For Bitly links I could forbid url that contains "bit.ly" for example...
« Last Edit: March 25, 2019, 02:05:57 PM by MegaProyk »

Offline gman123

  • Semi-Newbie
  • *
  • Posts: 35
Re: SMFShop - Shop MOD
« Reply #3154 on: March 25, 2019, 10:33:36 PM »
the send an email to the admin item is still as broken as it was 3 versions ago. It bugges out and turns into 0's a lot.

Offline hipp0

  • Newbie
  • *
  • Posts: 7
Re: SMFShop - Shop MOD
« Reply #3155 on: April 14, 2019, 09:31:34 AM »
Im using SMF 2.015 and when I install SMFShop I get blank pages when I view or edit items. Is there anyway to fix this? It installs perfectly fine.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,188
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop - Shop MOD
« Reply #3156 on: April 14, 2019, 10:26:27 AM »
Check your forum's error log or server apache error log and see if you can see anything.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline 4everBlue

  • Semi-Newbie
  • *
  • Posts: 25
  • Gender: Male
  • impossible is nothing!
    • pngio
Re: SMFShop - Shop MOD
« Reply #3157 on: April 15, 2019, 03:34:04 PM »
I tried adding more images in Sources/shop/item_images/ but it won't let me add anything, I get a Permission Denied error when trying to upload things. How to solve this?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,188
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMFShop - Shop MOD
« Reply #3158 on: April 15, 2019, 04:05:10 PM »
Try upload via ftp
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline 4everBlue

  • Semi-Newbie
  • *
  • Posts: 25
  • Gender: Male
  • impossible is nothing!
    • pngio
Re: SMFShop - Shop MOD
« Reply #3159 on: April 16, 2019, 02:06:14 PM »
Try upload via ftp

Ah, worked. Thanks :)