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 - Coolgem

Pages: [1]
1
Completed Additions / SMFShop Item Generator
« on: March 27, 2015, 09:51:24 am »
I made an application that makes a SMFShop item with a message (and BBCode if you want). You fill in all the information and press the button and an item pops out. Click the image to download. Tell me what you think!

Direct Link

2
Items / Fixed version of Sticky Topic?
« on: March 09, 2015, 05:25:51 am »
The Sticky Topic item for some reason just says "Database Error Please try again. If you come back to this error screen, report the error to an administrator." after selecting the topic and using the item. This happens on this forum, and mine too. I think it's incompatibility with SMF 2.0. Can someone make a fixed version of this? It'd be helpful.

Coolgem

3
Bugs / Duplicate Display Name items
« on: April 13, 2013, 10:49:17 am »
When SMFShop is installed, there are two Display Name items instead of just one. I know you can remove the item, but this could get annoying.

4
Requested additions / Multiple Shops?
« on: April 01, 2013, 08:13:33 am »
My idea is there could be more then one shop, that sells different items. For example, there could be a Upgrade Shop for member upgrades like V.I.P etc, and a Food Shop with virtual food products. This really would be a great feature, or mod for SMFShop. It would be awesome, and my members would LOVE it. :smitten:

5
Modifications / SMFShop 4.0 (Unofficial)~~ A 'bigger' SMFShop
« on: April 01, 2013, 02:44:46 am »
When Daniel15 told me that SMFShop was open source... I had an idea... With the source code of SMFShop, I managed to make SMFShop 4.0! It is the same as 3.2, although it includes a bunch of items and images. Nothing else. Maybe because i'm bad at PHP. :P Never install the two versions together, as they will collide, and probably mess up your forum.. :buck2:

Demo: http://mytestforum.net76.net/

So, ya wanna download? Choose a mirror! :D

Mirror 1: Coolgems Cherry (official site) link: http://coolgemscherry.x10.mx/shop.zip
Mirror 2: 4Shared link: http://www.4shared.com/zip/0atBTGOx/shop.html

6
Items / Rose
« on: March 29, 2013, 08:57:13 am »
This is a 'magical money' rose that is great for a valentines day gift. It was based on the item 'Random Money' and when you use it, it gives you from 75 to 200 credits.

Save as Rose.php

