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.


Messages - brianjw

Pages: [1] 2
1
Items / Re: Insurance (Still needs work!)
« on: May 19, 2008, 11:16:05 am »
Does anyone have a copy of this mod that they could provide here? TechnoDragon shut down his website so the download link no longer works. He suspended his own site with his own hosting company because he didn't have any time to maintain it.

Thanks,
brianjw

2
Requested additions / Re: Many Requests!
« on: May 19, 2008, 10:51:52 am »
Well the mod for number 1 has already been created and it's called Llama or Gdragon or Gold Dragon something...it needs to be updated though....

I will check out the insurance mod.

3
Here are the errors:
Quote
Tuxie™   Today 12:17:49 PM 
 **********     abba00071fd4327613e8b160b3b23e88 
 http://www.gamerzgarage.com/index.php?action=admin 
8: Undefined index: ajax_in_progress
File: /home/brianjw/public_html/Themes/default/languages/Shop.english.php (main_below sub template - eval?)
Line: 577
 
   Tuxie™   Today 12:17:49 PM 
 **********     abba00071fd4327613e8b160b3b23e88 
 http://www.gamerzgarage.com/index.php?action=admin 
8: Undefined variable: bullet
File: /home/brianjw/public_html/Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 371
 
   Tuxie™   Today 12:17:49 PM 
 **********     abba00071fd4327613e8b160b3b23e88 
 http://www.gamerzgarage.com/index.php?action=admin 
8: Undefined variable: bullet
File: /home/brianjw/public_html/Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 364
 
   Tuxie™   Today 12:17:49 PM 
 **********     abba00071fd4327613e8b160b3b23e88 
 http://www.gamerzgarage.com/index.php?action=admin 
8: Undefined variable: bullet
File: /home/brianjw/public_html/Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 355
 
   Tuxie™   Today 12:17:49 PM 
 **********     abba00071fd4327613e8b160b3b23e88 
 http://www.gamerzgarage.com/index.php?action=admin 
8: Undefined variable: bullet
File: /home/brianjw/public_html/Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 354
 
   Tuxie™   Today 12:17:49 PM 
 **********     abba00071fd4327613e8b160b3b23e88 
 http://www.gamerzgarage.com/index.php?action=admin 
8: Undefined variable: bullet
File: /home/brianjw/public_html/Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 353
 
   Tuxie™   Today 12:17:49 PM 
 **********     abba00071fd4327613e8b160b3b23e88 
 http://www.gamerzgarage.com/index.php?action=admin 
8: Undefined variable: bullet
File: /home/brianjw/public_html/Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 343
Can someone please help me solve these?

4
Coding / Re: [HELP]SMF Shop On Different Theme
« on: March 29, 2008, 10:28:50 am »
I believe all you have to do is modify the themes index.template.php to include the Shop link and that is it. Everything else is coded into the source files and Shop.template files.

5
Requested additions / Many Requests!
« on: March 29, 2008, 05:40:20 am »
Well the simple way of my request is to get a few things that were on dragontalk.net but now it is closed and TechnoDragon is very busy I guess.

A few things I request:
1.) Flying Object that floats around the screen at random times (at a non annoying speed, clickable speed) and only appears every X seconds/minutes (can be set in admin panel) - When clicked it gives them a random amount of something good or bad, like you get 20 karma and 50 coins or you lose 50 coins but with a better creative message. If it appears on more than one members screen, then the first person who clicks on it will get it. If another person already clicked on it or if there is a time limit between when it appears and when you click it then it will show a message when clicked like, "Sorry, bla bla bla it has already been clicked." This item isn't bought through the shop, it is random luck. The user who clicks on it wins and gets stuff from the shop.

2.) Shield that usually will be at a high price to buy in the shop that will protect the user that buys and use forever from being stealed from. AGAIN - it will be very very expensive, like in the 1,000,000 credits area.

6
Well the simplest way to find that out is to check! ;)

7
Items / Re: Teddy Bear Item
« on: January 15, 2008, 05:03:33 am »
The teddy bear item is located on my live sites shop which is currently in maintenance so unfortunately I can not give you any screenshots. Try it out for yourself! :)

8
Items / Teddy Bear Item
« on: January 06, 2008, 07:20:36 am »
I give most credit to Daniel15 for helping me to allow this item to send pms and fix an error of the pm function. I give me credit for the idea and the input part (except pm part of it)

