Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - vbgamer45

Pages: 1 2 [3]
31
Bugs / Re: Bug in Shop-Send.php
« on: June 07, 2009, 07:47:55 am »
Please state in detail the bug and we will get it fixed.

32
General SMFShop Discussion / Re: SMFShop for SMF 2.0 Beta 4 and RC1
« on: May 22, 2009, 08:43:28 am »
Yes we do. I am currently working on the SMF 2.0 version as we speak.

33
General SMFShop Discussion / Re: SMFShop for SMF 2.0 Beta 4 and RC1
« on: May 12, 2009, 10:32:00 am »
They should work fine for 1.1.x major changes will only affect the 2.0.x version

34
General SMFShop Discussion / Re: SMFShop for SMF 2.0 Beta 4 and RC1
« on: May 11, 2009, 11:48:35 am »
Started up a bug tracker!

Any bugs, feature request please post in the bug tracker!
http://www.smfhacks.com/smfshop/index.php?action=projects

If you fill a bug report the more information you can provide the better so I can fix it fast!

35
General SMFShop Discussion / Re: SMFShop for SMF 2.0 Beta 4 and RC1
« on: May 11, 2009, 09:02:51 am »
Hello All,
I am going to taking over the modification and redoing it completely for SMF 2.0. Will update you with the latest updates and plans. 
Plan to fix any out standing issues with SMF 1.1.x
Main development will focus on SMF 2.0 with a major code clean up, new features, new items.
Will setup a bug tracker, looking for team members to work on the mod, support, translators anyway that you can help will be great!

Thanks,
vbgamer45

36
Coding / Re: Joining SMF Gallery Pro to Smf Shop
« on: May 31, 2007, 09:34:31 pm »
Okay, it's pretty simple actually.

All you have to do is edit Gallery.php in your sources directory. Because Gallery.php is added in its entirety by the smfgallery mod, you can edit it and it won't mess you up if you need to uninstall it. (Just remember to go back and make the edits again when you upgrade) because smfgallery will wipe out the changes on an upgrade.

1) Find the AddPicture2 function

2) Look for this piece of code (it's near the end of the function)

Code: [Select]
//Last recheck Image if it was resized

3) Add this code in before it

Code: [Select]
// BEGIN SMFShop New Version (Build 12) code
$points = 10;
// Give the user their points
$result_shop = db_query("
UPDATE {$db_prefix}members
SET money = money + {$points}
WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);

// END SMFShop


Note the $points = 10, that's what tells the script how many points to add. So you can set it to any number

-----
Also you need to do this one other place. It's the exact same process

1) Find the BulkAdd2 function

2) Look for this piece of code (it's near the end of the function)

Code: [Select]
//Last recheck Image if it was resized

3) Add this code in before it

Code: [Select]
// BEGIN SMFShop New Version (Build 12) code
$points = 10;
// Give the user their points
$result_shop = db_query("
UPDATE {$db_prefix}members
SET money = money + {$points}
WHERE ID_MEMBER = {$ID_MEMBER}
LIMIT 1", __FILE__, __LINE__);

// END SMFShop


-----

Now your users will get points whether they do a regular add or a bulk add. Like I said, if you upgrade the smfgallery mod, it will more than likely completely overwrite the gallery script, so you'll need to be sure to apply these changes whenever you do that. But it's pretty straight forward.

Hope this helps. Let me know if something doesn't work.

If you would use this by default. I can add a setting in Gallery Lite/Pro to increase points for each image uploaded and allow you to specify the points amount. I can also have it remove points if the image is deleted.

Pages: 1 2 [3]