SMF Shop

SMFShop => Installation Problems => Topic started by: RiD1 on September 01, 2006, 12:17:47 am

Title: Change Display Name CSS - Installation issue!
Post by: RiD1 on September 01, 2006, 12:17:47 am
Hi Daniel

When i install the Change DIsplay Namee CSS item in SHOp 2.2 I get this ERROR always - Its been with me on SMF 1.1RC2 and SMF 1.1RC3

(http://img482.imageshack.us/img482/5377/clipboard01vz5.gif)

When I proceed anyway, i get the following!

(http://img415.imageshack.us/img415/200/clipboard01pz1.gif)


These are all the packages I'm currently running!


(http://img174.imageshack.us/img174/7016/clipboard01dx3.gif)

 Are any of them conflicting with The Change Display NAme CSS item?

Is there a roundabout way for me to still have the Change Display Name CSS item?

Thanks!
Title: Re: Change Display Name CSS - Installation issue!
Post by: Daniel15 on September 02, 2006, 11:19:34 am
You could try installing it manually:
// What a monstrous array...

Add BEFORE:
    //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

Also, find:
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
REPLACE with:
//'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>',
[/list]
Title: Re: Change Display Name CSS - Installation issue!
Post by: RiD1 on September 03, 2006, 01:42:54 am
 O0 Thanks Its working now!
Thanks a million!

My users are gonna be very happy now!