Ok, I think I have it. In Allen's version, the
if-block I writed I my last posting is out of the
if ($total_posts > $vars_display{HTMLDisplayMax}) { ... }. And that's the cause of our problems. $total_pages is defined with a
my-definition, so out of the
if ($total_posts > $vars_display{HTMLDisplayMax}) { ... }-thing $total_pages = 0! There are 2 ways to fix the problem:
1st Delete the
my out of the
my $total_pages = int ($total_posts / $vars_display{HTMLDisplayMax}); or
2nd set the
if ($total_pages > 1) { ... }-block into the
if ($total_posts > $vars_display{HTMLDisplayMax}) { ... }-thing.
I used the 2nd way, so my code in ubb_forum.cgi is:
- Roodah
[ April 03, 2001: Message edited by: Roodah ]
[ April 03, 2001: Message edited by: Roodah ]