Wii-volution

Wii-volution Related => Site News & Updates => Topic started by: meridianblade on February 16, 2007, 11:06:57 AM



Title: Interested in helping me add shop items?
Post by: meridianblade on February 16, 2007, 11:06:57 AM
If anyone would like to, i'll provide directions on how to create shop items (it's real easy, just time consuming) and you guys can submit them to me and i can add them in real quick. This would help me out alot, anyone interested?  :-)


edit//


Alright here you go:
First, the image needs to have a white background (if possible) and 100x100 in size. eg:
(http://www.wii-volution.com/smf/Sources/shop/item_images/nes_t.jpg)
here's the .php file template:
Just follow the //comments and you'll get it in no time!
UPDATE in: class item_ITEMNAME extends itemTemplate; ITEMNAME must be the same as the filename, so ITEMNAME would be ITEMNAME.php with no spaces or underscores.
Code:
<?php

if (!defined('SMF'))
die('Hacking attempt...');

// Change ITEMNAME to whatever, e.g. wii, this must be done.
class item_ITEMNAME extends itemTemplate
{
function getItemDetails()
{

// The author of the item
$this->authorName 'Your Name';
// The author's website
$this->authorWeb 'http://www.wii-volution.com/';
// Email address
$this->authorEmail 'email@example.com';


// Change these to match the item your creating:
  // The name of the item
  $this->name 'Example Item';
  // The item's description
  $this->desc 'Example Description';
  // The item's price
  $this->price 19.99;
  
//UNCHANGEABLE VALUES, no need to mess with these:
  $this->require_input false;
  $this->can_use_item false;
}
}
?>


Save this file with the same name you used in "class item_ITEMNAME extends itemTemplate" so if you used wii save the file as wii.php

Lemme know if anyone has any questions! Thanks!


Title: Re: Interested in helping me add shop items?
Post by: iimawii™ on February 16, 2007, 11:08:05 AM
ME!!!!!!!!!!!!!!!!!!!!!!!!!!
I'm at the disposal of your needs.


Title: Re: Interested in helping me add shop items?
Post by: MysticGohan on February 16, 2007, 02:49:25 PM
i can help i just need someone to tell me what to do....


Title: Re: Interested in helping me add shop items?
Post by: Elecom on February 17, 2007, 01:16:09 PM
When we're done how do you want us to send it to you?


Title: Re: Interested in helping me add shop items?
Post by: meridianblade on February 17, 2007, 01:49:19 PM
You can either email it to me at admin@wii-volution.com or send me a pm through the forums. If you have multiple items, zipping them up would help greatly.

Thanks!


Title: Re: Interested in helping me add shop items?
Post by: Elecom on February 17, 2007, 02:12:51 PM
Ok I sent you a PM.


Title: Re: Interested in helping me add shop items?
Post by: meridianblade on February 17, 2007, 02:19:43 PM
looks good, just a few things that I took care of: just make sure to resize the images to 100x100px if you can, and under "class item_" don't place spaces between words as it wont work. and for money, just put the exact price, you wont need a # or $ before it. Thanks and great work! i'll be adding it soon!


Title: Re: Interested in helping me add shop items?
Post by: Elecom on February 17, 2007, 02:26:54 PM
No Problem and I'll keep that stuff in mind. I could be the official person to Do this stuff. And to resize it do you use a program or what?


Title: Re: Interested in helping me add shop items?
Post by: meridianblade on February 17, 2007, 02:37:06 PM
I updated the initial post here.

You can use any type of image editing program. photoshop works good for it.
in a nutshell I do the following.

If the image is even like 500x500 or 800x800, changing the image size to 100x100 works fine. if its something like 500x394 then I change the width to 100 (making sure size constraints are turned on so the height scales accordingly) then I change the canvas height to 100px and fill the background in with white. You could use a program like easy thumbnails to do most the work for you. you'd just have to use something else for images that aren't perfect squares to fill in the white. Hopefully that makes some sense, lemme know as I can always help with image resizing.