Ranks summarize

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
21
51%
Very Good
14
34%
Good
3
7%
Fair
0
No votes
Poor
3
7%
 
Total votes: 41

sfamonkey
Registered User
Posts: 17
Joined: Thu Oct 07, 2004 6:15 pm

Post by sfamonkey »

can't wait to install it.
to bad I have homework. It really gonna be useful. Thanks
User avatar
David Pook
Registered User
Posts: 97
Joined: Sun Nov 07, 2004 1:27 pm
Contact:

DISAPPEARED !!!!...... help please :)

Post by David Pook »

I installed this MOD 2 days ago. Works beautifully.

HOWEVER........ on looking at my site today, it has suddenly disappeared ?


HOW and WHY has this happened ?.... I havent installed any new MODS at all so i dont see the reason for this.

PLEASE........ could someone point out to me what has happened and what can i do to rectify this ??

Many thanks in advance...... I REALLY love this MOD and REALLY want it back for my users..... PLEASE :lol: :lol: :lol: :lol:

UPDATE - 8th Dec 04

I have found the MOD (Ranks summarize : upgrade from 1.0.2 to 1.0.3) but i get this error:

Code: Select all

FIND FAILED: In file [language/lang_english/lang_main.php] could not find:

<?php 
//-- mod : ranks ----------------------------------------------------------------------------------- 

MOD script line #97 
Is this because I havent installed the original ranks summarize as this one is an upgrade ?.... (Please could someone point out to me where i can find the original one..... have looked tirelessly.... and cant find it) :?:

