Force Flag on Register

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
faulksie
New member
New member
Posts: 4
Joined: 09 Jan 2013, 11:34

Re: Force Flag on Register

Post by faulksie »

RMcGirr83 wrote:
Find This may be a partial find and not the whole line

Code: Select all

<div id="wrapcentre">


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

Code: Select all

<!-- IF not S_FLAG and SCRIPT_NAME neq 'ucp'-->
<p class="searchbar">
   <span style="float: {S_CONTENT_FLOW_BEGIN};"><strong>{L_INFORMATION}:</strong> Please take a moment to visit <a href="{U_PROFILE_PROFILE}">your profile</a> and choose a country flag.  Thanks.</span>
</p>
<!-- ENDIF -->   


Just a thought, ref forcing current users to update required profile fields, would it not be possible to do something similar to this but rather than just show this message, actually redirect them automatically to their user profile page ?
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Force Flag on Register

Post by RMcGirr83 »

You could redirect them within the includes/functions.php file, within the page_header function, but I think that would be annoying. EG,

Code: Select all

if (empty($user->data['user_flag']))
{
   $redirect = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=profile');
   redirect($redirect);
}
avoyom
New member
New member
Posts: 1
Joined: 04 Feb 2013, 14:56

Re: Force Flag on Register

Post by avoyom »

Hi!

Thanks for lwtting us to enjoy that MOD. However, I have a problem while I'm trying to register to my forum. I get this error:

_phpbb.FLAGS_DATA_TABLE' doesn't exist [1146]

What should I do?

Thanks!
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Force Flag on Register

Post by RMcGirr83 »

You should install the mod
yukl
New member
New member
Posts: 2
Joined: 30 Apr 2014, 12:10

Re: Force Flag on Register

Post by yukl »

Hi, I have a problem.
I have a forum on phpbb 3.0.12 with Subsilver2 installed, and it all went well until I got to the last file that needs to be edited:

OPEN

styles/xxx/template/ucp_register.html

I can't find this anywhere:

Code: Select all

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

I've installed Notepad ++ specially for this and I've also searched just for "tz" and other bits of this code but it's just not there. Please help. Tell me where I need to put this last bit of code.
Thanks.
User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: Force Flag on Register

Post by Sniper_E »

Those find codes are for prosilver type styles.

If you are editing a subsilver2 type style you need to look for this code:

Code: Select all

<tr>
   <td class="row1"><b class="genmed">{L_TIMEZONE}: </b></td>
   <td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td>
</tr>

Are there no directions for a subsilver2 type install?
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
yukl
New member
New member
Posts: 2
Joined: 30 Apr 2014, 12:10

Re: Force Flag on Register

Post by yukl »

Thank you for the really fast reply. I did as you told me and it works.
Can you please help me a bit with something else?

I'd like the flags and the text of the fags to never be on the same line, meaning even for countries with short names such as "USA" or "Chile" the flag is still on the next row instead of being right next to the text.

Thank you for your time.
Post Reply