[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.
Locked
Bycoja
Registered User
Posts: 127
Joined: Tue Apr 29, 2008 7:55 pm
Location: Germany

Re: [BETA] Invite A Friend 0.5.3

Post by Bycoja » Thu Nov 26, 2009 1:54 pm

LunaTickrf wrote:Am i the only one who's getting this error: invite->invite(): Not installed

What's up with that, there's no install file included with the pack :/
The mod is installed and the database tables are created automatically, when you add Invite A Friend module from dropdown in ACP (see DIY instructions).
If you are not able to get to the ACP because of the error, follow these steps:

Open: ../includes/functions_invite.php

Find (line 55):

Code: Select all

			trigger_error('invite->invite(): Not installed.', E_USER_ERROR);
Replace with:

Code: Select all

			// trigger_error('invite->invite(): Not installed.', E_USER_ERROR);
Now go to ACP and install the mod as you are told to do in the DIY instructions.

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

Re: [BETA] Invite A Friend 0.5.3

Post by Bycoja » Thu Nov 26, 2009 3:06 pm

Please note that I've just uploaded a new .zip file with the bugfix I posted before - it wasn't a bug actually, but might have caused problems. There's also a small change to the template function, so it converts HTML entities back to characters correctly now.

If you've already installed version 0.5.3, please download the new .zip and replace your old ../includes/functions_invite.php with the new one.

mj1985
Registered User
Posts: 79
Joined: Sun Oct 18, 2009 9:11 pm

Re: [BETA] Invite A Friend 0.5.3

Post by mj1985 » Thu Nov 26, 2009 4:11 pm

There is bug in the SQL:

Code: Select all

--
-- Change the prefix if required!
--

[b]DROP TABLE `phpbb_invite_messages`;[/b]

--
-- Change the prefix if required!
--

UPDATE `phpbb_invite_config` SET `config_name` = 'enable_ultimate_points' WHERE `config_name` = 'enable_points';
UPDATE `phpbb_invite_config` SET `config_name` = 'ultimate_points_invite' WHERE `config_name` = 'points_invite';
UPDATE `phpbb_invite_config` SET `config_name` = 'ultimate_points_register' WHERE `config_name` = 'points_register';

--
-- Change the prefix if required!
--

UPDATE `phpbb_config` SET `config_value` = '0.5.3' WHERE `config_name` = 'invite_version';
This:

Code: Select all

DROP TABLE `phpbb_invite_messages`;
should be

Code: Select all

DROP TABLE `phpbb_invite_message`;
www.drhouse-forum.de - House MD Forum

Peter77sx
Registered User
Posts: 3257
Joined: Wed Nov 09, 2005 2:51 pm

Re: [BETA] Invite A Friend 0.5.3

Post by Peter77sx » Thu Nov 26, 2009 6:43 pm

Another thing... if you enable "Newly registerd users" in ACP and you assign a new registerd user to "x" group with this MOD, they still show up in Newly registerd users group.

djfred
Registered User
Posts: 8
Joined: Sun Nov 01, 2009 5:16 pm

Re: [BETA] Invite A Friend 0.5.3

Post by djfred » Thu Nov 26, 2009 6:48 pm

My forum: http://www.identifytracks.com/forum

I've got a problem with the install file for Subsilver2. It says

Code: Select all

Find
Tip: This may be a partial find and not the whole line.

Code:Select all
					<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --> &nbsp;<a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /> {L_REGISTER}</a>
					<!-- ENDIF -->

Code: Select all

Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code:Select all
					<!-- IF S_DISPLAY_INVITE --> &nbsp;<a href="{U_INVITE_A_FRIEND}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {L_ACP_INVITE}</a><!-- ENDIF -->
But I cannot find it!

Can anybody help me?
This is the code of my styles/subsilver2/template/overall_header.html

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
	if ({S_NEW_PM})
	{
		popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
	}
<!-- ENDIF -->

function popup(url, width, height, name)
{
	if (!name)
	{
		name = '_popup';
	}

	window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
	return false;
}

function jumpto()
{
	var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';

	if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
	{
		if (base_url.indexOf('?') == -1)
		{
			document.location.href = base_url + '?start=' + ((page - 1) * per_page);
		}
		else
		{
			document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
		}
	}

/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
	var parent = document.getElementById(id);
	if (!parent)
	{
		eval('parent = document.' + id);
	}

	if (!parent)
	{
		return;
	}

	var rb = parent.getElementsByTagName('input');
	
	for (var r = 0; r < rb.length; r++)
	{
		if (rb[r].name.substr(0, name.length) == name)
		{
			rb[r].checked = state;
		}
	}
}

<!-- IF ._file -->

	/**
	* Play quicktime file by determining it's width/height
	* from the displayed rectangle area
	*
	* Only defined if there is a file block present.
	*/
	function play_qt_file(obj)
	{
		var rectangle = obj.GetRectangle();

		if (rectangle)
		{
			rectangle = rectangle.split(',')
			var x1 = parseInt(rectangle[0]);
			var x2 = parseInt(rectangle[2]);
			var y1 = parseInt(rectangle[1]);
			var y2 = parseInt(rectangle[3]);

			var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
			var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
		}
		else
		{
			var width = 200;
			var height = 0;
		}

		obj.width = width;
		obj.height = height + 16;

		obj.SetControllerVisible(true);

		obj.Play();
	}
<!-- ENDIF -->

// ]]>
</script>
<!-- INCLUDE ads/ads.js -->
</head>
<body class="{S_CONTENT_DIRECTION}">

<a name="top"></a>

<center>
<div id="wrap">
<!-- IF ADS_1 -->{ADS_1}<br /><!-- ENDIF -->
	<div id="linia_out">
	<div id="linia_in">
	
	<div id="hdr_bdr">
	<br />

	<div id="logo"></div>

	</div>

	   </div>



	<br />

	<ul id="nav">
	<li><a class="buttons" href="{U_INDEX}"><img src="{T_THEME_PATH}/images/home.gif" alt="{L_INDEX}" /></a></li>
	<!-- IF S_USER_LOGGED_IN -->
				<li><a class="buttons" href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/logout.gif" alt="L_LOGIN_LOGOUT"/></a></li>
				<!-- ELSE -->
				<li><a class="buttons" href="{U_LOGIN_LOGOUT}"><img src="{T_THEME_PATH}/images/login.gif" alt="L_LOGIN_LOGOUT"/></a></li>
	<!-- ENDIF -->
	<li><a class="buttons" href="{U_FAQ}"><img src="{T_THEME_PATH}/images/faq.gif" alt="{L_FAQ}" /></a>	</li>
	<!-- IF S_USER_LOGGED_IN -->
			<li><a class="buttons" href="{U_PROFILE}"><img src="{T_THEME_PATH}/images/panel.gif" alt="{L_PROFILE}" /></a></li>
<!-- ELSE -->
			<li><a class="buttons" href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/register.gif" alt="{L_REGISTER}" /></a></li>
	<!-- ENDIF -->
		<li><a class="buttons" href="{U_MEMBERLIST}"><img src="{T_THEME_PATH}/images/members.gif" alt="{L_MEMBERLIST}" /></a></li>
    
		
			<!-- IF S_DISPLAY_SEARCH -->
<li><a class="buttons" href="{U_SEARCH}"><img src="{T_THEME_PATH}/images/search.gif" alt="{L_SEARCH}" /></a></li>

<li><a class="buttons" href="http://www.myspace.com/identifytracks"><img src="{T_THEME_PATH}/images/myspacebutton.png" alt="myspace" /></a></li>

<li><a class="buttons" href="http://www.myspace.com/identifytracks"><img src="{T_THEME_PATH}/images/facebookbutton.png" alt="myspace" /></a></li>

</ul>


	
	<div id="nav_btm"></div>

	<div id="menubar">

		<table width="100%" cellspacing="0">
		<tr>
			<td class="genmed">
				<!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>&nbsp;<!-- ENDIF -->
				<!-- IF U_RESTORE_PERMISSIONS --> &nbsp;<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
				<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> &nbsp;<span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->

				<!-- IF not S_IS_BOT -->
					<!-- IF S_USER_LOGGED_IN -->
						<!-- IF S_DISPLAY_PM --> &nbsp;<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
					<!-- ELSE --> &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>
					<!-- ENDIF -->
				<!-- ENDIF -->

			</td>
			<td class="genmed" align="right"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ENDIF -->
			<br />{CURRENT_TIME}
			</td>
		</tr>
		</table>
	</div>
	<!-- IF ADS_2 -->{ADS_2}<br /><!-- ENDIF -->
<div id="wrapcentre">



	
	<!-- ENDIF -->

	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->

	<br />
	<!-- IF S_DISPLAY_SEARCH -->
	<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->
	<br />
Thank you in advanced!!
Last edited by djfred on Thu Nov 26, 2009 7:06 pm, edited 1 time in total.

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

Re: [BETA] Invite A Friend 0.5.3

Post by Bycoja » Thu Nov 26, 2009 7:05 pm

mj1985 wrote:There is bug in the SQL:
Thanks you. :)
(However, the table which has not been removed has no effect on the mod, as it's simply not being used anymore.)
Peter77sx wrote:Another thing... if you enable "Newly registerd users" in ACP and you assign a new registerd user to "x" group with this MOD, they still show up in Newly registerd users group.
Working as intended. I don't see any reason not to add these people to the group as they are newly registered users actually. If they meet your requirements, they will be removed though.
If you really don't want to add them to newly registered users, I will post a solution.
djfred wrote:I've got a problem with the install file for Subsilver2. [...] But I cannot find it!
Looks like you've made a lot of changes to your overall_header.html, the subsilver2 instructions are supposed to give instructions only for not modified files.

In your case you have to follow these steps:

Open: ../styles/subsilver2/templates/overall_header.html

Find:

Code: Select all

			   <!-- ELSE --> &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>
			   <!-- ENDIF -->
After add:

Code: Select all

			   <!-- IF S_DISPLAY_INVITE --> &nbsp;<a href="{U_INVITE_A_FRIEND}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {L_ACP_INVITE}</a><!-- ENDIF -->

Peter77sx
Registered User
Posts: 3257
Joined: Wed Nov 09, 2005 2:51 pm

Re: [BETA] Invite A Friend 0.5.3

Post by Peter77sx » Sat Nov 28, 2009 5:32 am

Bycoja wrote: Working as intended. I don't see any reason not to add these people to the group as they are newly registered users actually. If they meet your requirements, they will be removed though.
If you really don't want to add them to newly registered users, I will post a solution.
Just wanted to give people an small incentive to invite friends/people. and so those who use the key id link to register are automatilcy in the normal registerd groups and wont have to 'wait' to use PM or sig etc. :)

