Author Topic: shop installation problems  (Read 7469 times)

Offline merrfinney

shop installation problems
« on: September 21, 2008, 01:51:37 am »
Ok.. I've been at it for a while now... installing the shop, uninstalling it and trying again... went through all the installation manual instructions : http://custom.simplemachines.org/mods/index.php?action=parse

But still get this when I try to install:







I need HELP getting this shop to upload properly... I need someone to break this down to me like I'm new at this... screen shots and all if you have time... because I'm completely frustrated with it... and I really want to get this installed for our members to use it. 

I found this and was wondering it needs to be installed too???
http://www.dansoftaustralia.net/smfshop_wiki/Items:Profile_Image

If anyone is willing to take the time to help me, I'd be very appreciative!!!

Offline Ace1564

Re: shop installation problems
« Reply #1 on: September 21, 2008, 03:09:42 am »
First make sure you backup both files you are about to edit.
After you have both files backed up start your editing

./Sources/RemoveTopic.php
Find:
Quote
         while ($rowMembers = mysql_fetch_assoc($requestMembers))
            updateMemberData($rowMembers['ID_MEMBER'], array('posts' => 'posts - ' . $rowMembers['posts']));

Replace With:
Quote
         //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__);
         }
         //END SMFShop 2.0 code

NEXT FIND:
Quote
   if (!empty($row['ID_MEMBER']) && $decreasePostCount && empty($row['countPosts']))
      updateMemberData($row['ID_MEMBER'], array('posts' => '-'));


Add After:
Quote
      //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__);
      //END SMFShop New Version code


NOW Open:
./Themes/default/Display.template.php

FIND:
Quote
         // Show how many posts they have made.
         echo '
                        ', $txt[26], ': ', $message['member']['posts'], '<br />
                        <br />';


Repalce with:
Quote
         // Show how many posts they have made.
//         echo '
//                        ', $txt[26], ': ', $message['member']['posts'], '<br />
//                        <br />';

            // BEGIN SMFShop MOD New Version Code
         // Removed one <br /> from end of post count line.
         echo '
                        ', $txt[26], ': ', $message['member']['posts'], '<br />
                        ';
                        
         echo '
                        ', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
                        <a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
                        <a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
         //END SMFShop code



After you have edited these files upload them to the correct folder.

Now install your shop mod..

Hope this will help you...
« Last Edit: September 21, 2008, 03:24:50 am by Ace1564 »

Offline merrfinney

Re: shop installation problems
« Reply #2 on: September 21, 2008, 04:13:03 am »
thank you.. I'll give a try... I'm guessing the smiley in the middle there is supposed to be 8 )?

Offline Ace1564

Re: shop installation problems
« Reply #3 on: September 21, 2008, 04:23:22 am »
thank you.. I'll give a try... I'm guessing the smiley in the middle there is supposed to be 8 )?


Yes you are correct the system sees this as a smiley

make sure there is NO SPACE

Offline merrfinney

Re: shop installation problems
« Reply #4 on: September 21, 2008, 04:45:15 am »
I got you... working on it now :)  thanks again.. I'll let you know how it turns out :)

Offline merrfinney

Re: shop installation problems
« Reply #5 on: September 21, 2008, 06:33:31 am »
it didn't work.. got even more test failed the second time around.. and an error with index.php

Offline Ace1564

Re: shop installation problems
« Reply #6 on: September 21, 2008, 08:37:54 am »
Ok put back your backup files..

As i only see 2 test failed in your screenshot, where there more? If so please indicate that too..

Offline Ace1564

Re: shop installation problems
« Reply #7 on: September 21, 2008, 10:14:14 am »
can you attach both files:
Removetopic.php and display.template.php