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

Pages: [1]
1
Coding / Re: Send automated PM?
« on: November 21, 2006, 11:32:10 am »
Quote
whenever i try to use this code in my items. i get Parse error: syntax error, unexpected T_VARIABLE

anything i went wrong?

There's a slight mistake in my code!
Find:

$subject 
"Subject of the message"

And add a semicolon to the end:

$subject 
"Subject of the message";


its working fine for me.. thanks..

2
Coding / Re: Bonus points for Topic Starter
« on: November 18, 2006, 02:44:42 pm »
Hi,
 Yeah, it doesn't allow floating point interest values. Try doing this patch (link) to your ShopAdmin.php file, and it should work properly.

thanks so much.. i think it works.. at least it displays well..

3
Coding / Re: Bonus points for Topic Starter
« on: November 17, 2006, 04:37:52 pm »
i am using the latest version.. 2.3 right? whenever i set 0.something interest it becomes 0%.. how to make it work?

4
Coding / Re: Send automated PM?
« on: November 17, 2006, 08:43:14 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.

whenever i try to use this code in my items. i get Parse error: syntax error, unexpected T_VARIABLE

anything i went wrong?

5
Coding / Re: Bonus points for Topic Starter
« on: November 17, 2006, 08:24:24 am »
but the shop does not allow floating point interest right.. that's the problem

6
Items / Re: New Item: Buy Membergroup
« on: November 16, 2006, 06:59:04 pm »
Hi, really thanks for this.. actually i am letting my user buy a limited time access to a certain user group..

i dun think it is possible to set a time limit for the membergroup change, can i bother you to help me code it such that whenever someone uses this item, it send a pm to me so i know the date they used the item afterwhich i can decide when to remove the usergroup manually..

Pages: [1]