Empty your inbox

taitou

Alan
Aaaah, I thought you may have the power to change it! :) Sometimes you might get a funny message every now and then that you'd want to save.. but as for your theory of increasing it to 20, then everyone filling up eventually anyway... I agree ;) Just like money in Real Life, you spend what you earn, and I think the same applies to inboxes :P
 

Wookie

Official Forum Linker
The only things I would change is to add a few more system messages; one saying that the pm limit is 10 and one in big letters, possibly flashing, to tell you that your inbox is full and to delete some messages.

Alternatively, could you set up the messages system like a FIFO queue? so that, for example, if your inbox is full and you get a new message, your oldest message is deleted automagically?

I did computing at uni, does it show? :)
 

Admin

You there; behave!
Staff member
taitou said:
Aaaah, I thought you may have the power to change it! :)
To use the words of the great Prince Adam of Eternia - "I have the power!" ;)

taitou said:
Sometimes you might get a funny message every now and then that you'd want to save..
Well, I would certainly hope that if that were the case, you would post said message on The Forum for all to enjoy!

Unless it was grossly obscene, of course, in which case keep your filthy filth to yourself! ;)
 

Admin

You there; behave!
Staff member
Wookie said:
The only things I would change is to add a few more system messages; one saying that the pm limit is 10 and one in big letters, possibly flashing, to tell you that your inbox is full and to delete some messages.

Alternatively, could you set up the messages system like a FIFO queue? so that, for example, if your inbox is full and you get a new message, your oldest message is deleted automagically?

I did computing at uni, does it show? :)
I can honestly say that is the first time I have heard "FIFO" used in casual every day conversation.

The problem with that sort of implementation is that one risks losing important messages if one's mailbox is suddenly flooded with PMs. I am planning on implementing your original suggestion (i.e. a big, flashing, idiot-proof banner when you hit your hard limit) some time soon, after a similar suggestion from Sofa last week. :)
 

rich upsetter

Cuffy is the new skill
if youre thinking of changing that, is there any chance of having a tick box, where you add ticks and thus hit a button that says 'delete all'? once you realise that your box is full it takes fricking ages to delete them all as you have to go into each one to delete....
 

Wookie

Official Forum Linker
rich upsetter said:
if youre thinking of changing that, is there any chance of having a tick box, where you add ticks and thus hit a button that says 'delete all'? once you realise that your box is full it takes fricking ages to delete them all as you have to go into each one to delete....
I second that - let's have a "Delete All" function.
 

taitou

Alan
"Hey, I still hold shares in Planet Kerjigger, I vote everyone comes round my house and that my cats smell nice"

"Second!" :D

:tumbleweed:
 

db

#chaplife
rich upsetter said:
if youre thinking of changing that, is there any chance of having a tick box, where you add ticks and thus hit a button that says 'delete all'? once you realise that your box is full it takes fricking ages to delete them all as you have to go into each one to delete....
there's a "Delete multiple messages" link at the very bottom left of your screen when you're in the PM screen which is almost exactly as you describe.. i agree it could be in a better place, though..

a Delete All function would defo be nice :up:
 

Rie

I am not a number, I'm a free (wo)man!
Wondered why I was being ignored :( I agree with the above took ages to delete them all, especially with current computer situation.
 

Admin

You there; behave!
Staff member
Wookie said:
The only things I would change is to add a few more system messages; one saying that the pm limit is 10 and one in big letters, possibly flashing, to tell you that your inbox is full and to delete some messages.
Argh, I'm about ready to tear my hair out! You think this would be a simple little thing, wouldn't you? Database query to check the number of messages in a user's inbox, then display a message if the query result is over a given limit. Easy, eh?

NO :angry:

Code:
// Check if the inbox is full
if($pun_config['o_pms_messages'] != 0 && $pun_user['g_id'] > PUN_GUEST){
	$result = $db->query('SELECT count(*) FROM '.$db->prefix.'messages WHERE owner='.$pun_user['id']) or error('Unable to test if the message-box is full', __FILE__, __LINE__, $db->error());
	list($count) = $db->fetch_row($result);
	
	// Display error message
	if($count >= $pun_user['g_pm_limit'])
		$tpl_temp .= "\n\t\t\t\t".'<li class="pmlink"><strong><a href="message_list.php">Your inbox is FULL, please delete some messages!</a></strong></li>';
}
This should do it, but it just isn't working. I cannot believe such a tiny bit of code is giving me so much grief. I've been poring over it for ages now, and I can't see a single problem with it.

:mystery:
 

Wookie

Official Forum Linker
Put it down, come back to it in an hour and the error will might just jump out at you :)
What development environment are you using? Does it allow for nice debuggery things like variable watching, breakpoints, etc etc...
Or are you being a Real Admin and writing it all in Notepad? :)

** EDIT ** What's the value of $count in the last if construct? Is it counting the messages properly?
 

Admin

You there; behave!
Staff member
Wookie said:
Put it down, come back to it in an hour and the error will might just jump out at you :)
A classic approach, and it worked! Turns out I was calling completely the wrong variable in the initial condition check, so it wasn't evaluating it correctly. I've fixed it and it all seems to work now :D

Wookie said:
What development environment are you using? Does it allow for nice debuggery things like variable watching, breakpoints, etc etc...
I recently upgrade from Notepad to PSPad. I used to use UltraEdit, but for some reason the installer hangs on my new PC build.
 

Admin

You there; behave!
Staff member
I've also changed the Send PM box so that the "Save message" box at the bottom defaults to unticked. This means it will not save a copy of the message in your Sent items unless you explicitly tell it to, which should free up a bit of space for you. :)


Edit: Also, I've changed it so that when you click the Delete multiple messages link at the bottom left of your Messages screen, it automatically ticks all the messages in view. So now you just have to untick the ones you want to keep, and hit the Delete button to bin the rest. :P
 

Augustus Gloop

Well-Known Forumite
Any idea what this means?

Bad HTTP_REFERER. You were referred to this page from an unauthorized source. If the problem persists please make sure that 'Base URL' is correctly set in Admin/Options and that you are visiting the forum by navigating to that URL. More information regarding the referrer check can be found in the PunBB documentation.

Keeps popping up everytime I try and delete something from my inbox. Ta in advance.
 

Admin

You there; behave!
Staff member
Augustus Gloop said:
Any idea what this means?

Bad HTTP_REFERER. You were referred to this page from an unauthorized source. If the problem persists please make sure that 'Base URL' is correctly set in Admin/Options and that you are visiting the forum by navigating to that URL. More information regarding the referrer check can be found in the PunBB documentation.

Keeps popping up everytime I try and delete something from my inbox. Ta in advance.
Do you have Norton Internet Security Suite or similar installed on your machine? If so, completely disable it and try again. Let me know if that works.

Is anyone else experiencing this, or any other problems since my update?
 
Top