Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44310
Total Topics: 7676
Most Online Today: 1238
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 220
Total: 220

Author Topic: ST Shop integration  (Read 8703 times)

0 Members and 1 Guest are viewing this topic.

ST Shop integration
« on: »
Hi VB,

I have installed Diego's 'ST Shop' on my site. Using your Downloads mod when a member creates a download, and then clicks 'Add Download', I have it set that a topic is created in a board.

If a member posts directly into that board they get credits, in the ST Shop mod, for the new topic they've created. When they create a download and it creates a new topic in the board the topic that's created does not give them credits in the ST Shop even though it has their name as the topic starter.

Any idea why that might be?

Diego's mod is here https://custom.simplemachines.org/index.php?mod=1794

I'm using the ST Shop mod instead of yours as it also gives credits for members playing games in SMFArcade, as well as other things.

As always any help is much appreciated

See the settings page attached.
« Last Edit: March 09, 2025, 11:17:03 am by davejo »

Re: ST Shop integration
« Reply #1 on: »
ST Shop was not supported but added it now
6.2.1
+Added ST Shop support!
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: ST Shop integration
« Reply #2 on: »
ST Shop was not supported but added it now
6.2.1
+Added ST Shop support!

Wow VB thank you very much

Re: ST Shop integration
« Reply #3 on: »
Sorry for seeming dumb , how do downloads work with the St Shop mod VB?

Re: ST Shop integration
« Reply #4 on: »
These are the settings for SMF Shop/ ST Shop in the Admin Download settings
Shop Points Settings

Use SMF Shop money as credits instead of download system credits
Download Add Points:    
Comment Add Points:    


Options to add points if a download is added or if a comment is added to a download.
And the option to use shop money instead of download credit system.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: ST Shop integration
« Reply #5 on: »
Thank you VB

Re: ST Shop integration
« Reply #6 on: »
Houston we have a problem.

I set the Downloads Shop to enabled, see attached, and when a download is added it produces an error as attached.

Should the Downloads be installed first then the shop or doesn't it matter?

UPDATE: Just installed Downloads 6.2.1 and then ST Shop on a clean SMF 2.1.4 but the error still happens
« Last Edit: March 09, 2025, 05:40:59 pm by davejo »

Re: ST Shop integration
« Reply #7 on: »
Did you have SMF Shop installed before?

If so delete the variable shopVersion from smf_settings table shopVersion
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: ST Shop integration
« Reply #8 on: »
I found out what the issue was. I did a clean install of both the Downloads and Shop on my other site and it all works fine.

On my main site the reason I was getting the error is because in the 'Credit System' I had 'Credits added per upload' 1, thinking that while the 'Enable Credit System' was disabled the numbers would make no difference, but it does, because as soon as I set 'Credits added per upload' to 0 everything works fine.

I'm posting this so others can see what the error was. Should that happen if the Credit System is not enabled?

Re: ST Shop integration
« Reply #9 on: »
This may seem like a dumb question, but do I have to uninstall Downloads Pro 6.2 before installing 6.2.1?
-- Senkusha
Creative Pioneer exploring anime role playing adventures!
Visit my Creative Anime Role Playing Community
SMF 2.1.4

Re: ST Shop integration
« Reply #10 on: »
Though the package manager? Are you getting an error?

But for a minor release if I don't mention it you don't have to uninstall old version can just install on top.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: ST Shop integration
« Reply #11 on: »
Nope.  Thanks!  I didn't even notice the option was Upgrade, not Install.  It's been a long day.
-- Senkusha
Creative Pioneer exploring anime role playing adventures!
Visit my Creative Anime Role Playing Community
SMF 2.1.4
Like Like x 1 View List

Re: ST Shop integration
« Reply #12 on: »
Did you have SMF Shop installed before?

If so delete the variable shopVersion from smf_settings table shopVersion

I've never had SMF Shop installed on this forum, but I'm still getting this error, when enabling SMF Shop, even after updating to 6.2.1

Is there another place somewhere that I'm not seeing to use ST Shop instead?
-- Senkusha
Creative Pioneer exploring anime role playing adventures!
Visit my Creative Anime Role Playing Community
SMF 2.1.4

Re: ST Shop integration
« Reply #13 on: »
No it only looks for that variable here is the code that decides which one to use.
Code: [Select]
// Update the SMF Shop Points
if (isset($modSettings['shopVersion']))
  $smcFunc['db_query']('', "UPDATE {db_prefix}members
SET money = money + " . $modSettings['down_shop_fileadd'] . "
WHERE ID_MEMBER = " . $user_info['id'] . "
LIMIT 1");

if (isset($modSettings['Shop_importer_success']))
$smcFunc['db_query']('', "UPDATE {db_prefix}members
SET shopMoney = shopMoney + " . $modSettings['down_shop_fileadd'] . "
WHERE id_member = " . $user_info['id']. "
LIMIT 1");

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: ST Shop integration
« Reply #14 on: »
[ Guests cannot view attachments ]

Okay.  I think I see the problem.  When I create a new topic/reply I get this:

[ Guests cannot view attachments ]

When I look at the code, I see this:

Code: [Select]
function Downloads_AddMemberCredits($memberID, $filesize, $credits = 0)
{
global $smcFunc, $downloadSettings;

if ($credits != 0)
{
$extraSMFShop = '';

if ($downloadSettings['down_set_intergrate_smfshop_money'])
$extraSMFShop = ', money = money +  ' . $credits. " ";

$smcFunc['db_query']('', "
UPDATE {db_prefix}members
SET downpro_credits = downpro_credits + " . $credits . "
$extraSMFShop
WHERE ID_MEMBER = $memberID LIMIT 1");
return;
}


And there's other checks a bit further down that use the database field money as well.  Shouldn't this be updated to use the same logic as above for full ST Shop support?
-- Senkusha
Creative Pioneer exploring anime role playing adventures!
Visit my Creative Anime Role Playing Community
SMF 2.1.4

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
4877 Views
Last post October 23, 2006, 12:46:00 pm
by joepro
0 Replies
5691 Views
Last post March 30, 2007, 11:49:39 pm
by Hambil
13 Replies
19639 Views
Last post May 20, 2007, 08:43:50 pm
by stormlrd
10 Replies
14982 Views
Last post June 28, 2010, 01:18:33 pm
by prestigehackers
1 Replies
6867 Views
Last post February 22, 2025, 06:13:10 pm
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal