Author Topic: Change Display Name CSS - Installation issue!  (Read 12757 times)

RiD1

  • Guest
Change Display Name CSS - Installation issue!
« 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



When I proceed anyway, i get the following!




These are all the packages I'm currently running!




 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!
« Last Edit: September 01, 2006, 12:24:30 am by RiD1 »

Offline Daniel15

Re: Change Display Name CSS - Installation issue!
« Reply #1 on: September 02, 2006, 11:19:34 am »
You could try installing it manually:
  • Unzip DisplayNameCSS_Item_0.1.zip
  • Copy ChangeDisplayNameCSS.php to Sources/shop/items/
  • Open Sources/Load.php, and find:
// 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]

RiD1

  • Guest
Re: Change Display Name CSS - Installation issue!
« Reply #2 on: September 03, 2006, 01:42:54 am »
 O0 Thanks Its working now!
Thanks a million!

My users are gonna be very happy now!