Please help with this problem as I am desperate to get this MOD back :(

:lol: :lol: :lol: :lol:
If you dont ask..... You dont get !!
User avatar
David Pook
Registered User
Posts: 97
Joined: Sun Nov 07, 2004 1:27 pm
Contact:

Post by David Pook »

Well....... as you can see........ No-One has posted anything since i posted in this topic.

I have since upgraded my site with 2.11 and had to reinstall all the other mods i had on there..........all done..........EXCEPT....

THIS MOD........

I installed this MOD without a hitch. Once installed i checked the "ranks" link on the front page of the site..... It was there and clicked on it and viewed a page of all my users and their ranks assigned. GREAT...........

BUT UNFORTUNATELY.......... and for whatever reason,, I logged out, logged back in and the "Ranks" icon is now missing ??????

What a shame i thought......... and then i thought WHY isnt this now showing ???????...... For what reason WONT this show now ?????.......... If you ask me....... This is a piece of crap. TOTALLY UNSTABLE.

That of course is MY OPINION

If anyone could help with explaining WHY this is NOW missing, I would be very grateful.... I dont expect the auther of this MOD to reply as I dont think he has posted any replies to any questions in relation to this MOD. I wonder why !!! :evil:
If you dont ask..... You dont get !!
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

Hi David,

I will try to be more polite than you are :

First, this mod (actually addition), is done for phpBB, not for portal : until you are familiar with directory management in phpBB, you won't be able to use it outside phpBB.

Second, if I don't answer to some questions, it is because they are not relative to the mod itself, but on how to install a mod - and there are numerous articles here at phpBB, and in quite all the site relative to phpBB usage - and the most often issue - what seems to be your case - is relative to how to read mod install description header, including title, author's note and other comments. As this topic is absolutly not dedicated to learn you all of this, there is no point to answer to this kind of questions.

And third, I'm really sorry for you, but this addition is very stable, and hasn't required any upgrade since it has been released. So if I were you, I will ask me :
"why it is not stable on my site ?"
"what did I modified on the board and/or to the mod to make it fails"
and would finaly end with "Gosh ! I'm really an idiot to not have seen the stupid error I did"

Be sure to remove this add if you don't like it, or aren't able to install it, or not able to make it works the way you want, that's just fine with me :).
User avatar
David Pook
Registered User
Posts: 97
Joined: Sun Nov 07, 2004 1:27 pm
Contact:

Post by David Pook »

I am sorry for my outburst, its down to frustration more than anything.

Its a great looking MOD. It worked fine and then it didnt and having had the facility to view ranks and it disappearing has made me sad :cry:

I also dont have time to spend a great deal of time reading bits and pieces and although i should, i would like to.

In the future i will spend more time reading the "read me" file before i fly off the handle and get frustrated.

SORRY again for upsetting you.......... I will get this mod working properly (probably next week as i am on holiday)

A Merry Xmas to you and your family and a Happy New Year
:lol: :D
If you dont ask..... You dont get !!
User avatar
Ptirhiik
Registered User
Posts: 7411
Joined: Mon Jan 06, 2003 10:36 pm
Contact:

Post by Ptirhiik »

I'm not upset hopefully :). Marry christmas to yours too :)
Ev!L ErN!E
Registered User
Posts: 182
Joined: Mon Aug 18, 2003 6:03 pm
Location: Michigan
Contact:

Post by Ev!L ErN!E »

I'm having a problem with the rank images not showing up.... is there a way to change the rank images directory in this mod? Because I am using a template mod that makes it so you can use different rank images per template and it uses a different directory for the rank images, so how can I change how the ranks page reads the rank images?
Image

www.clanevilinc.com || Join our community!
www.deadmod.com || A HL2 zombification
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Post by noth »

I have uploaded the files and done the changes for the files shown but when I press the RANKS button I just get a white page - BLANK

> my forum here < please log in as fred ............... password = fred

if you press RANKS from the menu, the page just goes blank :cry:
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Post by noth »

I have uploaded the files and done the changes for the files shown but when I press the RANKS button I just get a white page - BLANK

> my forum here < please log in as fred ............... password = fred

if you press RANKS from the menu, the page just goes blank :cry:
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Post by noth »

Code: Select all

#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : ranks -->
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
{L_USERGROUPS}</a>&nbsp;
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
{L_USERGROUPS}</a>&nbsp;
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
<a href="{U_RANKS}" class="mainmenu">{I_RANKS}{L_RANKS}</a>&nbsp;
#
I am still getting just a blank page whenever I press the ranks button and have now gone over all the edits I made and reuploaded all the new files

the above change is the only possible bit where I may have gone wrong

the inline find EQUALS the full line specified, I don't understand how the two parts are shown

#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
{L_USERGROUPS}</a>&nbsp;
#
#-----[ IN-LINE FIND ]----------------------------------------
#
{L_USERGROUPS}</a>&nbsp;

what does this mean? I'm baffled, does it mean the new code is {L_USERGROUPS}</a>&nbsp;a href="{U_RANKS}" class="mainmenu">{I_RANKS}{L_RANKS}</a>&nbsp;



> my forum here < please log in as fred ............... password = fred

if you press RANKS from the menu, the page just goes blank :cry:
Katarn
Registered User
Posts: 30
Joined: Wed Apr 02, 2003 12:19 pm

Post by Katarn »

Same here, just a blank page.

I also do not understand all the parts where you have to add something after the first line of your file.

I found another mod just like this one, and it's much easier to use. So I'd like to know what's so special about this one. I cannot find any working examples right now.
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Post by noth »

Katarn wrote: I found another mod just like this one, and it's much easier to use. So I'd like to know what's so special about this one.


Katarn you found another Ranks Summarize mod? well I can't get this one to work so please let me have the url for the one you found? :wink:

anybody else have a blank page for THIS mod?
Katarn
Registered User
Posts: 30
Joined: Wed Apr 02, 2003 12:19 pm

Post by Katarn »

I've used this mod, and tried several ways to get it working.

I hope somebody can test this mod for me, because I get the feeling that's there is a failure in it somewhere. I do not get it working.

When I open the ranks.php, I get a blank page.

I hope someone can look into this for us.
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Post by noth »

how strange - I get a blank page on using this mod too

I wonder if ANYBODY KNOWS why this mod gives a BLANK PAGE instead of actually giving a RANKS SUMMARY?

I guess it would be cool if SOMEBODY wrote on here why this mod gives a blank page huh?
Ev!L ErN!E
Registered User
Posts: 182
Joined: Mon Aug 18, 2003 6:03 pm
Location: Michigan
Contact:

Post by Ev!L ErN!E »

I had problems with this as well, but not about a blank page.... all I did was upload the rank images to my forums root directory and it was fine... not sure if that helps but that how I got mine to work.

Heres what my ranks.php looks like:

Code: Select all

<?php
/***************************************************************************
 *                            ranks.php
 *                            ---------
 *	begin				: 08/05/2003
 *	copyright			: Ptirhiik
 *	email				: [email protected]
 *
 *	version				: 1.0.3 - 26/07/2003
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 ***************************************************************************/

// global pgm options
$auth_rank_only_logged = true; // true will required to be logged to have access, false guest are welcome
$spe_rank_max_users = -1; // number of displayed members in the memberlist : -1=all, 0=none, value=number
$std_rank_max_users = 10; // number of displayed members in the memberlist : -1=all, 0=none, value=number

// check for inclusion
if ( isset($check_access) ) return;

// start the prog
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);

