[ABD] Invite A Friend 0.7.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Bycoja
Registered User
Posts: 127
Joined: Tue Apr 29, 2008 7:55 pm
Location: Germany

Re: [Beta] Invite A Friend 0.2.1

Post by Bycoja » Tue Oct 07, 2008 9:51 am

ttuu wrote:i didit now and its not to help. i still get "You are not authorised to access this area." massage error to the invite.php page.
Check your Users’ permissions ...
(As it works for me and e.g. KellyBean it seems like you're having a blond day :P )

User avatar
KellyBean
Registered User
Posts: 270
Joined: Wed Nov 07, 2007 3:06 pm
Location: Massachusetts
Contact:

Re: [Beta] Invite A Friend 0.2.1

Post by KellyBean » Tue Oct 07, 2008 11:36 am

:lol: Yup, working fine for me. Did you clear your cache and refresh your template?
My Forum | My Design/How-to Site
Need help MODing or customizing your site? I can do it for a very reasonable fee. Contact me!

Image

ttuu
Registered User
Posts: 224
Joined: Wed Feb 13, 2008 6:28 pm

Re: [Beta] Invite A Friend 0.2.1

Post by ttuu » Tue Oct 07, 2008 11:52 am

:( for me its not work.
yes i clear cache and refresh template.
thanks for your help.

Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [Beta] Invite A Friend 0.2.1

Post by Kharon » Tue Oct 07, 2008 12:09 pm

acp - Invite a friend - log link error ..

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_invite.php on line 187: Undefined variable: new_user_row
acp_invite.php on line 187

Code: Select all

include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
---------------------------------


thanks it is working
Bycoja wrote: Find:

Code: Select all

// Get some information about the new user and set vars
$this->get_new_user($new_user_id);
Add after:

Code: Select all

// Fix: [phpBB Debug]: Undefined variable: invitation_data
		if ($this->config['auth_key'] == 2 && empty($key))
		{
			return false;
		}
(Will be fixed in 0.2.2)

Bycoja
Registered User
Posts: 127
Joined: Tue Apr 29, 2008 7:55 pm
Location: Germany

Re: [Beta] Invite A Friend 0.2.1

Post by Bycoja » Tue Oct 07, 2008 12:39 pm

Kharon wrote:acp - Invite a friend - log link error ..

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_invite.php on line 187: Undefined variable: new_user_row
acp_invite.php on line 187

Code: Select all

include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
Open: includes/acp/acp_invite.php

Find (Line 174-187):

Code: Select all

// Get information about all new users, who were invited by our current user
							$sql3			= 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . $invitations_row['new_user'];
							$result3 		= $db->sql_query($sql3);
								
							while ($row3 = $db->sql_fetchrow($result3))
							{
								foreach ($row3 as $k2 => $v2)
								{
									$new_user_row[$k2] = utf8_normalize_nfc($v2);
								}
							}
							
							// Add them to an array so we can use implode() later
							$new_users[] = get_username_string('full', $new_user_row['user_id'], $new_user_row['username'], $new_user_row['user_colour'], false, $profile_url);
Replace with:

Code: Select all

// Fix: [phpBB Debug]: Undefined variable: new_user_row
						if ($invitations_row['new_user'])
						{
							// Get information about all new users, who were invited by our current user
							$sql3			= 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . $invitations_row['new_user'];
							$result3 		= $db->sql_query($sql3);
								
							while ($row3 = $db->sql_fetchrow($result3))
							{
								foreach ($row3 as $k2 => $v2)
								{
									$new_user_row[$k2] = utf8_normalize_nfc($v2);
								}
							}
							
							// Add them to an array so we can use implode() later
							$new_users[] = get_username_string('full', $new_user_row['user_id'], $new_user_row['username'], $new_user_row['user_colour'], false, $profile_url);
						}
(Will be fixed in 0.2.2)

User avatar
Eragon
Registered User
Posts: 218
Joined: Tue Oct 07, 2008 1:57 pm

Re: [Beta] Invite A Friend 0.2.1

Post by Eragon » Tue Oct 07, 2008 2:07 pm

when will it be release? (0.2.2)

it is not sending e mail (register key) (hotmail,gmail etc)

but test@mysite.com working (sending mail)

Bycoja
Registered User
Posts: 127
Joined: Tue Apr 29, 2008 7:55 pm
Location: Germany

Re: [Beta] Invite A Friend 0.2.1

Post by Bycoja » Tue Oct 07, 2008 5:57 pm

Eragon wrote:when will it be release? (0.2.2)

it is not sending e mail (register key) (hotmail,gmail etc)

but test@mysite.com working (sending mail)
Are you sure you spelled the e-mail address correctly and entered an existing one in ACP 'E-mail settings'? I just tested it with gmail and it works fine. ;)
(Actually it should always work as the mod uses phpbb's function to send emails ...)

Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [Beta] Invite A Friend 0.2.1

Post by Kharon » Wed Oct 08, 2008 8:03 pm

bump

I am waiting 0.2.2 version :)

thanks

Bycoja
Registered User
Posts: 127
Joined: Tue Apr 29, 2008 7:55 pm
Location: Germany

Re: [Beta] Invite A Friend 0.2.2

Post by Bycoja » Fri Oct 10, 2008 3:48 pm

Version: [Beta] 0.2.2:

* [Added] Compatibility with 'Cash Mod'
* [Added] Highly improved log
* [Added] UCP Module
* [Fixed] Report #009: [phpBB Debug] Undefined variable: new_user_row
* [Fixed] Report #008: [phpBB Debug] Undefined variable: invitation_data

User avatar
KellyBean
Registered User
Posts: 270
Joined: Wed Nov 07, 2007 3:06 pm
Location: Massachusetts
Contact:

Re: [Beta] Invite A Friend 0.2.2

Post by KellyBean » Sat Oct 11, 2008 2:10 am

Thanks! I'll be updating in the morning! Thanks for the great MOD. :)
My Forum | My Design/How-to Site
Need help MODing or customizing your site? I can do it for a very reasonable fee. Contact me!

Image

Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [Beta] Invite A Friend 0.2.2

Post by Kharon » Sat Oct 11, 2008 10:58 am

version 0.2.2

Invitation log page

Username [Details]:

Code: Select all

PHP Notice: in file /includes/functions_invite.php on line 618: Undefined variable: new_user_row
functions_invite.php on line 618:

Code: Select all

$new_users[] = get_username_string('full', $new_user_row['user_id'], $new_user_row['username'], $new_user_row['user_colour'], false, $profile_url);
suggestion :
Image



thanks

Bycoja
Registered User
Posts: 127
Joined: Tue Apr 29, 2008 7:55 pm
Location: Germany

Re: [Beta] Invite A Friend 0.2.2

Post by Bycoja » Sat Oct 11, 2008 11:21 am

Kharon wrote:Username [Details]:

Code: Select all

PHP Notice: in file /includes/functions_invite.php on line 618: Undefined variable: new_user_row
functions_invite.php on line 618:

Code: Select all

$new_users[] = get_username_string('full', $new_user_row['user_id'], $new_user_row['username'], $new_user_row['user_colour'], false, $profile_url);
Can you post a screenshot of the data in phpbb_iaf_keys table? As I'm using the following sql:

Code: Select all

$sql 			= 'SELECT * FROM ' . INVITE_KEYS_TABLE . ' WHERE user_id = ' . $data['user_id'] . ' AND key_used = 1';
... this error actually can't occur except key_used = 1 and new_user = 0 in phpbb_iaf_keys. (As those values are always inserted at the same time key_used = 1 and new_user = 0 is not possible if you don't change the data in phpbb_iaf_keys)