Code:
Code: [Select]
<?php
/**********************************************************************************
* SMFShop item                                                                    *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum                                     *
* =============================================================================== *
* Software Version:           SMFShop 3.0 (Build 12)                              *
* $Date:: 2007-04-14 10:39:52 +0200 (za, 14 apr 2007)                           $ *
* $Id:: RandomMoney.php 113 2007-04-14 08:39:52Z daniel15                       $ *
* 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 (!defined('SMF'))
die('Hacking attempt...');

class 
item_Rose extends itemTemplate
{
    function 
getItemDetails()
{
$this->authorName 'coolgem923';
$this->authorWeb '';
$this->authorEmail 'private';

        
$this->name 'Rose';
        
$this->desc 'Sniff the rose. A nice valentines day gift.';
        
$this->price 75;
        
        
$this->require_input false;
        
$this->can_use_item true;
$this->addInput_editable false;
    }

    function 
getAddInput()
{
// There is nothing to input.
    
}

    function 
onUse()
{
        global 
$smcFunc$context$item_info;
        
        if (!isset(
$item_info[1]) || $item_info[1] == '')
            
$item_info[1] = 75;

        if (!isset(
$item_info[2]) || $item_info[2] == '')
            
$item_info[2] = 200;

        
$amount mt_rand($item_info[1], $item_info[2]);

{
$smcFunc['db_query']('''
UPDATE {db_prefix}members
SET `money` = `money` + {int:amount}
WHERE id_member = {int:id}'
,
array(
'id' => $context['user']['id'],
'amount' => $amount,
));

return 'You got ' formatMoney($amount) . ' from sniffing the rose! Sweet!';
}
    }

}

?>


Tell me if you like! :)

7
Items / SMFShop Pets ~~ Adds Dogs and Cats to SMFShop!
« on: March 29, 2013, 03:57:40 am »
Before I start, no, this is NOT SMFPets by Basil Beard. That's a real modification. This is just a package that installs two items to SMFShop. Simple. Oh, and another thing: It does not change anything in your SMF or SMFShop installation or do anything to the databases. I promise.

Okay, now, let me introduce you to this package for SMFShop:

SMFShop Pets is a package that adds dogs and cats to SMFShop. The items are based on my fortune cookie item that I made earlier this month. Everytime you use the pet, the site tells you what happened, like this message:
Quote
You took the dog for a walk, when it met another dog and 'talked' to eachother.

This is how you install it:

You download the zip file below, and you go to your package manager in the administration center, and then upload it and then install it. Easy as pie! :D

LINK: http://www.4shared.com/zip/oJFOsYXW/SMFShop_Pets.html

Tell me if there is a problem. This package was tested on SMF 2.0.4 with SMFShop 3.2 installed and worked with no problem.

8
Items / Fortune Cookie item!
« on: March 27, 2013, 10:44:01 am »
This one's different then my previous items. This one does not require any input from the admin. It is a fortune cookie that tells users their fortune. Makes sense.  :D Let me know what you think.

Save as fortune.php

Code:
Code: [Select]
<?php
// This is just to make sure that the item is used through SMF, and people aren't accessing it directly
// Additionally, this is used elsewhere in SMF (in almost all the files)
if (!defined('SMF'))
   die(
'Hacking attempt...');


class 
item_fortune 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 'coolgem923';
      
// The author's email address
      
$this->authorEmail 'private';
      
      
// --- Values changeable from within the SMFShop admin panel ---
      // The name of the item
      
$this->name "Fortune Cookie";
      
// The item's description
      
$this->desc "What's your fortune?";
      
// The item's price
      
$this->price 50;

      
// --- Unchangeable values ---
      // These values can not be changed when adding the item, they are stuck on what you set them to here.
      
      // Whether inputs are required by this item. In this case, we get no inputs.
      
$this->require_input false;
      
      
$this->can_use_item true;
   }
   
   function 
onUse()
   {
      
$result Rand (1,8); 

if ($result ==1

Return "You may be rich."


if ($result ==2

Return "Evil things are coming your way..."


if ($result ==3

Return "You will find a little suprise from your friend."


if ($result ==4

Return "Your long-lost friend will see you again."


if ($result ==5

Return "Your favorite thing may fall off a cliff and you will never see it again."


if ($result ==6

Return "You will win the lottery."


if ($result ==7

Return "You will turn into a humble king."


if ($result ==8

Return "You will journey to a land far away of peace and quiet."

}
}
?>

9
Items / 'Game Console' Item
« on: March 27, 2013, 10:41:33 am »
Another item. This is my second. It displays a message saying "You booted up your console and played a very fun game." with console being replaced with the game console the admin specifies. Let me know what you think.  ;)

Save as gameconsole.php
Code:
Code: [Select]
<?php
/**********************************************************************************
* SMFShop item                                                                    *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum                                     *
* =============================================================================== *
* Software Version:           SMFShop 3.1 (Build 14)                              *
* Software by:                DanSoft Australia (http://www.dansoftaustralia.net/)*
* Copyright 2009 by:          vbgamer45 (http://www.smfhacks.com)                 *
* 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 (!defined('SMF'))
die('Hacking attempt...');

class 
item_gameconsole extends itemTemplate 
{
function getItemDetails() 
{
$this->authorName 'coolgem923';
$this->authorWeb 'none';
$this->authorEmail 'private';

$this->name 'Game Console';
$this->desc 'Game Console for users to use.';
$this->price 50;

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

function getAddInput() 
{

global $item_info;
if ($item_info[1] == 0$item_info[1] = '';

return '
Name of game console (you may use BBCode here): 
<textarea name="info1" rows="1" style="width: 100%">' 
$item_info[1] . '</textarea>';

}

function onUse() 
{
global $item_info;

// What the site says when the game is 'played'.
return parse_bbc("You booted up your $item_info[1] and played a very fun game.");;
return parse_bbc($item_info[1]);

}

}

?>

10
Items / Food Item! (NOT SMFPets)
« on: March 27, 2013, 10:37:57 am »
This is my very first SMFShop item and I hope all of you like it. What this item does is shows the user this message "You ate a food.", replacing food with the name of the food the admin specifies. It is a simple item but that is no surprise because its my first. Tell me what you think!  :D


Save file as fooditem.php in order for this to work properly!

Here's the code:

Code: [Select]
<?php
/**********************************************************************************
* SMFShop item                                                                    *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum                                     *
* =============================================================================== *
* Software Version:           SMFShop 3.1 (Build 14)                              *
* Software by:                DanSoft Australia (http://www.dansoftaustralia.net/)*
* Copyright 2009 by:          vbgamer45 (http://www.smfhacks.com)                 *
* 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 (!defined('SMF'))
die('Hacking attempt...');

class 
item_fooditem extends itemTemplate 
{
function getItemDetails() 
{
$this->authorName 'coolgem923';
$this->authorWeb 'none';
$this->authorEmail 'private';

$this->name 'Food';
$this->desc 'Food for users to eat.';
$this->price 1;

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

function getAddInput() 
{

global $item_info;
if ($item_info[1] == 0$item_info[1] = '';

return '
Name of food (you may use BBCode here): 
<textarea name="info1" rows="1" style="width: 100%">' 
$item_info[1] . '</textarea>';
}

function onUse() 
{
global $item_info;

// What the site says when the food is eaten.
return parse_bbc("You ate a $item_info[1].");;
return parse_bbc($item_info[1]);

}

}

?>

Pages: [1]