Activation Justification

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
mfrankena
Registered User
Posts: 128
Joined: Sun Apr 17, 2005 3:11 pm

Re: Activation Justification

Post by mfrankena »

I have a problem,

Installed some mods on a blanco 305 board. When installing with automod it can't find 2 rules in:

includes/ucp/ucp_resend.php

Code: Select all

Find

$messenger->template('admin_activate', $row['user_lang']);

Replace With

									$messenger->template('admin_reactivate', $row['user_lang']);
in my file, the only thing closely like that is:

Code: Select all

$messenger->template('admin_activate_resend', $row['user_lang']);

The same goes for includes/ucp/ucp_profile.php:

Code: Select all

Find

$messenger->template('admin_activate', $row['user_lang']);

Replace With

					$messenger->template('admin_reactivate', $row['user_lang']);
My file shows:

Code: Select all

$messenger->template('admin_activate_userchange', $row['user_lang']);
Any ideas on what i need to change? Everything is working now, except the justification item. Don't want to break any mods on the forums right now so thought i'd ask here first.
ucp_profile.php
(26.65 KiB) Downloaded 50 times
ucp_resend.php
(5.6 KiB) Downloaded 53 times
Regards,
Martin

Sites: BF2CC Admin // 2142CC Admin // M.B.T. Admin // Homepage
MydnyteSyn
Registered User
Posts: 383
Joined: Sun Oct 07, 2007 10:02 am

Re: Activation Justification

Post by MydnyteSyn »

Is there any way to get this mod to work with the Add New User mod? I can't add a new user because there is no where to insert an account activation justification in the add new user section of the admin CP.
WarlockMaster
Registered User
Posts: 14
Joined: Sun Nov 22, 2009 5:44 am

Re: Activation Justification

Post by WarlockMaster »

Hey,