$rank_extended = function_exists(extended_rank);
$profilcp = file_exists($phpbb_root_path . 'profilcp/functions_profile.' . $phpEx);
if ($profilcp)
{
	$rank_extended = false;
	include($phpbb_root_path . 'profilcp/functions_profile.' . $phpEx);
}

function get_rank_title($rank_title)
{
	global $rank_extended, $profilcp, $lang;

	$res = $rank_title;
	if ($rank_extended || $profilcp)
	{
		$ranks = explode( "|", $rank_title);
		$res = '';
		$res .= (isset($ranks[1]) && !empty($ranks[1])) ? '<b>' . $lang['Male'] . ': </b>' . $ranks[1] . '<br />': '';
		$res .= (isset($ranks[1]) && !empty($ranks[2])) ? '<b>' . $lang['Female'] . ': </b>' . $ranks[2] . '<br />' : '';
		$res .= '<b>' . $lang['No_gender_specify'] . ': </b>' . $ranks[0];
	}
	return $res;
}

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

// only registered members have access if desired
if ( $auth_rank_only_logged && !$userdata['session_logged_in'] )
{
	redirect(append_sid('login.' . $phpEx . '?redirect=ranks.' . $phpEx, true));
	exit;
}

//
// special ranks
$spe_ranks = array();
$sql = "SELECT * FROM " . RANKS_TABLE . " WHERE rank_special = 1 ORDER BY rank_title";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t read special ranks', '', __LINE__, __FILE__, $sql);
while ($row = $db->sql_fetchrow($result) ) $spe_ranks[] = $row;
for ($i=0; $i < count($spe_ranks); $i++ )
{
	$rank = $spe_ranks[$i]['rank_id'];
	$rank_title = $spe_ranks[$i]['rank_title'];
	$spe_ranks[$i]['user_number'] = 0;
	$spe_ranks[$i]['users_list'] = '';

	// base sql request
	$sql_base = "SELECT * FROM " . USERS_TABLE . " WHERE user_active = 1 AND user_rank = $rank ORDER BY username";

	// get the number of users having this rank
	$sql = $sql_base;
	if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t read users', '', __LINE__, __FILE__, $sql);
	$spe_ranks[$i]['user_number'] = $db->sql_numrows($result);

	// get the user list
	if ( $spe_rank_max_users != 0 )
	{
		$sql = $sql_base;
		if ( $spe_rank_max_users > 0 ) $sql .= " LIMIT 0, " . ($spe_rank_max_users + 1);
		if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t read users', '', __LINE__, __FILE__, $sql);
		$j = 0;
		while ( $row = $db->sql_fetchrow($result) )
		{
			$j++;
			if ( ($spe_rank_max_users <= 0) || ( $j <= $spe_rank_max_users ) )
			{
				$spe_ranks[$i]['users_list'] .= ($spe_ranks[$i]['users_list'] == '') ? '' : ', ';
				$spe_ranks[$i]['users_list'] .= '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id'] ) . '" class="gensmall">' . $row['username'] . '</a>';
			}
			else
			{
				$spe_ranks[$i]['users_list'] .= ($spe_ranks[$i]['users_list'] == '') ? '' : ', ';
				$spe_ranks[$i]['users_list'] .= ( !$profilcp ) ? '...' : '<a href="' . append_sid("profile.$phpEx?mode=buddy&sub=memberlist&filter=user_rank_title&comp=eq&fvalue=$rank_title") . '" class="gensmall">...</a>';
			}
		}
	}
	if ($spe_ranks[$i]['user_number'] > 0) $spe_ranks[$i]['users_list'] = '(' . $spe_ranks[$i]['user_number'] . ') ' . $spe_ranks[$i]['users_list'];
}

//
// standard ranks
$ranks = array();
$sql = "SELECT * FROM " . RANKS_TABLE . " WHERE rank_special <> 1 ORDER BY rank_min";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t read standard ranks', '', __LINE__, __FILE__, $sql);
while ($row = $db->sql_fetchrow($result) ) $ranks[] = $row;

