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

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
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, 147 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? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Kommius
Nuke Soldier
Nuke Soldier


Joined: Jul 09, 2003
Posts: 32


PostPosted: Thu Oct 05, 2006 2:00 am Reply with quoteBack to top

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?
Find all posts by KommiusView user's profileSend private message
jlajax
Nuke Cadet
Nuke Cadet


Joined: Sep 28, 2006
Posts: 1

Location: Jacksonville Florida

PostPosted: Tue Oct 10, 2006 5:03 am Reply with quoteBack to top

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
Find all posts by jlajaxView user's profileSend private message
Slappy
Nuke Soldier
Nuke Soldier


Joined: May 24, 2006
Posts: 33


PostPosted: Wed Dec 20, 2006 11:29 pm Reply with quoteBack to top

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

Thanks,
Slappy
Find all posts by SlappyView user's profileSend private message
Slappy
Nuke Soldier
Nuke Soldier


Joined: May 24, 2006
Posts: 33


PostPosted: Wed Dec 20, 2006 11:33 pm Reply with quoteBack to top

Opps,

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

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

?>
Find all posts by SlappyView user's profileSend private message
bbmac
Nuke Cadet
Nuke Cadet


Joined: Jan 06, 2007
Posts: 5


PostPosted: Sat Jan 06, 2007 10:15 am Reply with quoteBack to top

so how do i fix it? i put that in a php and upload to modules/forums?
Find all posts by bbmacView user's profileSend private message
Slappy
Nuke Soldier
Nuke Soldier


Joined: May 24, 2006
Posts: 33


PostPosted: Sat Jan 06, 2007 1:16 pm Reply with quoteBack to top

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
Find all posts by SlappyView user's profileSend private message
bbmac
Nuke Cadet
Nuke Cadet


Joined: Jan 06, 2007
Posts: 5


PostPosted: Sun Jan 07, 2007 7:05 am Reply with quoteBack to top

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
Find all posts by bbmacView user's profileSend private message
Slappy
Nuke Soldier
Nuke Soldier


Joined: May 24, 2006
Posts: 33


PostPosted: Mon Jan 08, 2007 5:11 pm Reply with quoteBack to top

Yeah, that should do it. Though I've never done it that way. Very Happy
Find all posts by SlappyView user's profileSend private message
FalseMotivation
Nuke Cadet
Nuke Cadet


Joined: Dec 04, 2008
Posts: 5


PostPosted: Mon Dec 08, 2008 11:28 am Reply with quoteBack to top

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?
Find all posts by FalseMotivationView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
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.060 Seconds - 127 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::