SMFShop - Shop MOD

Started by SMFHacks.com Team, December 27, 2004, 06:46:17 AM

Previous topic - Next topic

Koper

Hello. I would like to enter the paid nickname colors for virtual currency.
How do you make such modifications? I am asking for help

Cathal

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?

vbgamer45

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

overdue

How do I get bought items to show up on my profile and profile in posts?
2.1.4; default theme - curve.

overdue

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

         // 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   
   

// 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.1.4; default theme - curve.

vbgamer45

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

overdue

Quote from: vbgamer45 on January 13, 2019, 04:26:28 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.1.4; default theme - curve.

Arantor

Because not everyone has the same needs as you?

gman123

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 :(

vbgamer45

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

gman123

Quote from: vbgamer45 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
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:

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 277
this 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.

MegaProyk

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 :)

vbgamer45

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

MegaProyk

#3153
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...

gman123

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.

hipp0

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.

vbgamer45

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

4everBlue

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?

vbgamer45

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

4everBlue


Advertisement: