DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • October 22, 2017, 03:50:27 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Core: Inbox message limit  (Read 2673 times)
0 Members and 1 Guest are viewing this topic.
Nightborn
Guest
« on: October 08, 2005, 10:55:34 AM »

Hi!

Currently, the limit only applies to *unread* mails...
but some users have 300 or more *read* mails in their inbox, and I want to limit that...

Code:
      $sql = "SELECT count(messageid) AS count FROM " . db_prefix("mail") . " WHERE msgto='".$row1['acctid']."' AND seen=0";

Line 81.

Now my question: I think it is supposed to count only for unread mails.
Can we apply a second setting for the general amount of mails in this case?

Thanks!
Logged
kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1589


Yay for elephants!


View Profile WWW
« Reply #1 on: October 08, 2005, 06:29:44 PM »

If you want to change it so the limit is for the amount of mail in the box change
Code:
$sql = "SELECT count(messageid) AS count FROM " . db_prefix("mail") . " WHERE msgto='".$row1['acctid']."' AND seen=0";
to
Code:
$sql = "SELECT count(messageid) AS count FROM " . db_prefix("mail") . " WHERE msgto='".$row1['acctid']."'";
Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
Nightborn
Guest
« Reply #2 on: October 09, 2005, 01:49:06 AM »

Thanks Wink I know that and changed that already.

I just think that it might be wise to have an additional setting ... we should be able to control the total amount in the inboxes AND the amount of unread.

This would result in a core change, thus I wanted Kendaer's opinion about it primarily yet I didn't wanted to post this in the "core bug" thread:)
Logged
Kendaer
Guest
« Reply #3 on: October 09, 2005, 04:47:44 PM »

I have no intentions of providing this sort of functionality.

For all mail, it will expire after 'oldmail' days whether it's been read or not, so I don't believe this is actually a problem and I have no interest in making any changes, nor integrating any changes regarding this at this time.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #4 on: October 09, 2005, 11:32:37 PM »

I don't think the problem was the expiring of read or unread mails, but that the text says
"You will no longer be able to receive messages from players if you have more than %s messages in your inbox."

But it should read
"You will no longer be able to receive messages from players if you have more than %s unread messages in your inbox."
« Last Edit: October 09, 2005, 11:32:55 PM by XChrisX » Logged

Running for more than three years now:
Kendaer
Guest
« Reply #5 on: October 10, 2005, 12:13:48 PM »

XChrisX, that didn't seem to be what he was requesting, but I've changed that wording since it was in fact wrong Smiley
Logged
Nightborn
Guest
« Reply #6 on: October 10, 2005, 12:17:24 PM »

Yes Smiley I thought about both options (people can have 500 mails in less than 30 days *yuck* therefore I wanted to have limits. Normal players with little read mails and less logins should be able to have a look at their mails longer).

But if you change the word, what happens is now clear Smiley

I don't know if a module would make sense to keep this at bay. we'll see.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
15 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search