Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
Mod Name / Version: Private Message Inbox Status

Description: Yes I almost feel silly posting this...it is a no-frills and no-big-deal little snippet of code. This really is nothing special, but someone besides myself might find it useful for busy forums using 6.5's new "max # of private messages allowed" setting.

What this does is add a percent used amount under the Header, ie:

[:"blue"]Viewing your received messages
Your inbox is at 4% capacity (50 total private messages allowed). [/]


Working Under: UBB.Threads 6.5

Mod Status: Finished

Any pre-requisites:

Author(s): Medar

Date: 09/14/04

Credits: Oh, just me.

Files Altered: /languages/english/viewmessages.php, viewmessages.tmpl, viewmessages.php

New Files: None.

Database Altered: No

Info/Instructions: See attached - very easy! FYI there is an enhanced version of this (it allows you to save Private Messages, etc) that may be found here.

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
119869-box_status.txt (0 Bytes, 180 downloads)

Last edited by Medar; 10/11/2004 10:51 AM.
Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Thanx Medar

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
no frills - but still very cool! Thanks!

Joined: Nov 2001
Posts: 134
Journeyman
Journeyman
Offline
Joined: Nov 2001
Posts: 134
Its great, although I think it would be more useful on the myhome page, and if the user's mailbox is full a big red "its full" type alert...

Joined: Nov 2001
Posts: 134
Journeyman
Journeyman
Offline
Joined: Nov 2001
Posts: 134
You might also want to update the instructions, as the language files update isnt so clear.

Should actually be

$ubbt_lang['cap1'] = "Your inbox is at ";
$ubbt_lang['cap2'] = "capacity (";
$ubbt_lang['cap3'] = "total private messages allowed).";

Sponsored Links
Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
Thank you Medar, I installed this and works perfectly.

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
[]MattUK said:
Its great, although I think it would be more useful on the myhome page, and if the user's mailbox is full a big red "its full" type alert... [/]
Actually Matt - that alert is built in, and that is why I did not touch the myhome.tmpl file. This was more of a quick way to see where you are BEFORE you are full up.

I did update this to include better language instructions, thanks!

Joined: Oct 2004
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2004
Posts: 16
[]MattUK said:
You might also want to update the instructions, as the language files update isnt so clear.

Should actually be

$ubbt_lang['cap1'] = "Your inbox is at ";
$ubbt_lang['cap2'] = "capacity (";
$ubbt_lang['cap3'] = "total private messages allowed)."; [/]

actually, the correct coding (after trial and error for 1/2 an hour since it wasn't working on my 6.5 ubbt)

needs to be:

<?$ubbt_lang['cap1'] = "Your inbox is at ";$ubbt_lang['cap2'] = "capacity (";$ubbt_lang['cap3'] = "total private messages allowed).";?>

the beginning and end tags (with the ?'s) were missing!

Hope this helps the other users out there that were having the same problem I was (line of code was showing up at the top of the page in black and decoded).

Kristie

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
Kristie, did you add those to your language file, or somewhere else?

Joined: Oct 2004
Posts: 16
Junior Member
Junior Member
Offline
Joined: Oct 2004
Posts: 16
to the language file

Sponsored Links
Joined: Jul 2004
Posts: 43
User
User
Joined: Jul 2004
Posts: 43
This is wonderful, Medar... thanks!!!!

[]Medar said:
Kristie, did you add those to your language file, or somewhere else? [/]
I actually downloaded the language file directly and added it rather than going through the admin console... although, in both cases, I imagine it will work. Just quicker when I download, edit, and re-ftp.

[:"brown"]By the way, how do I reduce the number of digits after the decimal point to two instead the endless number that shows up??? [/]


Helping the lost & lonely one sweet soul at a time...

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
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)