Joined: Apr 2002
Posts: 102
Journeyman
Journeyman
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
Last edited by Gardener; 06/21/2003 12:43 PM .
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
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:
<br /> $page = get_input("page","get");<br /> below
<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 at the moment - but expanding all the time....)
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Language files maybe Ian?
Nikos
Joined: Aug 2003
Posts: 160
Junior Member
Junior Member
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
Junior Member
Junior Member
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
Joined: May 2001
Posts: 550
Converted for 6.5 (very minor edits were needed).
Attachments
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
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
Joined: May 2001
Posts: 550
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.
Posts:
417
Joined: November 2001
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139Sep 21st, 2024
Currently Online
Topics Created
Posts Made
Users Online
Birthdays