Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: Apr 2002
Posts: 102
Journeyman
Journeyman
Offline
Joined: Apr 2002
Posts: 102
Mod Name / Version: PM-Limit 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-6.3

Mod Status: Finished

Any pre-requisites:

Author(s): Gardener, Converted to 6.2 by Astaran

Date: 06/17/03

Credits: Muhammad for coming up with the idea.

Files Altered: viewmessages.php, viewmessages.tmpl

New Files: None

Database Altered: No

Info/Instructions:

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

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'll need to restore unmodified files.


Attachments
85383-PM-Limit-1_1.txt (0 Bytes, 105 downloads)

Last edited by Gardener; 06/21/2003 12:43 PM.
Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks for the update!

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
A minor omission. I have installed this modification in several sites and it did work but on a couple of them you need to add the following:
Code
<br />    $page = get_input("page","get");<br />

below
Code
<br />    $Cat = get_input("Cat","get");<br />    $box = get_input("box","get");<br />

This will effectively grab the page passed and make the script work.


Nikos
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks for the fix. I'll update the first post of the thread.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
When I try this - I am getting a blank page, instead of the list of PM's being diplayed - can't see any errors that I have made.

If I look at the source for the page, it does not even appear to call the tmpl as nothing is in the code.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Language files maybe Ian?


Nikos
Joined: Aug 2003
Posts: 160
ST Offline
Junior Member
Junior Member
Offline
Joined: Aug 2003
Posts: 160
I get a Parse error in live 225 of viewmessages.php.

The lines 223-226 look like this
[]
223 // Grab the tablewrapper
224 list($tbopen,$tbclose) = $html -> table_wrapper();
225
226 include("$thispath/templates/$tempstyle/viewmessages.tmpl");[/]

Joined: Aug 2003
Posts: 160
ST Offline
Junior Member
Junior Member
Offline
Joined: Aug 2003
Posts: 160
Can anyone help with this error or offer a suggestion on how to end up with similar results? (ie making PM's show up as flat mod with multiple viewd at one time or with previous and next buttons)

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
I would say that you have a small typo before those lines. Usually it is a missed ; or a "

Check the instructions and if you still haven't found it give us a shout.


Nikos
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Converted for 6.5 (very minor edits were needed).
Attachments
120487-PM-Limit1.2.txt (0 Bytes, 69 downloads)

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Oh, I nearly forgot:

I added a "Send a PM" botton to the messages screen(where it should have allways been one IMO)

In viewmessages.tmpl
Search for

<td class="navigation" nowrap="nowrap">
<!-- prevoption is either previous.gif or greyprevious.gif -->

Insert BEFORE:
<td class="navigation" nowrap="nowrap"> 
<a href="{$config['phpurl']}/sendprivate.php?Cat=0">Send a PM</a> 
</td>


There are 2 of those strings, so you will have to do this twice in this file.

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
The overall result looks like this:

[]http://img.photobucket.com/albums/v453/annonymer/sendapm.gif[/]


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
Posts: 70
Joined: January 2007
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 20240430)