Previous Thread
Next Thread
Print Thread
Rate Thread
#221967 08/04/2002 10:33 AM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Mod Name / Version PM-Limit 1.0beta
Description Limits the number of PM:s to show in the PM list and adds prev/next-buttons.
Working under UBB.threads 6.0.2
Any pre-requisites None
Author(s) Gardener
Credits Muhammad for coming up with the idea.
Demo None
Files Altered viewmessages.php, viewmessages.tmpl
Database Altered No
New Files None
Any other info Please report any problems you might have and I'll try to fix them as soon as possible. I don't thinke there is a line of new code in this hack, everything is just copied from postlist.php.

Attachments
53552-PM-Limit-1_0beta.txt (0 Bytes, 44 downloads)

Sponsored Links
c0bra #221968 08/04/2002 2:29 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Another nice one, you are rolling tham out


- Allen wavey
- What Drives You?
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Well, I badly needed this one really. I'm visiting my parents and the internet connection is painfully slow so it took ages to load my PM section.

The PM section is becoming better every day now, the only things I can think of to add now is the signatures hack, except for the attachment one which will have to wait.

c0bra #221970 08/12/2002 7:32 PM
Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
This one doesn't work for me. I get the following error message:

code:
Parse error: parse error, unexpected T_ELSE in /home/virtual/site1/fst/var/www/html/ubb/viewmessages.php on line 85



Taking a look at the section around line 85, this is what I get:

code:
// -----------------------------------------------------------------------
// Now we calculate which messages to grab for this page. We want to grab
// one from the previous page and one from the next page so we know what
// the previous and next messages will be
if (!($page > 0)) {
$Totalgrab = $PostsPer + 1;
$Posts = $PostsPer + 1;
}
else {
$Startat = $page * $PostsPer;
$Posts = $PostsPer + 1;
}
else {
$Startat = $page * $PostsPer;
$Posts = $PostsPer + 1;
$Totalgrab = "$Startat, $Posts";
}


As you can see, there are two succeeding else statements. Shouldn't there be an if statement in there somewhere?

SDS #221971 08/12/2002 8:10 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Remove the following lines and you should be fine:
code:

else {
$Startat = $page * $PostsPer;
$Posts = $PostsPer + 1;
}



I don't know how that bit got into the instructions, but it shouldn't be there.

Thanks for the report, I'll fix the instructions and release a new version with one or two new features soon.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)