https://www.icyphoenix.com/viewtopic.php?f=26&t=1624&p=12075#p12075
-----------------------------------
symphosius
Fri 13 Apr, 2007 00:24

Multiple Ranks Mod 2.0.3 - User_totalpages
-----------------------------------
Hi Folks,
it should be possible to assign a rank to the number of pages a member has visited (user_totalpages) insted of the number of postings or days of membership (regarding user_regdate). 
Could you please give me a hint, where to screw? Changing  user_regdate to user_totalpages in funktions_mg_ranks.php 

[code linenumbers=false]$day_diff = intval( (time() - $user_row['user_regdate']) / 86400 );
	to		$totalpages = intval($user_row['user_totalpages']);

and 

case '-1':
	if (($user_row[$user_fields_array[$k]] == '-1') && ($totalpages >= $ranks_sql['ranksrow'][$j]['rank_min']))
	{
		$rank_sw = true;
	}
	break;
[/code]

does not work, 'user_totalpages' seems not to be read from the database.

Thank you,
symphosius


