Author Topic: uninstalling shop  (Read 4119 times)

Offline Vi31

uninstalling shop
« on: November 01, 2006, 12:43:24 pm »
OK, i don;t know what i did wrong but now when i click on a topic i get this error:

Database Error
Unknown column 'shop_nameStyle' in 'field list'
File: /home/msvi007/public_html/timeout/Sources/Load.php
Line: 1007 

I would like to UNINSTALL this completely and start over, seems I have been having nothing but problems  with this mod since i upgraded to RC3.  Is there a step by step for dummies type guide on how to remove this completely.  It must be very specific because when i tried to just remove stuff that was shop related i made my board inoperable.

PLEASE HELP!

Offline matkins70

Re: uninstalling shop
« Reply #1 on: November 01, 2006, 07:25:35 pm »
Don't you just uninstall the package from your admin area?

Offline Vi31

Re: uninstalling shop
« Reply #2 on: November 01, 2006, 11:05:33 pm »
I tried but it says there is no uninstaller and to contact mods author.

Offline Daniel15

Re: uninstalling shop
« Reply #3 on: November 03, 2006, 06:07:32 pm »
That error is because you had the 'Display Name CSS' item installed. To completely uninstall that item:
Open Load.php, and find:
Code: [Select]
    //SMFShop Name Style item
    global $db_prefix;

    $result = db_query("SELECT shop_nameStyle
                        FROM {$db_prefix}members
                        WHERE ID_MEMBER = {$user}", __FILE__, __LINE__);
   
    $row = mysql_fetch_array($result, MYSQL_ASSOC);
    if (!isset($row['shop_nameStyle']) || $row['shop_nameStyle'] == "") {
        $nameStyle = "";
    } else {
        $nameStyle = "style='".$row['shop_nameStyle']."' ";
    }
    //End SMFShop Name Style Item
Delete it.

Also, in the same file, find:
Code: [Select]
//'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
'link' => '<a ' . $nameStyle . 'href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
Replace with:
Code: [Select]
<search position="replace"><![CDATA[
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',

Offline Vi31

Re: uninstalling shop
« Reply #4 on: November 04, 2006, 01:01:05 am »
is the display name css item a bad item?

Offline Daniel15

Re: uninstalling shop
« Reply #5 on: November 04, 2006, 02:56:15 pm »
No, it's not a bad item, it's just that when you uninstall SMFShop, it doesn't uninstall that item. Either uninstall the item through the SMF admin panel, or uninstall it manually.