Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2006
Posts: 24
Newbie
Newbie
Offline
Joined: Nov 2006
Posts: 24
I tried doing a search for this basic mod, but the search feature isn't very helpful when searching for terms like "PM". It would seem to me that someone should have already done a hack that displays a warning image or something along those lines when a users box gets full or near full. What do you say guys? I'd hate to re-invent the wheel.

Last edited by st5150; 01/08/2007 11:04 PM.
Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
"pm" is under the 3 character limit; so it should error out. I don't believe there is a mod for an indication of how full your pm box is however; you should reuest it as a feature at ubbcentral, i'm sure quite a few people would second the motion wink...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2006
Posts: 24
Newbie
Newbie
Offline
Joined: Nov 2006
Posts: 24
I don't think I even remember my login info for the infopop site. My perl is rusty, but it shouldn't be more than a couple of lines of code to have pm box near full image displayed when a users box is filling up.

While on the topic, why does .classic have a 60 PM limit? Can it be changed?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Classic's pm lmit can be edited through a code edit, i have no clue where it is, and i don't have a working install anymore (in fact, most of us have migrated from classic since it's reached its end of life)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Apr 2001
Posts: 96
Power User
Power User
Joined: Apr 2001
Posts: 96
Originally Posted by Gizmo
Classic's pm lmit can be edited through a code edit, i have no clue where it is, and i don't have a working install anymore (in fact, most of us have migrated from classic since it's reached its end of life)


You don't need a running Classic forum, just the files. wink

This looks like it:

In /cgi-bin/ubb_pm.cgi

At or near line 248 find:
Code

if ($index_count > 59) {
&StandardHTML("$vars_wordlets_err{pm_user_max}");

Change the 59 to a higher number.



GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
True, we used to do it like so here (since I always ran over on pm limit wink )

Code

if ($index_count > 59 && $_[0] ne '00000494') {
&StandardHTML("$vars_wordlets_err{pm_user_max}");
}

substitute the '00000494' for whatever number you want to have unlimited pm's smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Allen never trims out his pm's... lol...

Last edited by Gizmo; 01/10/2007 12:05 AM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
It should be noted that the limit was put in for performance reasons, and ignoring it could slow down your board

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Yeh, allen is a resource hog wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2006
Posts: 24
Newbie
Newbie
Offline
Joined: Nov 2006
Posts: 24
Thanks for the replies guys. Some geat info. It looks like displaying a warning image when a PM box gets near full is going to be my best solution. I thought I'd be re-inventing the wheel by doing this hack myself, but surprisingly, it looks like no one has invented this wheel yet. From first glance it looks very easy to do, since .classic already keeps track of the number of PMs send and recieved. Shouldn't be anything more than a if sent+recieved < 57, display
Last edited by st5150; 01/14/2007 5:25 AM.
Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Theres a mod called the "PM Inbox Indicator" for UBB.Classic 6.4 that shows an indcator (as well as nifty folders).


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts

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)