You'd only want to put that in the onUse() function, not the getUseInput(). Additionally, quotes should be escaped (\"). Try this:
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
| (c) 2006 DanSoft Australia |
| http://www.dansoftaustralia.net/ |
\**********************************************/
//File: testitem.php
// Test Item (gets some inputs, most likely you will base your items on this)
// VERSION: 2.3 (Build 11)
// $Date: 2006-10-21 13:34:18 +1000 (Sat, 21 Oct 2006) $
// $Id: testitem2.php 24 2006-10-21 03:34:18Z daniel15 $
// Your class should always be called item_filename, eg. if your file is
// myCoolItem.php then the class should be called 'item_myCoolItem'. This
// class should always extend itemTemplate.
class item_GardenMixers extends itemTemplate {
// When this function is called, you should set all the item's
// variables (see inside this example)
function getItemDetails() {
// The author's name
$this->authorName = "OrangeStar";
//VALUES CHANGEABLE FROM WITHIN ADMIN PANEL:
// The name of the item
$this->name = "Garden Mixers: The New Revolution";
// The item's description
$this->desc = "Exclusive and Rare Badges that can be won. The exciting part is that YOU get to pick which Badges you want to win!";
// The item's price
$this->price = 50000;
//UNCHANGABLE VALUES:
// Whether inputs are required by this item. In this case, we get some inputs,
// so set this to 'true'.
$this->require_input = false;
// Set this to 'false' if the item is unusable. This is good for display
// items.
$this->can_use_item = true;
}
// This is where all the fun begins. This function is called when
// the user actually uses the item. Return stuff, DON'T ECHO!
function onUse() {
return "Thank You for purching Garden Mixers: The Revolution!<br />In 10 Seconds, you will be redirected to a special webpage were you will choose what Badges you want to win!<br /> DO NOT GIVE THIS WEBPAGE OUT. IF YOU DO AND YOU ARE CAUGHT, YOU WILL BE FACED WITH A 100,000 GARDEN BUX FINE AND A 2 DAY BAN FROM BADGE GARDEN.<meta HTTP-EQUIV=\"REFRESH\" content=\"10; url=http://www.badgegarden.mbhosting.com/GardenMixers/Set1.html\">";
}
}
?>
Save it as Sources/shop/items/GardenMixers.php (or whatever you want, you'll need to change the item_GardenMixers bit to reflect the file name). Then, add it via the SMF Admin Panel.