Other then that, all is working nicley and so thanks for the update.

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

Re: [BETA] Invite A Friend 0.5.4

Post by Bycoja » Sat Nov 28, 2009 3:43 pm

Invite A Friend 0.5.4 released.

Spotify
Registered User
Posts: 15
Joined: Thu Jul 09, 2009 12:04 am

Re: [BETA] Invite A Friend 0.5.4

Post by Spotify » Sat Nov 28, 2009 5:00 pm

[Added] Extended group options
Does it mean we can set different invite limit to different user groups?

djfred
Registered User
Posts: 8
Joined: Sun Nov 01, 2009 5:16 pm

Re: [BETA] Invite A Friend 0.5.4

Post by djfred » Sun Nov 29, 2009 7:27 pm

Thanks Bycoja!!!!!

I've downloaded a skin!!!! That was the problem and you solved it :D

Neoxxx
Registered User
Posts: 102
Joined: Wed Mar 18, 2009 12:18 pm

Re: [BETA] Invite A Friend 0.5.4

Post by Neoxxx » Mon Nov 30, 2009 1:06 pm

Hello, i update mod from 0.5.3 to 0.5.4 but in compose invite appear:

Image

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Invite A Friend 0.5.4

Post by darkonia » Mon Nov 30, 2009 1:14 pm

