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!
Locked
User avatar
RyosukeZ
Registered User
Posts: 302
Joined: Sun Oct 01, 2006 12:40 am
Location: Woodlands, Singapore
Contact:

Re: Group Rank Hack Install problem!

Post by RyosukeZ » Wed Dec 06, 2006 5:03 am

did i? lol.
let me try again ^^
Bored? Come and have fun at my forum!!
Lets rock the hse!!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Group Rank Hack Install problem!

Post by Nightrider » Wed Dec 06, 2006 5:11 am

Ok, Good Luck!!!

Image

User avatar
RyosukeZ
Registered User
Posts: 302
Joined: Sun Oct 01, 2006 12:40 am
Location: Woodlands, Singapore
Contact:

Re: Group Rank Hack Install problem!

Post by RyosukeZ » Wed Dec 06, 2006 5:56 am

haha new one lol

Code: Select all

Error Detail 
  
Critical Error

FIND FAILED: In file [admin/admin_ranks.php] could not find:

$sql = "SELECT * FROM " . RANKS_TABLE . " 
ORDER BY rank_min, rank_title"; 

MOD script line #476 :: FAQ :: Report 
But which one is correct?

Code: Select all

1)$sql = "SELECT * FROM " . RANKS_TABLE . " 
ORDER BY
$sql = "SELECT * FROM " . RANKS_TABLE . " ?
lol i think both of them is wrong :P
hope u can correct for me ^^
Bored? Come and have fun at my forum!!
Lets rock the hse!!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Group Rank Hack Install problem!

Post by Nightrider » Wed Dec 06, 2006 7:12 am

This one was a bit of a challenge to figure out...

Ok, try this:

OPEN
Install.txt

FIND

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT * FROM " . RANKS_TABLE . "
ORDER BY rank_min, rank_title";
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT * FROM " . RANKS_TABLE . "
ORDER BY
Save, upload, and try again using EM...

Image

User avatar
RyosukeZ
Registered User
Posts: 302
Joined: Sun Oct 01, 2006 12:40 am
Location: Woodlands, Singapore
Contact:

Re: Group Rank Hack Install problem!

Post by RyosukeZ » Wed Dec 06, 2006 7:30 am

new one

Code: Select all

Error Detail 
  
Critical Error

FIND FAILED: In file [admin/admin_ranks.php] could not find:

"L_SPECIAL_RANK" => $lang['Special_rank'],
Probably change to

Code: Select all

"L_SPECIAL_RANK" => ?
or

Code: Select all

"L_SPECIAL_RANK" ?
Bored? Come and have fun at my forum!!
Lets rock the hse!!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Group Rank Hack Install problem!

Post by Nightrider » Wed Dec 06, 2006 7:39 am

Yes, use the first one...

Image

User avatar
RyosukeZ
Registered User
Posts: 302
Joined: Sun Oct 01, 2006 12:40 am
Location: Woodlands, Singapore
Contact:

Re: Group Rank Hack Install problem!

Post by RyosukeZ » Wed Dec 06, 2006 7:50 am

now new one, this one i don't know how to try haha

Code: Select all

Error Detail 
  
Critical Error

FIND FAILED: In file [admin/admin_ranks.php] could not find:

"SPECIAL_RANK" => ( $special_rank == 1 ) ? $lang['Yes'] : $lang['No'], 

MOD script line #505 :: FAQ :: Report
Bored? Come and have fun at my forum!!
Lets rock the hse!!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Group Rank Hack Install problem!

Post by Nightrider » Wed Dec 06, 2006 8:14 am

This section of the admin_ranks.php file has been radically modified by one or more of the phpBB Updates. So the following is an educated guess of what you should do. Since it is a guess, I can't be 100% certain that it is correct, but I think it will work...

OPEN
Install.txt

FIND

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
			$rank_is_special = ( $special_rank ) ? $lang['Yes'] : ( $rank_rows[$i]['rank_group'] > 0 ? $rank_rows[$i]['group_name'] : $lang['No'] );   // ADDED BY Group Rank Hack
#
#-----[ FIND ]------------------------------------------
#
"SPECIAL_RANK" => ( $special_rank == 1 ) ? $lang['Yes'] : $lang['No'],
#
#-----[ REPLACE WITH ]------------------------------------------
#
				"SPECIAL_RANK" => $rank_is_special, //  REPLACED '( $special_rank == 1 ) ? $lang['Yes'] : $lang['No']' WITH '$rank_is_special' BY Group Rank Hack
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT * FROM " . RANKS_TABLE . "
ORDER BY rank_min, rank_title";
#
#-----[ REPLACE WITH ]------------------------------------------
#
	$sql = "SELECT r.*, g.group_name
		FROM " . RANKS_TABLE . " r
			LEFT JOIN " . GROUPS_TABLE . " g ON g.group_id = r.rank_group
		ORDER BY r.rank_special DESC, rank_group ASC, r.rank_min ASC"; // ADDED 'r.' AND ', g.group_name' AND 'r LEFT JOIN " . GROUPS_TABLE . " g ON g.group_id = r.rank_group' AND 'rank_group ASC, ' BY Group Rank Hack
#
#-----[ FIND ]------------------------------------------
#
"L_SPECIAL_RANK" => $lang['Special_rank'],
#
#-----[ REPLACE WITH ]------------------------------------------
#
		"L_SPECIAL_RANK" => $lang['Group_Rank_special'], // ADDED 'Group_' BY Group Rank Hack
#
#-----[ FIND ]------------------------------------------
#
$rank_is_special = ( $special_rank ) ? $lang['Yes'] : $lang['No'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
		$rank_is_special = ( $special_rank ) ? $lang['Yes'] : ( $rank_rows[$i]['rank_group'] > 0 ? $rank_rows[$i]['group_name'] : $lang['No'] );   // ADDED  '( $rank_rows[$i]['rank_title'] > 0 ? $rank_rows[$i]['group_name'] :' AND ')' BY Group Rank Hack
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$rank_is_special = ( $special_rank ) ? $lang['Yes'] : $lang['No'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
			$rank_is_special = ( $special_rank ) ? $lang['Yes'] : ( $rank_rows[$i]['rank_group'] > 0 ? $rank_rows[$i]['group_name'] : $lang['No'] );   // ADDED BY Group Rank Hack
Save, upload, and try again using EM...

Image

User avatar
RyosukeZ
Registered User
Posts: 302
Joined: Sun Oct 01, 2006 12:40 am
Location: Woodlands, Singapore
Contact:

Re: Group Rank Hack Install problem!

Post by RyosukeZ » Wed Dec 06, 2006 8:33 am

yay working fine.

but got unprocessed commands

Code: Select all

Unprocessed Commands 
AFTER, THE ABOVE FOUND CODE, ADD     #231  
*/
Bored? Come and have fun at my forum!!
Lets rock the hse!!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Group Rank Hack Install problem!

Post by Nightrider » Wed Dec 06, 2006 8:39 am

Ok, try this:

OPEN
Install.txt

FIND

Code: Select all

#
#-----[ AFTER, THE ABOVE FOUND CODE, ADD ]------------------------------------------
#
*/
REPLACE WITH

Code: Select all

#
#-----[ AFTER, ADD ]------------------------------------------
#
*/
Save, upload, and try again using EM...

Image

Locked