this. and maybe get a certain amount of points for winning a contest (first, second, third place)IronDogg wrote:Are feature requests still open? If so, is there possibility for consideration to make compatible/integrate with Ultimate Points System mod?
Maybe a user gets a certain number of points for sending out a refferal, and then a certain number of points for the refferal being successful, etc.
me._Al wrote:Nice work Siropu!
Anyone using this successfully?
I actually hope you do not integrate with other points mods. One of the things I like about this mod is that is simple and does what it is supposed to do. All the other referral mods that are in development and have been abandoned all attempted to integrate other points mods. Then they tried to integrate other mods. They became too complicated and defeated the purpose of the mod. This mod is perfect the way it is.IronDogg wrote:Are feature requests still open? If so, is there possibility for consideration to make compatible/integrate with Ultimate Points System mod?
Maybe a user gets a certain number of points for sending out a refferal, and then a certain number of points for the refferal being successful, etc.
Sorry but I'm not planning to integrate this MOD with other MODs.IronDogg wrote:Are feature requests still open? If so, is there possibility for consideration to make compatible/integrate with Ultimate Points System mod?
Code: Select all
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 '' at line 3 [1064]
If you don't mind, you can upload the files somewhere and post a download link here.2FR3 wrote:Hi & thx for this good work, the mod is French Ready if u want
Code: Select all
'CONTEST_POS' => '<img src="' . $phpbb_root_path . 'images/contest_pos_' . $i++ . '.gif" alt="" />',
Code: Select all
<p><span>{L_CONTEST_INFO}:</span> {CONTEST_DESCRIPTION}</p>
<p><span>{L_CONTEST_DURATION}:</span> {CONTEST_DURATION}</p>
<p><span>{L_CONTEST_START_DATE}:</span> {CONTEST_START_DATE}</p>
<p><span>{L_CONTEST_END_DATE}:</span> {CONTEST_END_DATE}</p>
<p><span>{L_CONTEST_STATUS}:</span> {CONTEST_STATUS}</p>
Code: Select all
if (isset($rid))
Code: Select all
if (!empty($rid))
Code: Select all
'CONTEST_POS' => '<img src="' . $phpbb_root_path . 'images/contest_pos_' . $i++ . '.gif" />',
)
);
Code: Select all
'CONTEST_POS' => '<img src="' . $phpbb_root_path . 'images/contest_pos_' . $i . '.gif" alt="' . $i . '" />',
)
);
$i++;
Code: Select all
'tz' => request_var('tz', (float) $timezone),
Code: Select all
'referrer' => request_var('referrer', ''),
Code: Select all
// Check and initialize some variables if needed
if ($submit)
Code: Select all
$rid = request_var($config['cookie_name'] . '_referrer_id', '', false, true);
if (!empty($rid))
{
$sql = 'SELECT username, user_referrals
FROM ' . USERS_TABLE . '
WHERE user_id = ' . $rid;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$referrer = $row['username'];
}
Code: Select all
if (!sizeof($error))
{
if ($data['new_password'] != $data['password_confirm'])
{
Code: Select all
/*Referrer input Box*/
if ($data['referrer']) {
$sql_array_ref = array(
'username' => $data['referrer'],
);
$sql = 'SELECT user_id
FROM ' . USERS_TABLE . '
WHERE ' . $db->sql_build_array('SELECT', $sql_array_ref);
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
if (!$row)
{
$error[] = $user->lang['NO_REFFERER_WITH_NAME'];
}
}
Code: Select all
// Begin Referral MOD
$rid = request_var($config['cookie_name'] . '_referrer_id', '', false, true);
if (!empty($rid))
{
Code: Select all
// Begin Referral MOD
if ($referrer || $data['referrer'])
{
if (!$referrer && $data['referrer'] || ($referrer && $data['referrer']) && ($referrer != $data['referrer']))
{
$sql_array = array(
'username' => $data['referrer'],
);
$sql = 'SELECT user_id
FROM ' . USERS_TABLE . '
WHERE ' . $db->sql_build_array('SELECT', $sql_array);
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$rid = $row['user_id'];
}
Code: Select all
'EMAIL_CONFIRM' => $data['email_confirm'],
Code: Select all
'REFERRER' => $data['referrer'] ? $data['referrer'] : $referrer,
Code: Select all
'REFERRALS' => 'Referrals',
Code: Select all
'REFERRER' => 'Referrer',
'NO_REFFERER_WITH_NAME' => 'Referral: No user with that username',
Code: Select all
<dl>
<dt><label for="tz">{L_TIMEZONE}:</label></dt>
<dd><select name="tz" id="tz" tabindex="6" class="autowidth">{S_TZ_OPTIONS}</select></dd>
</dl>
Code: Select all
<dl>
<dt><label for="referrer">{L_REFERRER}:</label></dt>
<dd><input type="text" tabindex="5" name="referrer" id="referrer" size="25" maxlength="50" value="{REFERRER}" class="inputbox autowidth" title="{L_REFERRER}" /></dd>
</dl>
<hr />