$rank_max = 99999999;
for ($i=count($ranks)-1; $i >=0; $i--)
{
	$ranks[$i]['rank_max'] = $rank_max;
	$rank_title = $ranks[$i]['rank_title'];
	$rank_min = $ranks[$i]['rank_min'];
	
	// count users
	$sql_base = "SELECT * FROM " . USERS_TABLE . " WHERE user_active = 1 AND (user_rank = 0 OR user_rank IS NULL) AND user_posts >= $rank_min" . (($rank_max < 99999999)  ? " AND user_posts < $rank_max" : "" );

	// get the number of users having this rank
	$sql = $sql_base;
	if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t read users', '', __LINE__, __FILE__, $sql);
	$ranks[$i]['user_number'] = $db->sql_numrows($result);

	// get the user list
	if ( $std_rank_max_users != 0 )
	{
		$sql = $sql_base;
		if ( $std_rank_max_users > 0 ) $sql .= " LIMIT 0, " . ($std_rank_max_users + 1);
		if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Couldn\'t read users', '', __LINE__, __FILE__, $sql);
		$j = 0;
		while ( $row = $db->sql_fetchrow($result) )
		{
			$j++;
			if ( ($std_rank_max_users <= 0) || ( $j <= $std_rank_max_users ) )
			{
				$ranks[$i]['users_list'] .= ($ranks[$i]['users_list'] == '') ? '' : ', ';
				$ranks[$i]['users_list'] .= '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id'] ) . '" class="gensmall">' . $row['username'] . '</a>';
			}
			else
			{
				$ranks[$i]['users_list'] .= ($ranks[$i]['users_list'] == '') ? '' : ', ';
				$ranks[$i]['users_list'] .= ( !$profilcp ) ? '...' : '<a href="' . append_sid("profile.$phpEx?mode=buddy&sub=memberlist&filter=user_rank_title&comp=eq&fvalue=$rank_title") . '" class="gensmall">...</a>';
			}
		}
	}

	// store the next limit
	$rank_max = $ranks[$i]['rank_min'];

	// number of user beyond userlist
	if ($ranks[$i]['user_number'] > 0) $ranks[$i]['users_list'] = '(' . $ranks[$i]['user_number'] . ') ' . $ranks[$i]['users_list'];
}

//
// set the page title and include the page header
//
$page_title = $lang['Ranks'];
include ($phpbb_root_path . 'includes/page_header.'.$phpEx);
//
// template setting
//
$template->set_filenames(array(
	'body' => 'ranks_body.tpl')
);

// constants
$template->assign_vars(array(
	'L_SPECIAL_RANKS' => $lang['Special_ranks'],
	'L_USERS_LIST' => $lang['Memberlist'],
	'L_RANKS' => $lang['Ranks'],
	'L_MINI' => $lang['Rank_minimum'],
	'L_TOTAL_USERS' => $lang['Total_users'],
	'SPAN_USERLIST_STD' => ($std_rank_max_users != 0) ? 2 : 1,
	'S_HIDDEN_FIELDS' => '',
	)
);

// standard ranks
if ($std_rank_max_users != 0)
{
	$template->assign_block_vars('std_userlist', array());
}
else $template->assign_block_vars('no_std_userlist', array());

for ($i=0; $i < count($ranks); $i++)
{
	$template->assign_block_vars('ranks', array(
		'RANK_TITLE' => get_rank_title($ranks[$i]['rank_title']),
		'RANK_IMAGE' => ($ranks[$i]['rank_image'] == '') ? '' : '<img src="' . $ranks[$i]['rank_image'] . '" border=0 align="center">',
		'RANK_MINI'  => $ranks[$i]['rank_min'],
		'RANK_TOTAL' => $ranks[$i]['user_number'],
		)
	);
	if ($std_rank_max_users != 0)
	{
		$template->assign_block_vars('ranks.userlist', array(
			'USERS_LIST' => $ranks[$i]['users_list'],
			)
		);
	}
	else $template->assign_block_vars('ranks.no_userlist', array());
}

// special ranks
if ($spe_rank_max_users != 0)
{
	$template->assign_block_vars('spe_userlist', array());
}
else $template->assign_block_vars('no_spe_userlist', array());

for ($i=0; $i < count($spe_ranks); $i++)
{
	$template->assign_block_vars('spe_ranks', array(
		'RANK_TITLE' => get_rank_title($spe_ranks[$i]['rank_title']),
		'RANK_IMAGE' => ($spe_ranks[$i]['rank_image'] == '') ? '' : '<img src="' . $spe_ranks[$i]['rank_image'] . '" border=0 align="center">',
		)
	);
	if ($spe_rank_max_users != 0)
	{
		$template->assign_block_vars('spe_ranks.userlist', array(
			'USERS_LIST' => $spe_ranks[$i]['users_list'],
			)
		);
	}
	else
	{
		$template->assign_block_vars('spe_ranks.no_userlist', array(
			'RANK_TOTAL' => $spe_ranks[$i]['user_number'],
			)
		);
	}
}

//
// page footer
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Image

www.clanevilinc.com || Join our community!
www.deadmod.com || A HL2 zombification
Post Reply

Return to “[2.0.x] MOD Database Releases”