Iam so stupid in this category.
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
| (c) 2005 DanSoft Australia |
| http://www.dansoftaustralia.net/ |
\**********************************************/
//File: ChangeDisplayNameCSS.php
// Item that allows member to change style of their name. The style being changed
// is fully customisable by the admin.
//NOTE: Some file edits are necessary to make this item work!!!
//VERSION: Not in SMFShop install as yet (item version 0.1 beta)
//DATE: 20th September 2005
class item_ChangeDisplayNameCSS extends itemTemplate {
function getItemDetails() {
$this->name = "Change display name style";
$this->desc = "Change the style of your display name (style is admin-definable)";
$this->price = 75;
$this->require_input = false;
$this->can_use_item = true;
}
function getAddInput() {
return "New Style: <input type='text' name='info1' value='font-style:oblique'><br>
NOTE: The 'New Style' can be any formatting CSS Properties. <b>Do not</b> put a
semicolon (;) at the end as it is appended automatically.<br><br>";
}
function onUse() {
global $db_prefix, $ID_MEMBER, $item_info;
$result = db_query("UPDATE {$db_prefix}members
SET shop_nameStyle =
concat(shop_nameStyle,'{$item_info[1]}; ')
WHERE ID_MEMBER = {$ID_MEMBER}",
__FILE__, __LINE__);
return "Successfully updated your display name style!";
}
}
?>
What to do in this file?