php forum
php mysql forum
php mysql smarty
 
Topic Options
#285642 - 06/24/05 08:54 AM Finished-[6.5] Paginate PMs 1.0
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
Mod Name / Version: Paginate PMs 1.0 <br /> <br />Description: Splits the list of PMs into pages. The number of PMs per page is twice the number of posts per page on postlist.php. <br /> <br />Working Under: UBB.Threads 6.5, likely also 6.4x, 6.5.1, 6.5.1.1 and 6.5.2 <br /> <br />Mod Status: Finished <br /> <br />Any pre-requisites: none <br /> <br />Author(s): Anno <br /> <br />Date: 06/24/05 <br /> <br />Credits: <br /> <br />Files Altered: <br />viewmessages.php <br />templates/default/viewmessages.tmpl <br /> <br />New Files: none <br /> <br />Database Altered: no <br /> <br />Info/Instructions: In attachment <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you might need to restore unmodified files.


Attachments
128450-paginate_PMs_6.5_1.0.txt (89 downloads)



Edited by Anno (06/25/05 02:22 PM)

Top
#285643 - 06/25/05 08:05 AM Re: Beta-[6.5] Paginate PMs [Re: domain123]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
Fixed a bug which resulted in an infinite loop when all messages were deleted.<br /><br />If you already applied the mod, please reaply this step:<br /><br />in viewmessages.php<br /><br />Old code:<br />
Code:
  <br />#### Search for:<br />$i = 0;<br /><br />#### Insert before:<br />	$numpms = $dbh-&gt;total_rows($sth);<br />	<br />	if ($numpms == 0 &amp;&amp; $page &gt; 0){<br />		$page = ceil($nums/$PostsPer)-1;<br />	}	<br />}while ($numpms == 0);<br />.........<br />.........<br />.........<br />
<br /><br />New code:<br />
Code:
 <br />	$numpms = $dbh-&gt;total_rows($sth);<br />	$reloop = 0;<br />	if ($numpms == 0 &amp;&amp; $page &gt; 0){<br />		$page = ceil($nums/$PostsPer)-1;<br />		$reloop = 1; <br />	}	<br />}while ($reloop == 1);<br />.........<br />.........<br />.........<br /> 
<br /><br />I uploaded the new version in the attachemnt of the first post.

Top
#285644 - 06/25/05 09:34 AM Re: Beta-[6.5] Paginate PMs [Re: domain123]
bostongio Offline
Lurker

Registered: 09/30/04
Posts: 8
Hmm, this looks familiar...

Top
#285645 - 06/25/05 10:31 AM Re: Beta-[6.5] Paginate PMs [Re: lexa1999]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
Indeed it should

Top
#285646 - 07/25/05 03:26 AM Re: Beta-[6.5] Paginate PMs [Re: domain123]
Jest Offline
Lurker

Registered: 02/23/05
Posts: 7
Cool... it works fine...
_________________________
br
Thomas
www.mobile.si

Top


Moderator:  Ian_W 
Who's Online
0 registered (), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks