News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

ST Shop

Started by Diego Andrés, June 13, 2009, 06:06:35 AM

Previous topic - Next topic

jjson

Quote from: jjson on February 12, 2022, 05:35:25 PMWould it be possible to create an item that, when used on a specific member (whose display name should be typed in), successfully steals a random item from them, ending up in the stealer's inventory? I would really love it if you could help me create an item as such. With my fairly limited knowledge of php, I'm afraid I haven't made much progress when attempted to create it myself...

Hello again. I'd really love to know if this would be possible anytime soon. Thanks!

Diego Andrés

Yes, I was going to message you today about that.
Had to delay it a little bit. I'll have a look at the mod and your request in the next days.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

Added new module "Steal Random Item"!
It is available in the github repository for the Shop modules:
https://github.com/SMFTricks/ST-Shop-Modules/tree/master/Steal%20Random%20Item

Add the following text strings to Themes/default/languages/Shop/Modules.english.php
// Steal Item
$txt['Shop_si_name'] = 'Steal Item';
$txt['Shop_si_desc'] = 'Steal an item from another member';
$txt['Shop_si_setting1'] = 'Probability of successful steal:';
$txt['Shop_si_setting1_desc'] = 'For steal, user does NOT need to, and should NOT know the probability! It\'s more fun this way :-)';
$txt['Shop_si_setting2'] = 'Send personal message:';
$txt['Shop_si_setting2_desc'] = 'When a user gets robbed shop will send a pm with information about who robbed them and what item they stole from them';
$txt['Shop_si_setting3'] = 'Send alert:';
$txt['Shop_si_setting3_desc'] = 'When a user gets robbed shop will send an alert with information about who robbed them and what item they stole from them';
$txt['Shop_si_success1'] = 'You successfully stole from %2$s, you robbed the item "%1$s"';
$txt['Shop_si_error'] = 'That user does not exist or is not carrying any items!';
$txt['Shop_si_notification_pm'] = 'We are sorry to inform you that you just have been robbed!' . "\n" . '[url=%1$s]%2$s[/url] has stripped you of the item [i]%3$s[/i] from your inventory.' . "\n\n" . 'This is an automatic notification, have a good day.' . "\n" .'- Forum Shop';
$txt['alert_shop_module_steal_item'] = '{member_link} just robbed you the item "{item}" from your inventory!';


Shop update soon!

SMF Tricks - Free & Premium Responsive Themes for SMF.

Oldiesmann

Recently switched one of my sites from PHP 7.4 to PHP 8. Now I see these two error messages every time someone views a topic:

Hook call: function "Shop\Integration\User::template" in file /.../public_html could not be called.The callable Shop\Integration\User::template could not be called.
Michael Eshom
Christian Metal Fans

Diego Andrés

I 'suppose' I've fixed it because I can't reproduce it.
I've been fixing small stuff for a couple weeks or even months so I've forgotten what changed really.
Please use the files from v4.1.11 on github: https://github.com/SMFTricks/ST-Shop/tree/v4.1.11

I'll try to release it sometime next week.

Also I think the option to not display duplicates is broken?? Not sure if anyone is using it, will have a look.

SMF Tricks - Free & Premium Responsive Themes for SMF.

TurtleKicker

Is an update for SMF 2.1.1 on the radar?

Diego Andrés

Uhh I forgot about it, it's the link on my last post.
I'll get it out tomorrow if you rather wait, and then slowly work on a newer v5 in the next couple of months  :)

SMF Tricks - Free & Premium Responsive Themes for SMF.

FrizzleFried

Is it difficult to implement credits for an action?   For example... I have a rating mod... I'd like to implement credits for rating someone (for example). 

Diego Andrés

I have a couple of integrations going already, Arcade, Best Answer and Referrals.
Usually, if the rating (in this case) is executed using a hook then it's very straight forward. If the mod is using it's own custom function, then the mod author could add a custom hook for other mods to integrate (if that's something you can request), Sycho and Chen were kind enough to add it to their mods.

And then the less fun solution is to modify files.

Another thing to have into consideration for ratings, is what happens when the users change their reaction? The points get deducted again? Nothing?
I already have a content table for the shop mod, which I use for likes and best answer to avoid duplicated "rewards", I don't do "refunds" but it's doable I suppose.

SMF Tricks - Free & Premium Responsive Themes for SMF.

FrizzleFried

The particular ratings mod I am thinking of only allows ratings to be undone during the current page cycle... you can not undo ratings after the page changes.  This could be of advantage...

:)

I can also see myself trying like heck to implement credits for a certain badges mod that is available commercially as well... or perhaps triggering a badge FOR certain credits, etc... failure is likely... but I'd try like heck!  ;)


Diego Andrés

v4.1.11 - 10 May 2022
  • Improvement Use default theme path for images.
  • Improvement Improvements for some search queries.
  • Improvement Defer the version file.
  • Improvement Improve compatibility on certain queries.
  • Improvement Various minimal improvements.
  • Improvement Added language strings for the 'Steal Item' module.
  • Bug Fix Various PHP 8+ fixes.
  • Bug Fix Fix special characters issues when using items from the inventory.
  • Bug Fix Fixed issues caused by a bad template layer.
  • Bug Fix Fixed 'remove duplicates' option for the inventory display.

I'm aware of some PG issues but due to time constraints I haven't been able to fully test, please report any that you might encounter if you use pg.

SMF Tricks - Free & Premium Responsive Themes for SMF.

FrizzleFried

QUESTION: I have a mod that awards credits (it has a setting for "SMF Shop Credits" ... but is compatible with the older version of SHOP.  How difficult would it be to convert to award credits for your version?

Diego Andrés

Same as my previous answers to your similar question.
If the author of the other mod(s) won't add some trickery (custom hook/s) on their actions, just drop me a pm and we can discuss it if you really want it.

SMF Tricks - Free & Premium Responsive Themes for SMF.

FrizzleFried

My apologies... I figured if you knew the old system was already programmed in,  it may be a simple change to work it out with yours.  When I asked the prior question (about the same mod BTW),  I wasn't aware the old Shop credits capability was already programmed in.

Varlov

Hello! Just a quick question... what are the red and green status markers for in the shop items list? I tried to find some documentation on that, but no luck  :-\

Diego Andrés

In the admin? It just means disabled/enabled

SMF Tricks - Free & Premium Responsive Themes for SMF.

Varlov

Omg thank you so much. My dyslexia read it "endable" instead  :laugh:

TeamPD

Hello,
At this moment, we work with our team on a rpg-website based on SMF. For this RPG we have ST Shop for inventory and we're searching for a package for 'Choco Frog Card albums' for our members. It should be a collection space, but also the possibility to trade cards with other members. Earlier we used SA Shop but I cannot find it. Can someone help me with the question if SA Shop is still available and if not, which package would be suitable for us?

Best regards,
Chris de Boer
on behalf of #TeamPotterDome

Diego Andrés

ST Shop is SA Shop

SMF Tricks - Free & Premium Responsive Themes for SMF.

TeamPD

Quote from: Diego Andrés on August 07, 2022, 03:30:23 AMST Shop is SA Shop

Hello Diego,

Thanks for your quick reaction.
Is there another Shop package which can work next to ST Shop?
Or is it possible to create in one ST Shop environment a Choco Frog Collection next to the inventory?

With kind regards,
Chris de Boer
On behalf of PotterDome

Advertisement: