Support Forums | Demo Gallery [1.x] [2.x] | 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  

Group problem?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
IngerK

Wizard
Wizard


Joined: Jan 19, 2006
Posts: 99
Location: Oslo, Norway

PostPosted: Tue Dec 11, 2007 3:29 am    Post subject: Re: Group problem? Reply with quote

Thanx! I will try that! Smile
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Re: Group problem?  

Back to top
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Tue Dec 11, 2007 11:25 am    Post subject: Re: Group problem? Reply with quote

IngerK, I tested the group functions (create, delete and update) linked above and they all work except update. To make it work use the mod change below. This will be in the next release that I'll try to have ready around the gold release. I'm looking into your admin group issue next! Thanks for the testing and pointing out problems!
In includes/functions_user.php - remove this mod:
Code: › #
#-----[ FIND ]------------------------------------------
#
         $sql = 'INSERT INTO ' . GROUPS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
         $db->sql_query($sql);
      }

#
#-----[ AFTER, ADD ]------------------------------------------
#
      if ($group_id) {
         // Update group in Gallery
         require($phpbb_root_path . 'g2helper.inc');
         $g2h = new g2helper($db);
         $g2h->updateGroup($group_id, $sql_ary['group_name']);
      }
      elseif (!$group_id) {
         // Create group in Gallery
         require($phpbb_root_path . 'g2helper.inc');
         $g2h = new g2helper($db);
         $g2h->createGroup($sql_ary['group_name']);
      }

And replace it with this mod:
Code: › #
#-----[ FIND ]------------------------------------------
#
         if (isset($sql_ary['group_rank']) && !$sql_ary['group_rank'])
         {
            remove_default_rank($group_id, $user_ary);
         }

#
#-----[ AFTER, ADD ]------------------------------------------
#
         // Update group in Gallery
         require($phpbb_root_path . 'g2helper.inc');
         $g2h = new g2helper($db);
         $g2h->updateGroup($group_id, $sql_ary['group_name']);
#
#-----[ FIND ]------------------------------------------
#
         $sql = 'INSERT INTO ' . GROUPS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
         $db->sql_query($sql);

#
#-----[ BEFORE, ADD ]------------------------------------------
#
         // Create group in Gallery
         require($phpbb_root_path . 'g2helper.inc');
         $g2h = new g2helper($db);
         $g2h->createGroup($sql_ary['group_name']);
Back to top
Offline View user's profile Send private message
jettyrat

Moderator
Moderator


Joined: Nov 28, 2005
Posts: 1139

PostPosted: Tue Dec 11, 2007 3:56 pm    Post subject: Re: Group problem? Reply with quote

IngerK, check your pm...
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB3 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page Previous  1, 2

 
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 HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

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