News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMFShop - Shop MOD

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

Previous topic - Next topic

Kyrianchigozie

Please how can add credit to my admin user because i cant share any credit to users. I think their should be a way to add credit to my account as the forum admin privately witout sharin to other admins.

vbgamer45

I think there is a give credit option. If not alter the money column in the members table for your member id and add credits
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

Kyrianchigozie

Please i dont understand, i cant find the option. Am the admin and owner of the forum, but i dont have any credit in my account as an admin, how can i add credit to my self. Thaks

Oldiesmann

Admin -> Shop Administration -> Members' Inventory

Enter a user's name and click "Next"

That will allow you to edit the credits for that user.
Michael Eshom
Christian Metal Fans

Kyrianchigozie


Norvidge

Hi! I have pets mod installed with smf shop and i want to know how to display pets item in display. but only pets, not other items of the inventory. someone can help me? :)


and another question. in smfshop forum there is a mod of smfshop called stats. but attached file in that topic is broken. someone has that mod?

regards!

Wilz

I have installed this mod, but it seems like only administrators can access the shop button. Where can I change the permissions?

vbgamer45

Admin -> Permissions modify each group give them SMF Shop permissions
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

Biology Forums

There are many mistakes in this mod that haven't been fixed. For example, the removetopic.php modifications are very, very bad. Here are some corrections after hours of testing on SMF 1.x:

Find:


//while ($rowMembers = mysql_fetch_assoc($requestMembers))
// updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));

//BEGIN SMFShop 2.0 (Build 8) MOD code
while ($rowMembers = mysql_fetch_assoc($requestMembers)) {
updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));
global $modSettings;
db_query("UPDATE {$db_prefix}members
  SET money = money - {$modSettings['shopPointsPerPost']}
  WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
 
cache_put_data('user_settings-' . $rowMembers['ID_MEMBER']}, null, 60);
}

//END SMFShop 2.0 code


Change to:

//BEGIN SMFShop (Removes Topic Credits)
while ($rowMembers = mysql_fetch_assoc($requestMembers)) {
updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));

global $board;
$result_shop = db_query("
SELECT shop_pertopic, shop_perpost, countMoney
FROM {$db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1", __FILE__, __LINE__);
$boardInfo = mysql_fetch_assoc($result_shop);

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

if(!empty($boardInfo['countMoney']))
{
db_query("UPDATE {$db_prefix}members
  SET money = money - {$shop}
  WHERE ID_MEMBER = {$rowMembers['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
}
}
//END SMFShop 2.0 code


Find:


//BEGIN SMFShop New Version (Build 8) MOD code
db_query("UPDATE {$db_prefix}members
  SET money = money - {$modSettings['shopPointsPerPost']}
  WHERE ID_MEMBER = {$row['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
cache_put_data('user_settings-' . $row['ID_MEMBER'], null, 60);
//END SMFShop New Version code


Change to:

//BEGIN SMFShop (Removes Post Credits)
global $board;
$result_shop = db_query("
SELECT shop_pertopic, shop_perpost, countMoney
FROM {$db_prefix}boards
WHERE ID_BOARD = $board
LIMIT 1", __FILE__, __LINE__);
$boardInfo = mysql_fetch_assoc($result_shop);

if($boardInfo['shop_perpost'] != 0)
$shop = $boardInfo['shop_perpost'];
else
$shop = $modSettings['shopPointsPerPost'];

if(!empty($boardInfo['countMoney']))
{
db_query("UPDATE {$db_prefix}members
  SET money = money - {$shop}
  WHERE ID_MEMBER = {$row['ID_MEMBER']}
  LIMIT 1", __FILE__, __LINE__);
}
//END SMFShop New Version code

SMFHacks.com Team

Version 3.3
!Better remove topic shop points code thanks to Liam_michael
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

mroyusa

Had to remove smf, was not able to delete topics when installed.

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

CedarMill

Hello

SMF 2.0.7 + SMFShop3.3forSMF2.0.zip

Error deleting threads and posts:

threads


Database error
Table 'forum.boards' doesn't exist
file: /var/www/user/data/www/forum.net/Sources/RemoveTopic.php
line: 262


posts


Database error
Table 'forum.boards' doesn't exist
file: /var/www/user/data/www/forum.net/Sources/RemoveTopic.php
line: 972


Please help to fix the error :(
SMF 2.0.7

vbgamer45

Did you manually install the mod or any errors on installing?
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

CedarMill

installing via admin panel (the package Manager modifications)
the module is installed without errors
but
error logs:
http://i.imgur.com/UYTfSj5.png [nofollow]
http://i.imgur.com/Tf1dUxS.png [nofollow]
SMF 2.0.7

vbgamer45

Attach your Sourves/RemoveTopic.php file
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

CedarMill

SMF 2.0.7

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

SMFHacks.com Team

Version 3.3.1
!Fixed bug in SMF 2.0 version on removetopic edits.
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

CedarMill

vbgamer45
SMFHacks.com Team

Thank you very much! :)
SMF 2.0.7

Advertisement: