Recent Posts

Pages: 1 ... 8 9 [10]
91
Coding / Help with Data Base & Items
« Last post by Bree on March 31, 2013, 08:35:13 am »
Hellou! I'm creating a RPG Forum and using the "Add xxx to Post Count" Item I added some like: "Add 1 Point of strength", in Data Base I created a column named "strength" but I cannot make it shows in the profile page. I tried by adding some like this in the Display.Template:

Code: [Select]
<h4>Pruebas de Atributos</h4>
               <li >', $txt['stat_fuerza'], ': ', $message['member']['strength'], '</li>';

But I doesn't show. Could you help me please? n_n
92
Requested additions / Re: Additional currencies
« Last post by Bree on March 31, 2013, 08:26:47 am »
Would be awesome n_n I need it too!
93
Items / Re: Simple Lotery
« Last post by Coolgem on March 29, 2013, 09:07:17 am »
Hello, can you please make a version of this that is english? That would be nice. P.S. I'm using Google Translate to write this message in spanish because i am english, not spanish!
----------------------------------------------------------------------
Hola, ¿podría hacer una versión de este que es el Inglés? Eso estaría bien. PD Estoy usando Google Translate para escribir este mensaje en español porque no soy Inglés, no español!
94
Requested additions / Re: Additional currencies
« Last post by Coolgem on March 29, 2013, 09:00:37 am »
Great idea! That would be great. I would make it, but I'm a newbie to this PHP development thingy. Maybe I would when I take college classes! :coolsmiley:
95
Items / Rose
« Last post by Coolgem 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! :)
96
Modifications / Re: SMF Lottery Mod
« Last post by Coolgem on March 29, 2013, 08:09:48 am »
Links broken. Anyone have a working link? That would help.
97
Items / SMFShop Pets ~~ Adds Dogs and Cats to SMFShop!
« Last post by Coolgem 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.
98
General SMFShop Discussion / Re: Problem in Default Theme!
« Last post by B3ast on March 27, 2013, 06:29:24 pm »
I switched hosts, and problem solved :)
99
General SMFShop Discussion / Re: Problem in Default Theme!
« Last post by Coolgem on March 27, 2013, 10:56:25 am »
Strange. It seems you might have to use a custom tab smf software like this one at http://custom.simplemachines.org/mods/index.php?mod=2657 and configure one of those tabs to go to the SMFShop page. I hope I helped you!  :)
100
General SMFShop Discussion / Re: How can I install SMF Pets?
« Last post by Coolgem on March 27, 2013, 10:52:36 am »
I'm sorry to say but the creator of SMFShop (Basil Beard) has not updated SMF Pets in a really long time, so I think you might have to downgrade to a lower version of SMF to install it correctly. Sorry about that. :(
Pages: 1 ... 8 9 [10]