phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

Group Rank Hack Install problem!

Wondering why that MOD you have won't install correctly? Let's take a look
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!

Group Rank Hack - **Now installs thanks to Nightrider**

Postby Ornette » Tue Apr 08, 2008 7:23 am

Blimey!

I followed this thread from start to finish now, and am ecstatic to confirm that Group Rank Hack 1.0.3 works correctly with phpBB 2.0.23 (*link - EM file here: viewtopic.php?p=166835)


The last time I tried, I followed the posts from Tue Dec 05, 2006 9:05 am to
Wed Dec 06, 2006 8:14 am
where by I got completely thrown at that step by the suggested alteration.

Anyhow, this time I read right through to the end, and lo - Nightrider's posted EM script for this at
Thu Jan 18, 2007 8:04 am has just installed perfectly!


20 pages of IM style banter... And large sections of it, all mostly from within one week, completely off topic!!


Well, what can I say! but:
Image

Ahh I could point out that your EM verision of Attachment MOD hasn't worked properly, but that probably deserves another thread. ;)
Check me out every Tuesday 10-12pm GMT on Stress Factor - 1994 Jungle Drum & Bass Stylee!!!

http://www.stressfactor.co.uk
User avatar
Ornette
Registered User
 
Posts: 2
Joined: Tue Apr 08, 2008 6:16 am

Re: Group Rank Hack Install problem!

Postby evgeshkin » Wed Sep 03, 2008 3:14 am

I have a problem :|

after install mod I have error in admin panel
Code: Select all
Parse error: syntax error, unexpected ';' in D:\AppServ\www\phpBB2\admin\admin_ranks.php on line 116


part of admin_ranks.php file
Code: Select all
111  $rank_is_special = ( $rank_info['rank_special'] ) ? "checked=\"checked\"" : "";
112      $rank_is_not_special = (// BEGIN Group Rank Hack
113      $sql = "SELECT group_id, group_name
114         FROM " . GROUPS_TABLE . "
115        WHERE group_single_user = 0
116         ORDER BY group_name";
117      if ( !($result = $db->sql_query($sql)) )
118      {
119         message_die(GENERAL_ERROR, 'Could not obtain group list', '', __LINE__, __FILE__, $sql);
120      }

      $group_select = '';
      if ( $row = $db->sql_fetchrow($result) )
      {
         $group_select .= '<select name="group">';
         $group_select .= '<option value="0">' . $lang['No'] . '</option>';
         do
         {
            $selected = ( $rank_info['rank_group'] == $row['group_id'] ) ? ' selected="selected"' : '';
            $group_select .= '<option value="' . $row['group_id'] . '"' . $selected . '>' . $row['group_name'] . '</option>';
         }
         while ( $row = $db->sql_fetchrow($result) );
         $group_select .= '</select>';
      }
      if ( !empty($group_select) )
      {
         $template->assign_block_vars('switch_group_rank', array(
            'L_GROUP_RANK' => $lang['Group_rank'],
            'L_GROUP_RANK_EXPLAIN' => $lang['Group_rank_explain'],
            'GROUP_RANK_SELECT' => $group_select)
141        );
142      }
143      // END Group Rank Hack !$rank_info['rank_special'] ) ? "checked=\"checked\"" : "";


PS Sorry for my English, I know it bad (my native is Russian)
evgeshkin
Registered User
 
Posts: 1
Joined: Wed Sep 03, 2008 3:06 am

Re: Group Rank Hack Install problem!

Postby Realisty » Wed Sep 03, 2008 7:34 pm

your lines says
Code: Select all
112      $rank_is_not_special = (// BEGIN Group Rank Hack
113      $sql = "SELECT group_id, group_name


But it should be
Code: Select all
112      $rank_is_not_special = (
113              // BEGIN Group Rank Hack
114             $sql = "SELECT group_id, group_name


And so on .... you pasted the lines right after the ( but you should have started on a new line ;)
Realisty
Registered User
 
Posts: 106
Joined: Sat Jan 20, 2007 3:37 pm

Previous

Return to Installing MODs with EasyMOD

Who is online

Users browsing this forum: No registered users and 3 guests

cron