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

Pages: 1 2 3 [4] 5 6 ... 72
46
General SMFShop Discussion / Re: Question about earning SMF Points
« on: February 15, 2008, 07:13:19 am »
Admin panel → Boards → click "modify" next to the board → Untick "Count Shop Points"

47
Bugs / Re: Buying stuff and getting a error
« on: February 15, 2008, 07:10:57 am »
Try run this MySQL query in phpMyAdmin (on the "SQL" tab):
Code: [Select]
ALTER TABLE `smf_shop_items` CHANGE `trading` `trading` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0'
This should fix it

48
Coding / Re: Item that PMs Script Not Working
« on: February 15, 2008, 07:08:02 am »
Quote
class item_wsgp
The item filename needs to be the same as the last bit of the class name. So, either rename the file to wsgp.php, or change that line to class item_pmitem

49
Bugs / Re: SMFShop won't work
« on: February 15, 2008, 07:06:20 am »
Do you have a test account that I could use to take a look?

50
Installation Problems / Re: Parse Error on fresh install.
« on: February 15, 2008, 07:05:37 am »
Hmmm...
Could you please attach your entire Subs.php file here?

51
General SMFShop Discussion / Re: Cant uninstall smf shop
« on: February 15, 2008, 07:02:33 am »
Hmmm... The uninstall script is broken again.
Replace the "SMFShop_3-0_Fresh_Install.zip" file in your Packages directory with the one attached here, it has a fixed uninstall script. It should then uninstall properly, without the "Incorrect table name ''" error.

52
General SMFShop Discussion / MOVED: shop mod theme help?
« on: February 15, 2008, 06:58:01 am »

53
Completed Requests / Re: shop mod theme help?
« on: February 15, 2008, 06:57:51 am »

54
Requested additions / Re: Membergroup based discounts?
« on: February 15, 2008, 06:54:52 am »
Discounts on all items in the shop, or just certain items?

55
General SMFShop Discussion / Re: Question (from Argentina)
« on: February 15, 2008, 06:54:16 am »
Hello,
 Sorry, I can't understand what you're trying to ask. Could you please rephrase your question? :)

56
Items / Re: [RERELEASED] ]Magic 8 Ball
« on: February 15, 2008, 06:51:02 am »
Quote
Hm, I hope it still works with whatever version of the SMF-Shop there is now...lol.
SMFShop hasn't really been updated since January 2007, so it'll be fine ;)

Quote
Here is the solution:
HTML injection doesn't allow them to obtain the admin password nor hack the forum. They're only injecting the HTML into a page that only they can see anyways, so it's pointless.
The correct fix:
Find:
Code: [Select]
function onUse() {Add after:
Code: [Select]
$_POST['question'] = htmlspecialchars($_POST['question']);

57
Installation Problems / Re: Can't Install On v1.1.4
« on: February 15, 2008, 06:47:15 am »
Hello :)
You may continue the installation, but you'll need to edit those two files manually. Make backups of your files before editing any of them. if you're not comfortable with editing files manually, attach the two files here, and I'll edit them for you. Once you get the edited ones, install SMFShop, and then replace those files with the edited ones.



If you want to do it yourself:
The edits you'll need to do are:

Sources/Subs-Boards.php:
Find:
Code: [Select]
// Should the board theme override the user preferred theme?
if (isset($boardOptions['override_theme']))
$boardUpdates[] = 'override_theme = ' . ($boardOptions['override_theme'] ? '1' : '0');
Add after:
Code: [Select]
                //BEGIN SMFShop Shop MOD 1.3 (Build 6) code
// Should posts in this board give credits?
                if (isset($boardOptions['countMoney']))
                    $boardUpdates[] = 'countMoney = ' . ($boardOptions['countMoney'] ? '1' : '0');
                //End Shop MOD

Find:
Code: [Select]
'override_theme' => false,Add after:
Code: [Select]
'countMoney' => 1,
Find:
Code: [Select]
b.override_theme,Add after:
Code: [Select]
b.countMoney,
Find:
Code: [Select]
'override_theme' => $row['override_theme'],Add after:
Code: [Select]
'countMoney' => $row['countMoney'],


Themes/default/Display.template.php
Find:
Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
Replace with:
Code: [Select]
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            // BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code



I do development on SMF 1.1.3 and SMF 1.1.4, s o it should definitely work with those versions.

58
Coding / Re: Translation almost done, but one small prob - pls help
« on: February 15, 2008, 06:42:07 am »
Hello,
 Unfortunately, I'm not exactly sure what could be causing this, as I'm not too familiar with UTF-8 stuff. Perhaps the smf_shop_items table needs to be converted to UTF-8 or something? I'll try to take a look at this.

Edit: This might be related:
I found that all MySQL tables of smfshop using latin1_swedish_ci coding, but i need win1251 cyrillic! Something tels me that i can change coding of each table throught phpMyAdmin.
Start to test

It's worked! If you have the same problem - just change coding of mysql shop tables

59
Requested additions / Re: Change Custom Title... To Something Specific
« on: February 15, 2008, 06:38:01 am »
Quote
For example I wan't them to buy a specific Custom Title.
Sure, that's easy :). there's no item in SMFShop to do that, but you can easily add one. Save this:
Code: [Select]
<?php
/**********************************************************************************
* SMFShop item                                                                    *
***********************************************************************************
* SMFShop: Shop MOD for Simple Machines Forum                                     *
* =============================================================================== *
* 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_ChangeTitle extends itemTemplate
{
function getItemDetails()
{
$this->authorName 'Daniel15';
$this->authorWeb 'http://www.dansoftaustralia.net/';
$this->authorEmail 'dansoft@dansoftaustralia.net';

$this->name 'Change User Title to set value';
$this->desc 'Change your user title to a value specified by the admin';
$this->price 50;

$this->require_input false;
}

function getAddInput()
{
global $item_info;
if ($item_info[1] == 0)
$item_info[1] = '';

return 'Custom title to use: <input name="info1" size="50" value="' $item_info[1] . '" />';
}

function onUse()
{
global $item_info$context$func;

updateMemberData($context['user']['id'], array('usertitle' => '"' $item_info[1] . '"'));
return 'Successfully changed your user title to ' $item_info[1];
}

}

?>

As "ChangeTitle.php" in your SMF Sources/Shop/items/ directory. Then, when you add the item (via Add/Edit/Delete Items in the admin panel), it'll prompt you to enter in a custom title you'd like the item to use :)



60
Installation Problems / Re: Help Install ApolloBB Shop Button
« on: February 15, 2008, 06:23:24 am »
Did you follow the instructions at http://www.dansoftaustralia.net/smfshop_wiki/Themes/ApolloBB? What problems are you having with it?

Pages: 1 2 3 [4] 5 6 ... 72