Simply, copy and paste the following code into your favorite php editor. Then save it as teddy.php and upload it to your /Sources/shop/items/ folder. Then you will need to enable it in the shop admin panel.
Code: [Select]
<?php
// Teddy Bear Item
// The author of this item is brianjw and authors name, email, and website must remain in place.
// 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_teddy 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 'brianjw';
// The author's email address
$this->authorEmail 'brianjw@verizon.net';
// The author's website
$this->authorWeb 'http://www.gamerzgarage.com';

// --- Values changeable from within the SMFShop admin panel ---
// The name of the item
$this->name "Teddy Bear";
// The item's description
$this->desc "Buy a Teddy Bear! It will be in your pm inbox to visit you!";
// The item's price
$this->price 100;

// --- Unchageable 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 some inputs,
// so set this to 'true'.
$this->require_input true;
// Set this to 'false' if the item is unusable. This is good for display
// items.
$this->can_use_item true;
}

/*
 * This function is called when the user tries to use the item.
 * If your item needs any further user input then you can get that 
 * input here (eg. if it's a "Change username" item then you have
 * to ask the user what they'd like to change their username to).
 * Any text you return will get shown to the user (DON'T ECHO STUFF).
 */
function getUseInput()
{
return '<b>Name your teddy bear:</b> <input type="text" name="teddy_name" /><br /><b>Your Teddy Bear\'s favorite color:</b> <select name="tcolor">
  <option selected="selected">Blue</option>
  <option>Yellow</option>
  <option>Green</option>
  <option>Gray</option>
  <option>Purple</option>
  <option>Pink</option>
  <option>Brown</option>
  <option>Orange</option>
  <option>Red</option>
  <option>Navy</option>
</select><br />Your teddy bear will also be in your PM inbox so you can see me everytime you go there.'
;
}

// 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()
{
global $context;
require_once('Sources/Subs-Post.php');

// Who is sending the IM
$pmfrom = array(
'id' => 0,
'name' => $_POST['teddy_name'],
'username' => $_POST['teddy_name']
);

// Who is receiving the IM
$pmto = array(
'to' => array($context['user']['id']),
'bcc' => array()
);
// The message subject
$subject 'Your Teddy Bear, ' $_POST['teddy_name'] . '!';
// The actual message
$message '[center][img width=95 height=90]http://yoursite.com/Sources/shop/item_images/Bear.gif[/img][/center][br]I am your teddy bear, ' $_POST['teddy_name'] . '. I will be able to see you every time you stop by your pm inbox. My favorite color is [color=' $_POST['tcolor'] . ']' $_POST['tcolor'] . '[/color]! You can have more than one of me, but Gamerz Garage doesn\'t recommend it as it will fill up your pm box.<br /><br />Your new friend,<br />' $_POST['teddy_name'] . '';
// Send the PM
sendpm($pmto$subject$message0$pmfrom);

return '<b>' $_POST['teddy_name'] . ' is speaking (your teddy bear):</b><br><br>Hello, my name is ' $_POST['teddy_name'] . '!<br>I am your teddy bear and my favorite things to do are to be loved and cared for. ' $_POST['teddy_pm'] . '';
}
}

?>


If you'd like to edit some of what the pm sends to you or members:
FIND:
Code: [Select]
// The actual message
$message = '
and edit the message after that to what you want. If you're keeping the image that is already sent through pm, please change http://yoursite.com/Sources/shop/item_images/Bear.gif to your correct paths.

If you'd like to edit some of what the message is after the user inputs:
FIND:
Code: [Select]
return '<b>' . $_POST['teddy_name'] . ' is speaking (your teddy bear):</b><br><br>Hello, my name is ' . $_POST['teddy_name'] . '!<br>I am your teddy bear and my favorite things to do are to be loved and cared for. ' . $_POST['teddy_pm'] . '';
and edit it as desired.

You can also add more colors to the drop down list that are SMF BBC colors...meaning SMF must have that color in coding somewhere. If the user chooses a color, we will say green...from the drop down:
Code: [Select]
<select name="tcolor"> It will pull the color the user chose into the pm:
Code: [Select]
My favorite color is [color=' . $_POST['tcolor'] . ']' . $_POST['tcolor'] . '[/color]!
I am open for suggestions and comments :) Enjoy :)

brianjw

9
Coding / Re: [ITEM] I need help making my item work the way I want it to
« on: December 27, 2007, 10:51:25 pm »
The entire error I get during this:
Quote
Database Error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /-------/Sources/Subs-Post.php
Line: 809

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.


