Previous Thread
Next Thread
Print Thread
Rate Thread
#232280 01/08/2003 1:02 PM
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Mod Name / Version PM-Limit 1.1.1
Description Limits the number of PM:s to show in the PM list and adds prev/next-buttons.
Working under UBB.threads 6.2
Any pre-requisites None
Author(s) Gardener, Converted to 6.2 by Astaran
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.
History 2003-03-26 Fixed glitch in instructions

I only converted the hack to 6.2. No functional changes since the 1.0beta version, created by gardener.
It could be moved to the Finished Modifications Forum if someone verifies, that the instructions are correct.
Attachments
64102-PmLimit_1_1_1.txt (0 Bytes, 86 downloads)

Last edited by Astaran; 03/26/2003 7:34 AM.
Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks for the update Astaran!

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Damn! You just beat me to it. I was finishing the instructions today...



Warm regards

Nikos


Nikos
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Too bad you did some work in vain, but maybe you can check Astarans code instead to make sure the instructions are OK?

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Will do Gardener

Warm regards

Nikos


Nikos
Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
A small update on the instructions. Tried to make them as clear as possible.

Warm regards

Nikos

Edit: Removed the attachment. Please see the top post

Last edited by dimopoulos; 01/08/2003 6:56 PM.

Nikos
Joined: Apr 2002
Posts: 102
Journeyman
Journeyman
Offline
Joined: Apr 2002
Posts: 102
Works great! Thanks

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Thx, dimopoulos!
I updated the post with your, more detailed instructions. They are clearer if you already installed other hacks.


Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
No problem Astaran

I removed my attachment to avoid confusion.

Warm regards

Nikos


Nikos
Joined: Mar 2003
Posts: 215
Junior Member
Junior Member
Offline
Joined: Mar 2003
Posts: 215
Just applied this, seems to work great! This is a nice improvement for people who don't get rid of PMs.

Suggestion if this is taken any further: Page numbers would be nice if possible.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Moved to Finished Mods.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
I don't think that this would be difficult to implement. As a matter of fact I was creating a class that would handle the page numbers appropriately on any results list. Since I developed this for a project at work (yes boss said Ok for PHP) I would need to expand it a bit more to become more generic to work with everything. If I am successfull then all aspects of listed resultsets can use this class to display the page numbers.


Nikos
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Anybody got the changes needed to work with pm filter 1.3


Kelly #232293 03/13/2003 10:58 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
If I'm not mistaken Marty the PM Filter has the optional steps for integration with the PM Limit modification, or am I mistaken....


Nikos
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think you are right.

Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
There is a failure in the instructions:

Point 2.1 is wrong.

CHANGE THIS:
Step 2.1: Find this line (at line 10):
$ubbt_lang[$box]

And CHANGE it into this:
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tdheader">
<b>$ubbt_lang[$box]</b>
</td>
<td align="right" valign="bottom" class="tdheader">
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<!-- prevoption is either previous.gif or greyprevious.gif -->
$prevstart
<img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle />
{$ubbt_lang['PREV_ICON']}
$prevstop
 
</td>
<td class="navigation" nowrap="nowrap">
<a href="{$config['phpurl']}/login.php?Cat=$Cat">
<img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle />
{$ubbt_lang['INDEX_ICON']}
</a>
 
</td>
<td class="navigation" nowrap="nowrap">
<!-- nextoption is either next.gif or greynext.gif -->
$nextstart
<img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle />
{$ubbt_lang['NEXT_ICON']}
$nextstop
 
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>


TO:
Step 2.1: Find this line (at line 10):
$ubbt_lang[$box]

And CHANGE it into this:
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="tdheader">
<b>$ubbt_lang[$box]</b>
</td>
<td align="right" valign="bottom" class="tdheader">
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<!-- prevoption is either previous.gif or greyprevious.gif -->
$prevstart
<img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_PAGE']}" border="0" {$images['previous']} $imagestyle />
{$ubbt_lang['PREV_ICON']}
$prevstop
 
</td>
<td class="navigation" nowrap="nowrap">
<a href="{$config['phpurl']}/login.php?Cat=$Cat">
<img src="{$config['images']}/all.gif" alt="{$ubbt_lang['FORUM_IND']}" border="0" {$images['all']} $imagestyle />
{$ubbt_lang['INDEX_ICON']}
</a>
 
</td>
<td class="navigation" nowrap="nowrap">
<!-- nextoption is either next.gif or greynext.gif -->
$nextstart
<img src="{$config['images']}/$nextoption" alt="{$ubbt_lang['NEXT_PAGE']}" border="0" {$images['next']} $imagestyle />
{$ubbt_lang['NEXT_ICON']}
$nextstop
 
</td>
</tr>
</table>
</td>
</tr>
</table>

then it is working.
The table tag is closed three times. Does not matter if you have no menues beside your forum but I have the sidebar hack installed and then this kills the layout

Please update the documentation!

edr #232296 03/26/2003 7:34 AM
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Thx, i corrected the instructions.


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
hatter
hatter
USA
Posts: 69
Joined: January 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)