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

Pages: [1]
1
Coding / How to get credits for Referrals (Using Referrals Mod)
« on: November 12, 2007, 04:59:01 am »
Many people (like me) want a referral mod in which we can get credits from. I searched around and couldnt find it here, so I looked elsewhere. Anyways, I found something that will work amazingly!

First, install the referrals mod:
http://custom.simplemachines.org/mods/index.php?mod=836

After installing it the usual way through the package manager, use your ftp program to download Register.php from /Sources.

Once you have that file, open it with an editor (like notepad) and find the following line:
Code: [Select]
// updateMemberData((int) $_POST['referredby'], array('money' => 'money + 100',));(the needed code is conveniently already in the mod)

Remove the two slashes and the space after it (// ) and set the 100 to whatever amount of credits you want your members to receive when the referral is signed up. Save the file and upload it to your Sources Folder. (You should back up the other one incase rather than over writing it) Now, when someone is referred using their referral ID, they will get credits and it will show the number of referrals in their profile that they've gotten.

I posted this incase anyone wasn't aware that this could be done so easily! :P

2
Coding / Re: Combinding with the invite mod
« on: February 25, 2007, 11:54:23 pm »
Meh, I just dont like the invite one, so Im gonna use the Affiliates mod.

3
Coding / Re: Combinding with the invite mod
« on: February 25, 2007, 10:46:15 am »
Im having a lot of trouble on my forum with this mod, is there any way to do this with the affiliate mod?
http://custom.simplemachines.org/mods/index.php?mod=287

4
Coding / Re: Bank Interest????
« on: February 24, 2007, 11:38:41 am »
It works, now, its all good ;)

5
Coding / Re: Referal Points
« on: February 24, 2007, 10:22:42 am »
Yea, I am using 4.0 I checked my CPanel. Well, I hope the author fixes this to support older SQL or my host upgrades!

6
Coding / Re: Referal Points
« on: February 20, 2007, 01:05:42 am »
That is kinda what I meant, but when I try to install it in the package manager, I get this:

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 'DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci' at line 11
File: /home/content/m/a/n/maniakc/html/forums/Packages/temp/db.php
Line: 16

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

Im gonna try the upgrade.php thing...

EDIT: Ok, now it shows that message without the "Note" thing...

7
Coding / Referal Points
« on: February 19, 2007, 12:39:38 pm »
I wanna be able to give 1000 points to all the people who refer someone else, but I'm too lazy to do it every time. Is there any plan to add this in a future version of SMF Shop? With the list of people who've been referred and how many points they received from the referrals. Maybe in the next release? I've tried the affiliates mod, but I don't wanna use that because its confusing with the $ thing. Might there be a way to modify the points from the affiliates mod to go with the shop points? Anyway, this is something I'd like to see happen if anyone is up for this job, or if you, Daniel15, want to add it to the next version. It would be the best thing to help get members!

8
Items / Re: Change Member Group
« on: February 18, 2007, 02:09:56 am »
Hey, it's PSPXavier! Wheres your Forum!? haven't talked to you in a while!

9
SMFShop Announcements / Re: Bank interest without cron job? Read this!
« on: January 25, 2007, 09:05:59 am »
This doesnt work for me, I get a white screen then nothing happens when I run the script in IE. Am I supposed to run it some other way?

Got it to work on another PC!  :)

10
Cant wait for this, I want to set up a bonus thing like you have here because itll motivate people to make longer and more pontful posts! xD

11
Coding / Re: Bank Interest????
« on: January 14, 2007, 04:07:12 am »
Its likely that its the simplest thing, I know nothing about php.
Code: [Select]
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2005 DanSoft Australia           |
|      http://www.dansoftaustralia.com/        |
\**********************************************/

//File: dointerest.php
//      The file to add interest to member's bank

//VERSION: 1.31 (Build 7)
//DATE: 10th December 2005

include('/home/content/m/a/n/maniakc/html/forums/SSI.php');

$interest_rate $modSettings['shopInterest'] / 100;
db_query("UPDATE {$db_prefix}members
SET moneyBank = moneyBank + (moneyBank*
{$interest_rate})"__FILE__
__LINE__);

echo 
"Interest added at ".date("d/m/Y h:i:s A");
?>


Its probably just something I forgot to add.

12
Coding / Re: Bank Interest????
« on: January 12, 2007, 07:17:53 am »
Displays:

Warning: main(/home/content/m/a/n/html/forums/SSI.php): failed to open stream: No such file or directory in /home/content/m/a/n/maniakc/html/forums/dointerest.php on line 14

Warning: main(/home/content/m/a/n/html/forums/SSI.php): failed to open stream: No such file or directory in /home/content/m/a/n/maniakc/html/forums/dointerest.php on line 14

Warning: main(): Failed opening '/home/content/m/a/n/html/forums/SSI.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/m/a/n/maniakc/html/forums/dointerest.php on line 14

Fatal error: Call to undefined function: db_query() in /home/content/m/a/n/maniakc/html/forums/dointerest.php on line 17

13
Coding / Re: Bank Interest????
« on: January 10, 2007, 04:45:45 pm »
Sorry for bumping this, but Im using GoDaddy and they dont have the same kind of CPanel, is there another way to do it?

14
Items / Re: Magic 8 Ball
« on: January 10, 2007, 12:21:52 pm »
Best item ever! :P

Its very pointless, but I love it, thanks for the great item! :D

Pages: [1]