Someone can help me plz?
I`m stuck trying install this mode on phpBB-3.0.6.

I saw this:


Open: styles/prosilver/template/ucp_register.html

Code: Select all

<!-- IF S_CONFIRM_CODE -->
	<span class="corners-bottom"><span></span></span></div>
</div>

<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<h3>{L_CONFIRMATION}</h3>
	<p>{L_CONFIRM_EXPLAIN}</p>

	<fieldset class="fields2">
	<dl>
		<dt><label for="confirm_code">{L_CONFIRM_CODE}:</label></dt>
		<dd>{CONFIRM_IMG}</dd>
		<dd><input type="text" name="confirm_code" id="confirm_code" size="8" maxlength="8" class="inputbox narrow" title="{L_CONFIRM_CODE}" /></dd>
		<dd>{L_CONFIRM_CODE_EXPLAIN}</dd>
	</dl>
	</fieldset>
<!-- ENDIF -->
but this dont exists in the new php board, here all my ucp_register.html

Code: Select all

<!-- INCLUDE overall_header.html -->

<script type="text/javascript">
// <![CDATA[
	/**
	* Change language
	*/
	function change_language(lang_iso)
	{
		document.forms['register'].change_lang.value = lang_iso;
		document.forms['register'].submit.click();
	}

	<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_REFRESH -->
	onload_functions.push('apply_onkeypress_event()');
	<!-- ENDIF -->

// ]]>
</script>

<form method="post" action="{S_UCP_ACTION}" id="register">

<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<h2>{SITENAME} - {L_REGISTRATION}</h2>

	<fieldset class="fields2">
	<!-- IF ERROR --><dl><dd class="error">{ERROR}</dd></dl><!-- ENDIF -->
	<!-- IF L_REG_COND -->
		<dl><dd><strong>{L_REG_COND}</strong></dd></dl>
	<!-- ENDIF -->
	<dl>
		<dt><label for="username">{L_USERNAME}:</label><br /><span>{L_USERNAME_EXPLAIN}</span></dt>
		<dd><input type="text" tabindex="1" name="username" id="username" size="25" value="{USERNAME}" class="inputbox autowidth" title="{L_USERNAME}" /></dd>
	</dl>
	<dl>
		<dt><label for="email">{L_EMAIL_ADDRESS}:</label></dt>
		<dd><input type="text" tabindex="2" name="email" id="email" size="25" maxlength="100" value="{EMAIL}" class="inputbox autowidth" title="{L_EMAIL_ADDRESS}" /></dd>
	</dl>
	<dl>
		<dt><label for="email_confirm">{L_CONFIRM_EMAIL}:</label></dt>
		<dd><input type="text" tabindex="3" name="email_confirm" id="email_confirm" size="25" maxlength="100" value="{EMAIL_CONFIRM}" class="inputbox autowidth" title="{L_CONFIRM_EMAIL}" /></dd>
	</dl>
	<dl>
		<dt><label for="new_password">{L_PASSWORD}:</label><br /><span>{L_PASSWORD_EXPLAIN}</span></dt>
		<dd><input type="password" tabindex="4" name="new_password" id="new_password" size="25" value="{PASSWORD}" class="inputbox autowidth" title="{L_NEW_PASSWORD}" /></dd>
	</dl>
	<dl>
		<dt><label for="password_confirm">{L_CONFIRM_PASSWORD}:</label></dt>
		<dd><input type="password"  tabindex="5" name="password_confirm" id="password_confirm" size="25" value="{PASSWORD_CONFIRM}" class="inputbox autowidth" title="{L_CONFIRM_PASSWORD}" /></dd>
	</dl>

	<hr />

	<dl>
		<dt><label for="lang">{L_LANGUAGE}:</label></dt>
		<dd><select name="lang" id="lang" onchange="change_language(this.value); return false;" tabindex="6" title="{L_LANGUAGE}">{S_LANG_OPTIONS}</select></dd>
	</dl>
	<dl>
		<dt><label for="tz">{L_TIMEZONE}:</label></dt>
		<dd><select name="tz" id="tz" tabindex="7" class="autowidth">{S_TZ_OPTIONS}</select></dd>
	</dl>

	<!-- IF .profile_fields -->
		<dl><dd><strong>{L_ITEMS_REQUIRED}</strong></dd></dl>

	<!-- BEGIN profile_fields -->
		<dl>
			<dt><label<!-- IF profile_fields.FIELD_ID --> for="{profile_fields.FIELD_ID}"<!-- ENDIF -->>{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>
			<!-- IF profile_fields.LANG_EXPLAIN --><br /><span>{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF -->
			<!-- IF profile_fields.ERROR --><br /><span class="error">{profile_fields.ERROR}</span><!-- ENDIF --></dt>
			<dd>{profile_fields.FIELD}</dd>
		</dl>
	<!-- END profile_fields -->
	<!-- ENDIF -->

	</fieldset>
	<span class="corners-bottom"><span></span></span></div>
</div>
<!-- IF CAPTCHA_TEMPLATE -->
	<!-- DEFINE $CAPTCHA_TAB_INDEX = 8 -->
	<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
<!-- ENDIF -->

<!-- IF S_COPPA -->


<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<h4>{L_COPPA_COMPLIANCE}</h4>

	<p>{L_COPPA_EXPLAIN}</p>
	<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->

<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<fieldset class="submit-buttons">
		{S_HIDDEN_FIELDS}
		<input type="reset" value="{L_RESET}" name="reset" class="button2" />&nbsp;
		<input type="submit" tabindex="9" name="submit" id="submit" value="{L_SUBMIT}" class="button1 default-submit-action" />
		{S_FORM_TOKEN}
	</fieldset>

	<span class="corners-bottom"><span></span></span></div>
</div>
</form>

<!-- INCLUDE overall_footer.html -->
where i should put the code?

Thanks in advice and sorry about my bad english
User avatar
RMcGirr83
Former Team Member
Posts: 21909
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Activation Justification

Post by RMcGirr83 »

This

Code: Select all

<!-- IF CAPTCHA_TEMPLATE -->
   <!-- DEFINE $CAPTCHA_TAB_INDEX = 8 -->
   <!-- INCLUDE {CAPTCHA_TEMPLATE} -->
<!-- ENDIF -->
replaces the find in the mod.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
WarlockMaster
Registered User
Posts: 14
Joined: Sun Nov 22, 2009 5:44 am

Re: Activation Justification

Post by WarlockMaster »

thanks RMcGirr83

I got another missing reference :(

includes/ucp/ucp_register.php

Code: Select all

			'CONFIRM_IMG'		=> $confirm_image,
Should be after this?

Code: Select all

		// Visual Confirmation - Show images
		if ($config['enable_confirm'])
		{
			$template->assign_vars(array(
				'CAPTCHA_TEMPLATE'		=> $captcha->get_template(),
			));
		}
Thanks ^^
newtech
Registered User
Posts: 171
Joined: Wed Feb 04, 2004 6:07 pm

Re: Activation Justification and Double Activation

Post by newtech »

Has anyone got this mod to work with double activation with a phpBB3.06 board. If so, can you share the steps you took to make them work together?
User avatar
katib
Registered User
Posts: 562
Joined: Thu Jun 26, 2008 12:27 pm

Re: Activation Justification

Post by katib »

Hi RMcGirr83
here: http://www.phpbb.com/community/viewtopi ... 5#p9664505
You told me:
RMcGirr83 wrote:
katib wrote:Thanks for Mod
installed and workinf fine
However, when I display the inactivate users list from ACP, there is no column saying "activation justification"
So , how can I know the justification for this new user before activating his account ?
You can try this...
.............
..........

OPEN

includes/functions_admin.php

FIND

Code: Select all

$sql = 'SELECT user_id, username, user_regdate, user_lastvisit, user_inactive_time, user_inactive_reason
INLINE, AFTER ADD

Code: Select all

, user_justification
However, since I upgraded to 3.0.6, I cant find this code in includes/functions_admin.php
$sql = 'SELECT user_id, username, user_regdate, user_lastvisit, user_inactive_time, user_inactive_reason
:roll:
User avatar
RMcGirr83
Former Team Member
Posts: 21909
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Activation Justification

Post by RMcGirr83 »

The sql has been changed to

Code: Select all

$sql = 'SELECT *
So there is nothing to do on the sql part as all columns are being selected.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
katib
Registered User
Posts: 562
Joined: Thu Jun 26, 2008 12:27 pm

Re: Activation Justification

Post by katib »

Thanks a lot
I really appreciate this quick and usefull help :)
envirolink
Registered User
Posts: 50
Joined: Mon Jun 09, 2003 3:07 am
Contact:

Re: Activation Justification

Post by envirolink »

Hello-

I installed this mod, but feel that I no longer need it. I've done a clean install of phpBB templates and then pointed them to my prior version's database. Everything is working fine, except for new user registration, where I'm getting this error:

Code: Select all

SQL ERROR [ mysqli ]

Field 'user_justification' doesn't have a default value [1364]
Can you please let me know what I should do to uninstall this from mysql or anything else I should look for to get rid of this message? I realize this is a very basic question, I'm not that great with db stuff.

Thanks!
User avatar
RMcGirr83
Former Team Member
Posts: 21909
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Activation Justification

Post by RMcGirr83 »

Code: Select all

ALTER TABLE phpbb_users DROP user_justification;
change phpbb to whatever the prefix is for your database.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
RMcGirr83
Former Team Member
Posts: 21909
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Activation Justification

Post by RMcGirr83 »

WarlockMaster wrote:thanks RMcGirr83

I got another missing reference :(

includes/ucp/ucp_register.php

Code: Select all

			'CONFIRM_IMG'		=> $confirm_image,
Should be after this?

Code: Select all

		// Visual Confirmation - Show images
		if ($config['enable_confirm'])
		{
			$template->assign_vars(array(
				'CAPTCHA_TEMPLATE'		=> $captcha->get_template(),
			));
		}
Thanks ^^

Place place it after this in the same file

Code: Select all

'EMAIL_CONFIRM'		=> $data['email_confirm'],
...not after where you state.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
envirolink
Registered User
Posts: 50
Joined: Mon Jun 09, 2003 3:07 am
Contact:

Re: Activation Justification

Post by envirolink »

RMcGirr83 wrote:

Code: Select all

ALTER TABLE phpbb_users DROP user_justification;
change phpbb to whatever the prefix is for your database.
Thanks, this worked perfectly!
User avatar
AylaAsperger
Registered User
Posts: 67
Joined: Fri Dec 28, 2007 8:35 pm

Re: Activation Justification

Post by AylaAsperger »

Board version: 3.0.6
Mod Version: 1.0.2

I have installed this mod on the boards of two friends of mine, and it works perfectly. There is only one hitch. Since I installed the mod, the column "last visit" suddenly disappeared from the memberlist page. These boards use prosilver based styles and I was logged in as an admin and board owner when I checked it, so it should have been visible. I have been looking trough the setup of the mod to find something where it might have gone wrong, but I couldn't really find any changes to memberlist related files. I hope any of you guys can help me restore the "last visit" column on the memberlist!
User avatar
AylaAsperger
Registered User
Posts: 67
Joined: Fri Dec 28, 2007 8:35 pm

Re: Activation Justification

Post by AylaAsperger »

AylaAsperger wrote:Board version: 3.0.6
Mod Version: 1.0.2

I have installed this mod on the boards of two friends of mine, and it works perfectly. There is only one hitch. Since I installed the mod, the column "last visit" suddenly disappeared from the memberlist page. These boards use prosilver based styles and I was logged in as an admin and board owner when I checked it, so it should have been visible. I have been looking trough the setup of the mod to find something where it might have gone wrong, but I couldn't really find any changes to memberlist related files. I hope any of you guys can help me restore the "last visit" column on the memberlist!
Nobody?????
Locked

Return to “[3.0.x] MOD Database Releases”