1
General SMFShop Discussion / Re: Moderator access SMF Shop ACP?
« on: June 27, 2006, 03:47:27 am »
Stop bugging Dan, poor guy!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
QuoteI have tried this, but like daniel i don't think it is very useful as it only works on ie, and at least on my forum the majority of users are using firefox or some other browser (mostly firefox)Yeah, I know, that's why I don't support it (I use Opera myself)...
Now if firefox would only use this....
<?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!";
}
}
?>