Show Posts

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.


Topics - tazpot

Pages: [1]
1
General SMFShop Discussion / Egg on yer face!!
« on: October 20, 2006, 07:45:46 pm »
I just spotted this on the smf forums and thought some of you might be interested 8)     
clicky

just wanted to say thanks for the mod.
just been playing around with it, and its very easy to make items for it.

just finished an item for my forums.

essentially it eggs users avatars.



it gets there avatar, and using gd, puts an egg on it. then changes their custom title to "you got egged"

doesnt override their old avatar, and stores it in avatars/eggs/, so that you may wear your victims avatar.
saves the img as. egged_{memberusername}
beauty of this script, is that you can egg as many times as you want, depending if you can affor that many eggs. it just keeps, adding eggs to the avatar.

I can't wait cos this looks like a great idea. :D

2
General SMFShop Discussion / How to limit bank usage?
« on: May 17, 2006, 11:55:57 pm »
Is there a way that i can limit the number of times a member can use the bank in a day or maybe make it so that they need a minimum amount of credits before they can add it to the bank?   i.e  minimum deposit amount set to 200 credits  :D


3
Items / Karma Bash item
« on: April 21, 2006, 05:59:02 am »
After a look at Basil Beards unofficial item tutorial i have created my first item and would like to share it with you. To use this item copy the code and save it as  KarmaBash.php then add it to...   smf/sources/shop/items 
It is an item to remove 10 karma points of another member.  :buck2:

Code: [Select]
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.com/        |
\**********************************************/

//File: KarmaBash.php
//      Item

//VERSION: 1.1 (Build 4)
//DATE: 10th April 2005
//Author Tazpot
//Helped by Basil Beard

class item_KarmaBash extends itemTemplate {
    function 
getItemDetails() {
        
$this->name "Karma Bash";
        
$this->desc "Bash 10 points of another members karma";
        
$this->price 50;

        
$this->require_input true;
        
$this->can_use_item true;
    }

    function 
getUseInput() {
global 
$context$scripturl$settings$txt;
        return 
"Karma Bash: <input type='text' name='bashwho' size='50'>
         <a href='
{$scripturl}?action=findmember;input=bashwho;quote=0;sesc={$context['session_id']}' onclick='return reqWin(this.href, 350, 400);'><img src='{$settings['images_url']}/icons/assist.gif' border='0' alt='{$txt['find_members']}' /> Find Member</a>";
    }

function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;

$result db_query("UPDATE {$db_prefix}members
                           SET karmaBad = karmaBad + 10
                           WHERE membername = '
{$_POST['bashwho']}'"
                           
,__FILE____LINE__);
    return 
"Successfully bashed 10 karma points from {$_POST['bashwho']}!";
$result db_query("SELECT ID_MEMBER
         FROM 
{$db_prefix}members
               WHERE memberName = '
{$_POST[‘bashwho’]}'"__FILE____LINE__);
$row mysql_fetch_array($resultMYSQL_ASSOC);
$pmfrom = array(
'id' => 1,
'name' => 'Tazpot',
'username' => 'Tazpot'
);
$pmto = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array()
);
sendpm($pmto'You have been bashed'"{$user} bashed 10 points off your karma! [i] You do not need to reply to this automated message[/i]"0$pmfrom);
return 
"You have bashed {$_POST['bashwho']} for 10 points off their karma!";
}
}
?>


Pages: [1]