Items/Remove Profile Image
From SMFShopWiki
Hello!I don't see why my qositeun has not published here yet. Any way, I ask my qositeun again. With the help of this site, I was able to center my post titles, but the problem is that they are not clickable any more; or oddly partially clickable.What is wrong with it?ThanksMinoudad
The "Remove Profile Image" item is a supplement to the Profile Image item. When used, it will remove the user's profile image (previously set by the Profile Image item).
This file should be saved to your Sources/shop/items directory as RemoveProfileImage.php.
<?php /********************************************************************************** * RemoveProfileImage.php * * Profile Image item - Remove the user's profile image * *********************************************************************************** * SMFShop: Shop MOD for Simple Machines Forum * * =============================================================================== * * Software by: DanSoft Australia (http://www.dansoftaustralia.net/)* * Copyright 2005-2007 by: DanSoft Australia (http://www.dansoftaustralia.net/)* * Support, News, Updates at: http://www.dansoftaustralia.net/ * * * * Forum software by: Simple Machines (http://www.simplemachines.org) * * Copyright 2006-2007 by: Simple Machines LLC (http://www.simplemachines.org) * * 2001-2006 by: Lewis Media (http://www.lewismedia.com) * *********************************************************************************** * This program is free software; you may redistribute it and/or modify it under * * the terms of the provided license as published by Simple Machines LLC. * * * * This program is distributed in the hope that it is and will be useful, but * * WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY * * or FITNESS FOR A PARTICULAR PURPOSE. * * * * See the "license.txt" file for details of the Simple Machines license. * * The latest version of the license can always be found at * * http://www.simplemachines.org. * **********************************************************************************/ // If file is not called by SMF, don't let them get anywhere! class item_RemoveProfileImage extends itemTemplate { function getItemDetails() { $this->authorName = 'Daniel15'; $this->authorWeb = 'http://www.dansoftaustralia.net/'; $this->authorEmail = 'dansoft@dansoftaustralia.net'; $this->name = 'Remove Profile Image'; $this->desc = 'Remove your current profile image'; $this->price = 10; $this->require_input = false; $this->can_use_item = true; } function onUse() { $result = db_query(" UPDATE {$db_prefix}members SET shop_Flag = '' WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__); return 'Successfully removed profile image!'; } } ?>