Neoxxx wrote:Hello, i update mod from 0.5.3 to 0.5.4 but in compose invite appear:

Image
check your language file edits...
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

Neoxxx
Registered User
Posts: 102
Joined: Wed Mar 18, 2009 12:18 pm

Re: [BETA] Invite A Friend 0.5.4

Post by Neoxxx » Mon Nov 30, 2009 1:22 pm

I check but there aren't these variabiles

User avatar
eunaumtenhoid
Registered User
Posts: 884
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [BETA] Invite A Friend 0.5.4

Post by eunaumtenhoid » Mon Nov 30, 2009 2:34 pm

i have one suggetion:
  • change the configurations general opicional (of post)
  • and to insert in the place the ultimate points, for x point can buy x invitations
  • and to show the amount of invitations the user has and in the case he cannot use more than it possesses he ties to buy more
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

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

Re: [BETA] Invite A Friend 0.5.4

Post by Bycoja » Mon Nov 30, 2009 4:26 pm

Neoxxx wrote:I check but there aren't these variabiles
Please post the code of the file located in ../styles/YOURSTYLE/templates/ucp_invite_invite.html
I guess you haven't updated the template file yet to make it work with the new CAPTCHAs.
eunaumtenhoid wrote:change the configurations general opicional (of post)
Can you explain that point further, please? I don't get what you mean.

Locked

Return to “[3.0.x] Abandoned MODs”