Print Topic - Archive

E-Blah Community  /  E-Blah Bugs  /  PM Message Pages - too many
Posted by: mealybar, April 19, 2008, 8:13am
http://www.eblah.com/forum/m-1171229588/

This is still an issue for me; is there a small code change I can make?

I think it's here; PM.pl Line 124
Code
	# Get Pages
	$mupp = 15;
	$maxmessages = @pmz || 1;
	if($maxmessages < $mupp) {
		$URL{'p'} = 0;
		$totalpages = 1;
	} else { $totalpages = int(($maxmessages/$mupp)+.99); }
	$tstart = $URL{'p'} || 0;
	$link = "$surl\lv-memberpanel/a-pm/f-$URL{'f'}/start-$URL{'start'}/p";
	if($tstart > $maxmessages) { $tstart = $maxmessages; }
	$tstart = (int($tstart/$mupp)*$mupp);
	if($tstart > 0) { $bk = ($tstart-$mupp); $pagelinks = qq~<a href="$link-$bk/">&#171;</a> ~; }
	$counter = 1;
	for($i = 0; $i < $maxmessages; $i += $mupp) {
		if($i == $tstart || $maxmessages < $mupp) { $pagelinks .= qq~<strong>$counter</strong> ~; $nxt = ($tstart+$mupp); }
			else { $pagelinks .= qq~<a href="$link-$i/">$counter</a> ~; }
		++$counter;
	}
	if(($tstart+$mupp) != $i) { $pagelinks .= qq~ <a href="$link-$nxt/">&#187;</a>~; }
	$end = ($tstart+$mupp);
	if($end > @pmz) { $end = @pmz; }
	$totalshown = "\u$var{'92'} ".($tstart+1)."-$end $var{'93'} ".@pmz." $gtxt{'11'}.";
Posted by: Justin, April 21, 2008, 12:47am; Reply: 1
I'll see if I can solve this issue soon for you.

I thought you used the SQL version, my mistake.  :(
Posted by: Justin, July 18, 2008, 6:37pm; Reply: 2
Fixed, finally.  :)
Print page generated: November 20, 2008, 6:04pm