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). [/]
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.
[]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!
[]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).
[]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...
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.