Previous Thread
Next Thread
Print Thread
Rate Thread
#275510 06/28/2004 6:06 PM
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Mod Name / Version: Flat view for PM

Description: It displays PM in flat mode

Working Under: UBB.Threads 6.3

Mod Status: Beta

Any pre-requisites: none

Author(s): Slawek_L

Date: 06/28/04

Credits:

Files Altered: viewmessages.tmpl

New Files: viewmessagesflat.php
viewmessagesflat.tmpl

Database Altered: no

Info/Instructions: User PaNTerSan create srcipt for 6.4 veriosn, but it wouldn't work under 6.3, so I change orginal files for own.
-----------
Open viewmessages.tmpl

Find:
<td class="tdheader">
$ubbt_lang[$box]
</td>

change it for:

<td class="tdheader">
Viewing your $box messages in normal mode - <a href="{$config['phpurl']}/viewmessagesflat.php?Cat=$Cat&box=$box"> switch to flat mode</a>
</td>

Upload new files, and that all


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
115865-viewmessagesflat.zip (0 Bytes, 237 downloads)

Sponsored Links
Joined: Mar 2004
Posts: 3
Lurker
Lurker
Offline
Joined: Mar 2004
Posts: 3
I installed it. It works, and it is teh sexy.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
/* and the crowd chants 6.5, 6.5,? */

Im drooling....

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
this mod works just fine on 6.5x as well.... good job!


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Thanks, I was to scared to try it...

Sponsored Links
Joined: Jul 2004
Posts: 43
User
User
Joined: Jul 2004
Posts: 43
I am having issues with line 22 of viewmessages.php:

require "languages/${$config['cookieprefix']."w3t_language"}/viewmessages.php";

I receive the following message when I attempt to go to flat mode:

Warning: main(languages//viewmessages.php): failed to open stream: No such file or directory in /web/hotbox/htdocs/hotbox/ubbthreads-6.5.1/viewmessagesflat.php on line 22

However, when I change line 22 to:

require "languages/{$myprefs['language']}/viewmessages.php";

...then, I can see everything in flat mode, but without the cookie function, it does not stay when I go back after leaving momentarily from my profile of PM's.

Any workaround help?


Helping the lost & lonely one sweet soul at a time...
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
are you running just the english translation files? try

require "languages/english/viewmessages.php";

Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
Find if in this file is English as language.


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
isaac
isaac
California
Posts: 1,157
Joined: July 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
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)