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

Pages: [1]
1
Items / Re: Pay to access Arcade?
« on: December 20, 2006, 05:46:43 am »
Really easy do to. Make a member group that has permissions to play in the arcade. Then use the item at http://www.daniel15.com/forum/index.php/topic,369.0.html
to let them buy their self into the member group.

2
Coding / Re: Receive credits for referral
« on: December 17, 2006, 01:12:00 pm »
Could you add something to the  referral module to do this?
Referral Module: http://www.wonderforum.com/index.php?topic=12.0

3
General SMFShop Discussion / Re: Credits Doubling?
« on: December 12, 2006, 07:06:53 am »
Go to the sources directory and open post.php.
Then search for
Code: [Select]
// If we do give credits, then how much?Delete the following code until it is there only once.
 
Code: [Select]
              //BEGIN SMFShop Shop MOD 1.3 (Build 6) code
// Get if this board gives credits for posting
                $result_shop = db_query("SELECT countMoney
                                         FROM {$db_prefix}boards
                                         WHERE ID_BOARD = $board
                                         LIMIT 1", __FILE__, __LINE__);
                $row_shop = mysql_fetch_array($result_shop, MYSQL_ASSOC);
               
                // If we do give credits, then how much?
                if (isset($row_shop['countMoney']) && $row_shop['countMoney'] == "1") {
                    //For a new topic, you get...
                    if ($newTopic)
                        $result_shop = db_query("UPDATE {$db_prefix}members
                                                 SET money = money + {$modSettings['shopPointsPerTopic']}
                                                 WHERE ID_MEMBER = {$ID_MEMBER}
                                                 LIMIT 1", __FILE__, __LINE__);
                    else
                        $result_shop = db_query("UPDATE {$db_prefix}members
                                                 SET money = money + {$modSettings['shopPointsPerPost']}
                                                 WHERE ID_MEMBER = {$ID_MEMBER}
                                                 LIMIT 1", __FILE__, __LINE__);
                }
                //End Shop MOD

4
General SMFShop Discussion / Re: Support for SMF 1.1?
« on: December 05, 2006, 11:34:38 am »
Could you please tell me what you had to change?

5
General SMFShop Discussion / Support for SMF 1.1?
« on: December 03, 2006, 01:40:15 pm »
I did a clean install of smf 1.1 (my old one was to buggy) and the shop will not install. Here is what I get:

Installation Readme
Sorry, your SMF version isn't supported by SMFShop! Please contact Daniel15 at http://www.dansoftaustralia.net/ for more details.

Install Actions
Installations actions for "SMFShop":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Any idea when it will be supported? Thanks!

6
Coding / Re: Send automated PM?
« on: November 21, 2006, 10:21:27 am »
Here is the code I used to make the item.
Code: [Select]
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2006 DanSoft Australia           |
|      http://www.dansoftaustralia.net/        |
\**********************************************/

//File: sendpm.php
//      Email the admin item

// VERSION: 2.3 (Build 11)
// $Date: 2006-10-21 13:34:18 +1000 (Sat, 21 Oct 2006) $
// $Id: EmailAdmin.php 24 2006-10-21 03:34:18Z daniel15 $

class item_sendpm extends itemTemplate {

    function 
getItemDetails() {
$this->authorName "Daniel15";
$this->authorWeb "http://www.dansoftaustralia.net/";
$this->authorEmail "dansoft@dansoftaustralia.net";

        
$this->name "Send PM to Admin v2";
        
$this->desc "Send off an PM to the admin. A good use for this (for a web host) is an 'Add 100MB of Webspace to your hosting account'";
        
$this->price 10;
    }
$result db_query("SELECT money, memberName, realName











FROM 
{$db_prefix}members











WHERE ID_MEMBER = 
{$ID_MEMBER}











LIMIT 1"
__FILE____LINE__);

$row mysql_fetch_array($resultMYSQL_ASSOC);
$membersUserName $row['memberName'];
$membersName $row['realName'];

$pmfrom = array(



'id' => $ID_MEMBER,



'name' => $membersName,



'username' => $membersUserName
);






$pmto = array(



'to' => array(1),



'bcc' => array()
);






$subject "Subject of the message";
$message "Actual message goes here!";
sendpm($pmto$subject$message0$pmfrom);
?>
It gives me
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/chougard/public_html/smf/Sources/shop/items/sendpm.php on line 26

Thanks for any help!

7
Coding / Re: Send automated PM?
« on: November 12, 2006, 12:24:32 am »
For sending PM's, my code is similar to:

$result 
db_query("SELECT money, memberName, realName
	
	
	
	
	
FROM 
{$db_prefix}members
	
	
	
	
	
WHERE ID_MEMBER = 
{$ID_MEMBER}
	
	
	
	
	
LIMIT 1"
__FILE____LINE__);

$row mysql_fetch_array($resultMYSQL_ASSOC);
$membersUserName $row['memberName'];
$membersName $row['realName'];

$pmfrom = array(
	
'id' => $ID_MEMBER,
	
'name' => $membersName,
	
'username' => $membersUserName
);
	
	

$pmto = array(
	
'to' => array(1),
	
'bcc' => array()
);
	
	

$subject "Subject of the message"
$message "Actual message goes here!";
sendpm($pmto$subject$message0$pmfrom);


This sends a message 'from' the user running the script, to the admin (ID = 1). Just change the '1' in array(1) to send the IM to a different user.
Could someone tell me how to make a item out of that code? When I copied an item code into a new file and replaced the codes with this, I was given an error.

8
Items / Re: Item: Egg your victims avatar
« on: October 23, 2006, 04:49:41 am »
I added the item to my forum, and when I was testing the item, it would change the url of the avatar, but not create the new avatar in the egged directory. I have used the permissons 755 and 777. The host I am using is x10hosting, and the url to my forum is http://forum.soccergeekz.uni.cc. Does the avatar folder need certain permissions (it's 775)? Thanks for the item and any help!

9
General SMFShop Discussion / Add to member group item
« on: August 05, 2006, 02:42:12 pm »
Is there an item that can add a user to the member group specified in the back end? Could someone please code me one? Thanks for any help!

Pages: [1]