Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Can not add new members into group!

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
Wstar

Beginner
Beginner


Joined: Sep 25, 2007
Posts: 4

PostPosted: Thu Nov 15, 2007 9:19 am    Post subject: Can not add new members into group! Reply with quote

When I add someone to a group on the forums, I get a blank page. I search the code within the functions_user.php and found this code,

Code: ›    // Insert the new users
   if (sizeof($add_id_ary))
   {
      $sql_ary = array();

      foreach ($add_id_ary as $user_id)
      {
         $sql_ary[] = array(
            'user_id'      => (int) $user_id,
            'group_id'      => (int) $group_id,
            'group_leader'   => (int) $leader,
            'user_pending'   => (int) $pending,
         );
      }

      $db->sql_multi_insert(USER_GROUP_TABLE, $sql_ary);

      // Add users to group in Gallery
      require($phpbb_root_path . 'g2helper.inc');
      $g2h = new g2helper($db);
      $g2h->addUserToGroup($add_id_ary, $group_id);
   }

   if (sizeof($update_id_ary))
   {
      $sql = 'UPDATE ' . USER_GROUP_TABLE . '
         SET group_leader = 1
         WHERE ' . $db->sql_in_set('user_id', $update_id_ary) . "
            AND group_id = $group_id";
      $db->sql_query($sql);
   }


When I remove the added code,

Code: ›       // Add users to group in Gallery
      require($phpbb_root_path . 'g2helper.inc');
      $g2h = new g2helper($db);
      $g2h->addUserToGroup($add_id_ary, $group_id);


It works just fine, no problems, but then again the integration does not work. I'm having this problem with removing a member too. And suggestions?
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Can not add new members into group!  

Back to top
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1040

PostPosted: Thu Nov 15, 2007 10:05 am    Post subject: Re: Can not add new members into group! Reply with quote

Wait for the new integration version to be released. You're obviously trying to use the test version, that was meant for testing only. Several issues have been fixed since the test version went out.
Back to top
Offline View user's profile Send private message
Wstar

Beginner
Beginner


Joined: Sep 25, 2007
Posts: 4

PostPosted: Fri Nov 16, 2007 8:13 am    Post subject: Re: Can not add new members into group! Reply with quote

ahhh, I'll wait then.
Thanks for the information.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Fri Nov 16, 2007 8:18 am    Post subject: Re: Can not add new members into group! Reply with quote

the new version 0.0.4 is now available.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Issues » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia