Warning: The author of this contribution does not provide support for it anymore.

Introduciator

Bug fix - Introduciator

Bug fix

by Feneck91 » Thu Aug 25, 2016 7:55 pm

I have found a bug when a forum is open for guest, they could'nt post because user_get_id_name of file funtions_user.php wad defined twice.

Only happend when a guest is posting!

Into file posting.php, found:

Code: Select all

   // Validate username
   if (($post_data['username'] && !$user->data['is_registered']) || ($mode == 'edit' && $post_data['poster_id'] == ANONYMOUS && $post_data['username'] && $post_data['post_username'] && $post_data['post_username'] != $post_data['username']))
   {


Add after:

Code: Select all

      //------------------------------------------------
      // Introduciator - Begin
      if (!function_exists('group_memberships'))
      // Introduciator - End
      //------------------------------------------------

it is just before the line:

Code: Select all

include($phpbb_root_path . 'includes/functions_user.' . $phpEx);


Be carefull, don't add ; at the end of if added!
User avatar
Feneck91
Registered User
Posts: 115
Joined: Mon May 20, 2013 9:47 am
Name: Stéphane Château