News:

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

Main Menu

SMFShop - Shop MOD

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

Previous topic - Next topic

vbgamer45

Not at the moment there is another shop mod that works for 2.1 but I will probably upgrade this one too at some point.
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

MESWEB

How to Add Item like "Add Money to Your account" I want integrate this mod with SMS Premium or PayPal. Where is button to disable sending money?

vbgamer45

I believe you can disable the send money option/item
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

MESWEB

#2983
Where in Permissions? Why link add items not working in Admin panel?
How to Add Item looking like "If You want 30 credits buy for 1$ with PayPal"?

MESWEB

When I try to delete post i got this error
Database error:
Wrong value type sent to the database. Integer expected. (amount)


http://index.php?pretty;board=samsung.0&action=quickmod

Wrong value type sent to the database. Integer expected. (amount)
Function: removeTopics

Plik: /Sources/RemoveTopic.php

RemoveTopic.php
This error come from Shop Mod:
// Begin SMFShop code
while ($rowMembers = $smcFunc['db_fetch_assoc']($requestMembers))
{
updateMemberData($rowMembers['id_member'], array('posts' => 'posts - ' . $rowMembers['posts']));

global $smcFunc, $modSettings;
$smcFunc['db_query']('', '
UPDATE {db_prefix}members
SET money = IF(money >= {int:amount}, money - {int:amount}, 0)
WHERE id_member = {int:member}
LIMIT 1',
array(
'amount' => $shop,
'member' => $rowMembers['id_member'],
));
cache_put_data('user_settings-' . $rowMembers['id_member'], null, 60);
}
// End SMFShop code

vbgamer45

You should have more code above that

global $board;
$result_shop = $smcFunc['db_query']('', "
SELECT shop_pertopic, shop_perpost, countMoney
FROM {db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1");
$boardInfo = $smcFunc['db_fetch_assoc']($result_shop);

if($boardInfo['shop_pertopic'] != 0)
$shop = $boardInfo['shop_pertopic'];
else
$shop = $modSettings['shopPointsPerTopic'];


If you do make sure you have a number set in your shop points per topic in board settings or your main shop settings points per topic.
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

MESWEB

So what i need to do? Something deleting my posts!

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

MESWEB

This mod mess my database. What a piece of sh....t  :o
I delete value 0,01 and 0,02 from
QuotePer new topic: Per new post:
This mod stop counting my new post to existing number and before I install this mod I have 143 posts now I have 132 - I don't delete myself any post.

vbgamer45

Uninstall the mod if is not working. I saw your other support topic. i think your shop settings area wrong.
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

MESWEB

I have default settings. Look at my image. This error what I have is not about settings but query to database. Look at error code "expecting" - integer, so I check this columns and what I see? I saw this column are decimal what meaning - accepts values 0,00 when I try deleting post Shop send query with integer value what means only 0 without comas.

vbgamer45

The page you are looking at is blank from the image.
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

MESWEB


MESWEB

How to change code to accepts value 0,01 or 0.01 per new post?

vbgamer45

Would require extensive changes to make everything go to floats instead of integers not easy to do.
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

littleone

Could I pursuade someone for assistance on resolving this:

8: Undefined index: money
File: /home/xxxx/public_html/forum/Sources/Load.php
Line: 1330

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

littleone


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

littleone

Thanks VB.  Really appreciate the fast response and help!

Advertisement: