UBB.Dev
Posted By: Slawek_L Beta-[6.3] Flat view for PM - 06/29/2004 1:06 AM
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.


Attached File
115865-viewmessagesflat.zip  (237 downloads)
Posted By: juggaleaux Re: Beta-[6.3] Flat view for PM - 07/15/2004 6:48 PM
I installed it. It works, and it is teh sexy.
Posted By: DrChaos Re: Beta-[6.3] Flat view for PM - 07/15/2004 10:54 PM
/* and the crowd chants 6.5, 6.5,? */

Im drooling....
Posted By: isaac Re: Beta-[6.3] Flat view for PM - 07/21/2004 9:39 AM
this mod works just fine on 6.5x as well.... good job!
Posted By: DrChaos Re: Beta-[6.3] Flat view for PM - 07/21/2004 4:32 PM
Thanks, I was to scared to try it...
Posted By: Tina Re: Beta-[6.3] Flat view for PM - 05/11/2005 5:16 AM
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?
Posted By: scroungr Re: Beta-[6.3] Flat view for PM - 05/11/2005 11:47 PM
are you running just the english translation files? try

require "languages/english/viewmessages.php";
Posted By: Slawek_L Re: Beta-[6.3] Flat view for PM - 05/31/2005 12:55 AM
Find if in this file is English as language.
© UBB.Developers