Hm... anyway, here's your fix:
------------------------------------------------------------------------------
Open: includes/functions_invite.php

Find (604-618):

Code: Select all

// Get information on all new users, who were invited by our current user
				$sql2			= 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . $invitations_row['new_user'];
				$result2 		= $db->sql_query($sql2);
					
				while ($row2 = $db->sql_fetchrow($result2))
				{
					foreach ($row2 as $k2 => $v2)
					{
						$new_user_row[$k2] = utf8_normalize_nfc($v2);
					}
				}
				$db->sql_freeresult($result2);
				
				// Add them to an array so we can use implode() later
				$new_users[] = get_username_string('full', $new_user_row['user_id'], $new_user_row['username'], $new_user_row['user_colour'], false, $profile_url);
Replace with:

Code: Select all

// Fix: Undefined variable: new_user_row
			if ($invitations_row['new_user'])
			{
				// Get information on all new users, who were invited by our current user
				$sql2			= 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . $invitations_row['new_user'];
				$result2 		= $db->sql_query($sql2);
					
				while ($row2 = $db->sql_fetchrow($result2))
				{
					foreach ($row2 as $k2 => $v2)
					{
						$new_user_row[$k2] = utf8_normalize_nfc($v2);
					}
				}
				$db->sql_freeresult($result2);
				
				// Add them to an array so we can use implode() later
				$new_users[] = get_username_string('full', $new_user_row['user_id'], $new_user_row['username'], $new_user_row['user_colour'], false, $profile_url);
			}

Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [Beta] Invite A Friend 0.2.2

Post by Kharon » Sat Oct 11, 2008 12:28 pm

thanks problem solved :)

User avatar
KellyBean
Registered User
Posts: 270
Joined: Wed Nov 07, 2007 3:06 pm
Location: Massachusetts
Contact:

Re: [Beta] Invite A Friend 0.2.2

Post by KellyBean » Sun Oct 12, 2008 1:07 am

I updated from 0.2.1 to 0.2.2 and now the link in overall_header.html is gone. Any idea why? TIA!

ETA: Nevermind... I see that you removed that link from the MOD. I personally liked it there, so I added it back. :lol:
My Forum | My Design/How-to Site
Need help MODing or customizing your site? I can do it for a very reasonable fee. Contact me!

Image

issjut
Registered User
Posts: 113
Joined: Tue Oct 09, 2007 5:02 am
Location: Berlin, Germany

Re: [Beta] Invite A Friend 0.2.2

Post by issjut » Sun Oct 12, 2008 9:58 am

please delete my post! Thx
sorry for my bad English ;-)

Locked

Return to “[3.0.x] Abandoned MODs”