SELECT
mem.memberName, mem.realName, mem.ID_MEMBER, mem.emailAddress, mem.lngfile, mg.maxMessages,
mem.pm_email_notify, mem.instantMessages, 0 AS ignored,
FIND_IN_SET(0, mem.buddy_list) AS is_buddy, mem.is_activated,
(mem.ID_GROUP = 1 OR FIND_IN_SET(1, mem.additionalGroups)) AS is_admin
FROM smf_members AS mem
LEFT JOIN smf_membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE mem.ID_MEMBER IN ()
ORDER BY mem.lngfile
LIMIT 0

10
Coding / Re: [ITEM] I need help making my item work the way I want it to
« on: December 18, 2007, 11:06:08 am »
Ok, definitely will do this tomorrow. Just reading posts for now. :)

11
Coding / Re: [ITEM] I need help making my item work the way I want it to
« on: December 10, 2007, 11:02:56 am »
BUMP ;)

12
Coding / Re: [ITEM] I need help making my item work the way I want it to
« on: December 04, 2007, 06:17:08 am »
I get this error when trying to use it,
Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /home/content/b/j/w/bjwilson/html/Sources/Subs-Post.php
Line: 809

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
brianjw

13
Coding / Re: [ITEM] I need help making my item work the way I want it to
« on: December 03, 2007, 12:43:42 am »
bump

14
Coding / Re: [ITEM] I need help making my item work the way I want it to
« on: November 30, 2007, 06:34:17 am »
I am not smart enough to know what to do with all those functions lol. :P I don't know php a well enough.
Do you think you can post the complete code needed to do it and tell me like what to find in my code and then to add before/under or replace, lol - like the mod parser ;)?

15
Coding / [ITEM] I need help making my item work the way I want it to
« on: November 29, 2007, 08:08:10 am »
I have made a teddy bear item based off testitem2.php, so I am using this code:
Code attached at end of post

Anyway, I am trying to make it so this teddy bear item automatically sends a pm to the member who is using the item after completing the input, and it sends to them as a guest with the guest name of the name they selected during the input. And I can choose the contents of the pm.

Code: [Select]
<?php
/**********************************************************************************
* SMFShop item                                                                    *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum                                     *
* =============================================================================== *
* Software Version:           SMFShop 3.0 (Build 12)                              *
* $Date:: 2007-01-18 19:26:55 +1100 (Thu, 18 Jan 2007)                          $ *
* $Id:: testitem2.php 79 2007-01-18 08:26:55Z 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.                                                  *
**********************************************************************************/

// 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...');

/*
 * This is a test item that gets some input from the person using it. 
 * Most likely, you'll base your item off this one.
 * Note that all items should try to follow the SMF Coding Guidelines, available
 * from http://custom.simplemachines.org/mods/guidelines.php
 *
 * 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_teddy 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 'brianjw';
// The author's email address
$this->authorEmail 'brianjw@verizon.net';
// The author's website
$this->authorWeb 'http://www.gamerzgarage.com';

// --- Values changeable from within the SMFShop admin panel ---
// The name of the item
$this->name "Teddy Bear";
// The item's description
$this->desc "Buy a Teddy Bear! You may also choose for your teddy bear to hang out in your pm box, so you can visit it.";
// The item's price
$this->price 100;

// --- Unchageable 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 some inputs,
// so set this to 'true'.
$this->require_input true;
// Set this to 'false' if the item is unusable. This is good for display
// items.
$this->can_use_item true;
}

/*
 * This function is called when the user tries to use the item.
 * If your item needs any further user input then you can get that 
 * input here (eg. if it's a "Change username" item then you have
 * to ask the user what they'd like to change their username to).
 * Any text you return will get shown to the user (DON'T ECHO STUFF).
 */
function getUseInput()
{
return '<b>Name your teddy bear:</b> <input type="text" name="teddy_name" /><br /><b>Would you like your teddy bear to hang out with you in your pm box?</b> <input type="radio" name="teddy_pm" value="So I am glad you chose for me to be placed in your pm box (pm the admin to make it work)." />Yes -- <input type="radio" name="teddy_pm" value="So you chosed for me to not be placed in your pm box, so I will be sent back to the shop where another member will take me and care for me." />No';
}

// 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 '<b>' $_POST['teddy_name'] . ' is speaking (your teddy bear):</b><br><br>Hello, my name is ' $_POST['teddy_name'] . '!<br>I am your teddy bear and my favorite things to do are to be loved and cared for. ' $_POST['teddy_pm'] . '';
}
}

?>


Thanks in advance :),
brianjw

Pages: [1] 2