You are missing our premiere tool bar navigation system! Register and use it for FREE!


Author: SlappyPostPosted: Wed Dec 20, 2006 11:29 pm    Post subject: groupfix script!!

Has anyone been able to find this script? I am in need of it!!

Thanks,
Slappy

Author: SlappyPostPosted: Wed Dec 20, 2006 11:33 pm    Post subject: Found it!

Opps,

i think I found it. And for everyone who is looking for it, here is the script!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: jlajaxLocation: Jacksonville FloridaPostPosted: Tue Oct 10, 2006 5:03 am    Post subject: Re: Where is the Fix Group Script?

Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 129 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Where is the Fix Group Script? Where is the Fix Group Script?

Nuke Cops -> BBtoNuke Installation

Author: Kommius PostPosted: Thu Oct 05, 2006 2:00 am    Post subject: Where is the Fix Group Script?

Quote:
Please try the Fix Group Script - http://www.nukecops.com/postt1.html


I went to the link, but there's no sign of the Fix Group Script... Wink

Anyone knows where it is?
Kommius wrote:
Quote:
Please try the Fix Group Script - http://www.nukecops.com/postt1.html


I went to the link, but there's no sign of the Fix Group Script... Wink

Anyone knows where it is?


While an informatiove link I didn't find the fixgroup script either. I am told that is what I need for a small problem.

Hopefully someone knows where to find it? Very Happy
Code:

<?php
//*****  check users and user groups ****//
if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}
if ($popup != "1"){
    $module_name = basename(dirname(__FILE__));
    require("modules/".$module_name."/nukebb.php");
}
else
{
    $phpbb_root_path = 'modules/Forums/';
}

define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include('includes/functions_search.'.$phpEx);

// Start session management
$userdata = session_pagestart($user_ip, PAGE_SEARCH, $nukeuser);
init_userprefs($userdata);
// End session management

$sql = "SELECT user_id, username
    FROM " . USERS_TABLE ."
    WHERE user_id > 0";
if ( !($result = $db->sql_query($sql)) )
{
    message_die(GENERAL_ERROR, 'Could not obtain user list', '', __LINE__, __FILE__, $sql);
}

$liste ='';
while ( $row = $db->sql_fetchrow($result) )
{
   $username = $row['username'];
   $user_id = $row['user_id'];
   $usergroup = '';
   
   $sql1 = "SELECT ug.group_id
          FROM " . USER_GROUP_TABLE ." ug, ". GROUPS_TABLE. " g 
          WHERE ug.user_id = $user_id
            AND ug.group_id = g.group_id
            AND g.group_single_user  = 1
            ";
             
   if ( ($result1 = $db->sql_query($sql1)) )
   {
       $row1 = $db->sql_fetchrow($result1);
          $usergroup =( ( $row1['group_id'] != '' ) ? $row1['group_id'] : 'User has no user group'.$row1 );
         
   }

          if (!($row1['group_id'] != ''))
          {
             
         $sql2 = "SELECT MAX(group_id) AS total
            FROM " . GROUPS_TABLE;
         if ( !($result2 = $db->sql_query($sql2)) )
         {
            message_die(GENERAL_ERROR, 'Could not obtain next group_id information', '', __LINE__, __FILE__, $sq2l);
         }

         if ( !($row2 = $db->sql_fetchrow($result2)) )
         {
            message_die(GENERAL_ERROR, 'Could not obtain next group_id information', '', __LINE__, __FILE__, $sql2);
         }
         $group_id = $row2['total'] + 1;
         
         
         $sql3 = "INSERT INTO " . GROUPS_TABLE . " (group_id, group_name, group_description, group_single_user, group_moderator)
            VALUES ($group_id, '', 'Personal User', 1, 0)";
         if ( !($result3 = $db->sql_query($sql3, BEGIN_TRANSACTION)) )
         {
            message_die(GENERAL_ERROR, 'Could not insert data into groups table', '', __LINE__, __FILE__, $sql3);
         }

         $sql4 = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending)
            VALUES ($user_id, $group_id, 0)";
         if( !($result4 = $db->sql_query($sql4, END_TRANSACTION)) )
         {
            message_die(GENERAL_ERROR, 'Could not insert data into user_group table', '', __LINE__, __FILE__, $sql4);
         }

             
             $usergroup = $usergroup.', adding user group '.$group_id;
          }


   $liste .= ( ( $liste != '' ) ? '<br> ' : '' ) . $username.' <b>'.$usergroup.'</b>';
}

message_die(GENERAL_MESSAGE,'Users:<br>'.$liste);

?>

Author: bbmac PostPosted: Sat Jan 06, 2007 10:15 am    Post subject:

so how do i fix it? i put that in a php and upload to modules/forums?

Author: Slappy PostPosted: Sat Jan 06, 2007 1:16 pm    Post subject:

Yes, then you need to navigate to the file via browser.

Copy the script above
Past into file and name it groupfix.php
Upload to public folder
Navigate to file via browser

So for you it would be: http://www.yoursite.com/modules/Forums/groupfix.php


Very Happy

Author: bbmac PostPosted: Sun Jan 07, 2007 7:05 am    Post subject:

lol... ok i got that done.... I think, is this what its suppose to look like?
http://www.awhitedesigns.com/mac/modules.php?name=Forums&file=groupfix

Author: Slappy PostPosted: Mon Jan 08, 2007 5:11 pm    Post subject:

Yeah, that should do it. Though I've never done it that way. Very Happy

Author: FalseMotivation PostPosted: Mon Dec 08, 2008 11:28 am    Post subject:

I'm having the same problem, however I ran the groupfix.php file and it told me it added usergroups 6 and 7 for anonymous and my username. It still does not allow me to give myself Moderator or Admin status, which is confusing because I am the Site Admin (GOD Admin). Any suggestions on how else to fix this?

I'm running RN 2.20.01.

deadrabbitsclan.net


**Correction I ran the script again and it allows me to give the Moderator status to myself, but I still cannot give myself Admin status.


++Adding another problem, and I'm sorry if this is out of place but these problems are coinciding. Internet Explorer users are not able to get past the index.php (if they even get that), the HTTP 500 error is showing up saying that the Webpage cannot be displayed. What could be causing this, as the site works fine on Firefox...but not IE?



Nuke Cops -> BBtoNuke Installation

All times are GMT - 8 Hours

Page 1 of 1

Powered by phpBB © 2001,2002 phpBB Group
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.074 Seconds - 75 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::