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

Pages: [1]
1
General SMFShop Discussion / buy multiple items at once
« on: November 04, 2006, 09:39:52 am »
what should I change to be able to buy multiple items at once? I have some rather cheap items (flower, beer..); I usually want to buy a whole bunch, but I have to do it one item at a time.
Thanks

2
Items / Re: Karma Bash item
« on: August 02, 2006, 03:23:01 pm »
well, why only bashing? We can boost karma points as well
I did some minor modifications to tazpot/daniel15's files and I creeated "KarmaBoost"; I tested, it works (I have no expertise whatsoever in scripting, I just did it intuitively).

Code: [Select]
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.com/        |
\**********************************************/

//File: KarmaBoost.php
//      Item

//VERSION: 1.1 (Build 4)
//DATE: 1st August 2006
//Author Tazpot
//Helped by Basil Beard

// Slightly modified by Daniel15
// Further modified by Tapirul

class item_KarmaBoost extends itemTemplate {
    function 
getItemDetails() {
        
$this->name "Karma Boost";
        
$this->desc "Boost xx points for another members karma";
        
$this->price 50;

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

    function 
getAddInput() {
        return 
"Amount to increase karma by: <input type='text' name='info1' value='100'>";
    }

    function 
getUseInput() {
        global 
$context$scripturl$settings$txt;
        return 
"Karma Boost: <input type='text' name='boostwho' size='50'>
         <a href='
{$scripturl}?action=findmember;input=boostwho;quote=0;sesc={$context['session_id']}' onclick='return reqWin(this.href, 350, 400);'><img src='{$settings['images_url']}/icons/assist.gif' border='0' alt='{$txt['find_members']}' /> Find Member</a>";
    }

    function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;

        
$result db_query("UPDATE {$db_prefix}members
                               SET karmaGood = karmaGood + 
{$item_info[1]}
                               WHERE membername = '
{$_POST['boostwho']}'"
                           
,__FILE____LINE__);
        return 
"Successfully boosted {$item_info[1]} karma points for {$_POST['boostwho']}!";


        
$result db_query("SELECT ID_MEMBER
                      FROM 
{$db_prefix}members
                      WHERE memberName = '
{$_POST['boostwho']}'"__FILE____LINE__);
        
$row mysql_fetch_array($resultMYSQL_ASSOC);
        
$pmfrom = array(
            
'id' => 1,
            
'name' => 'tazpot',
            
'username' => 'tazpot'
        
);
        
        
$pmto = array(
            
'to' => array($row['ID_MEMBER']),
            
'bcc' => array()
        );

        
sendpm($pmto'You have been boosted'"{$user} boosted {$item_info[1]} points for your karma! [i] You do not need to reply to this automated message[/i]"0$pmfrom);
        return 
"You have boosted {$_POST['boostwho']} for {$item_info[1]} points for their karma!";
    }
}
?>

Now, the only things would be to record the points bashed/boosted to KarmaLog (from Karma Description Mod, and to prevent boosting own karma.....Any help with that?
Thanks

3
General SMFShop Discussion / Re: SMFShop 2.2 now out!!
« on: July 31, 2006, 11:42:20 am »
I upgraded from SMF Shop 2.1 (using the correct package); it said "installed successfully"  (all tests passed), however, now if I click on "Shop" or "inventory" I get "error: unable to load 'main' template".
I tried to uninstall and now it's kind of a mess.
What do you think the problem was? I'll try to install it manually, cross fingers...(although I am not sure how to update the database, I am totally nill at SQL and such...I have shell access and myPHPAdmin....There is InstallScript.php with commands, but as I said...)

I add some information... I rechecked all files (tried to install manually), it seems that everything is in place already...However, same problem
I get in Error log a bunch of "undefined index: shop_...", mostly in subs.php and shop.php, at corresponding lines.

What can I do?
In admin panel, also, the shop's settings area disappeared, looks like this:



For Joseph21, the upgrade file is here - shop 2.1 -> 2.2

4
General SMFShop Discussion / Re: SMFShop 2.2 now out!!
« on: July 30, 2006, 05:11:16 pm »
I upgraded from SMF Shop 2.1 (using the correct package); it said "installed successfully"  (all tests passed), however, now if I click on "Shop" or "inventory" I get "error: unable to load 'main' template".
I tried to uninstall and now it's kind of a mess.
What do you think the problem was? I'll try to install it manually, cross fingers...(although I am not sure how to update the database, I am totally nill at SQL and such...I have shell access and myPHPAdmin....There is InstallScript.php with commands, but as I said...)

5
SMFShop Announcements / Re: Latest development code for Beta testers!
« on: July 15, 2006, 01:28:34 am »
can you tell us what's new? that is, before we download and try...
thanks

6
General SMFShop Discussion / Re: Owner problem
« on: July 15, 2006, 01:06:49 am »
Hello
I am hosting my forum on my university's server (we have 1G of space available), and is a Linux-based server...I tried to CHMOD the files (through FTP, we don't have cPanel) and it didn't work
 I had the same problem when I installed Gallery 2 - Photo Album Organizer, so it seems to be an issue with how the scripts are managed on the server..
I asked the computer service guys to CHMOD the folders and it worked, so everything is fine,  just wanted to mention that it could happen

7
General SMFShop Discussion / Owner problem
« on: July 11, 2006, 09:50:35 am »
I've installed the Shop Mod and it works fine, but I have a major problem:  the new folders/items installed by the mod have no owner (appears as "(?)"), therefore I cannot do anything with them (for example, if I try to add an item it says "acces denied, not owner").

PS I didn't have this problem with other Mods...

Pages: [1]