Staredit Network

Staredit Network -> Website Feedback, Bugs & Discussion -> -1 Messages
Report, edit, etc...Posted by Puni(F) on 2005-04-26 at 17:15:17
After getting a e-mail that has been Replyed to, Forwarded, Then replyed to, I think it gives you -1 messages...

(RE:FWD:RE:Subject)

user posted image
Report, edit, etc...Posted by chuiu on 2005-04-26 at 17:18:55
Who cares?

http://www.staredit.net/index.php?showtopic=12654
Report, edit, etc...Posted by KaboomHahahein on 2005-04-26 at 17:23:40
All our invision problems will be gone! uberwoot.gif
Report, edit, etc...Posted by LegacyWeapon on 2005-04-26 at 17:31:49
QUOTE
Messenger sync here. I don't know if/where I will implement this.
This will fix it tongue.gif
Report, edit, etc...Posted by RexyRex on 2005-04-26 at 18:11:08
It doesn't do it by just forwarding it.
It seems like it randomly unsync's PM's.
I've had this problem before, do what LW said. happy.gif
Report, edit, etc...Posted by IsolatedPurity on 2005-04-26 at 22:17:15
QUOTE(KaboomHahahein @ Apr 26 2005, 04:23 PM)
All our invision problems will be gone! uberwoot.gif
[right][snapback]195875[/snapback][/right]


It just might not.
My method of doing it is a bit more complex than invisions... and getting unsync'ed would cause major problems for an individual. The problem is probably running a partial script or something, although I'm not exactly sure.
I'm taking steps to avoid getting unsync'ed without making the user's message counts completely dynamic (dynamic = major sql rapeage).
Report, edit, etc...Posted by RexyRex on 2005-04-26 at 23:47:57
I don't understand why MySQL can't just count how many PM's you have and echo the result back.
Then again, I don't know how you're making the messenger system. wink.gif
Report, edit, etc...Posted by IsolatedPurity on 2005-04-27 at 08:29:37
Oh it can... but the objective isn't to rape the server with sql statements (like I just said). I would have to use one for pms and one for notices if I just scripted it to count the rows from the tables. Right now we are running 4 global sql statements, it might get upped to 5 depending on how I rearrange something... It's pretty good as is.

Besides, arrays are sexy. You can do fun things with them.
Report, edit, etc...Posted by RexyRex on 2005-04-27 at 09:54:03
I just got another idea that most likley you already thought of.
mysql_num_rows?

ADDITION:
Ack, wait... no.
*RexyRex bashes head against wall.
Ignore that.
Report, edit, etc...Posted by IsolatedPurity on 2005-04-27 at 12:38:47
Still missing the point...
The members table needs to be called no matter what. So if you have a system that just keeps a column inside that table updated for new messages, you save a global query (or two, because of notices now). From the surface, invision's message system works like this:
1 column in members table for new pm's. 1 column in member's table for message total. 1 column in member_extended or something for folder and some type of folder count or whatever, delimited by special characters and explode()'d upon being called in this mess of code. It's really messy, things are everywhere. My system isn't totally defined yet, but right now I have a column for new pm's simply because of the complexity of the 2nd column that stores folder counts, folder names, and real names, as well as new notices and their types, new pm's in a serialized array. Upon signing on or refreshing the page, the serialized array is unserialized and that's where the fun begins. It's kind of a table inside a table, but you only access it using php.
Folder names need to be stated somewhere in some table anyways, it might as well as keep folder counts and such anyways.

So basically... use a query only when action is being taken instead of using 2+ queries on every page refresh. Using sql num rows would be pointless because there's different types of notices and I want to display it as such, instead, there would have to be a select statement with code to cycle through each row to build counts. Not only that, but there is no real way to tell what notices are new that way unless I make up some read/unread column for notices... yet, the whole point of notices was a quick clean message system where you don't have to necessarily manage it at all.
Bans and all their types will probably work the same way: instead of querying one or more tables to see if a user is banned, it'll be an array like:
if ($vars->member['bans']['forums'][$this_forum_id])
$display->critical("nope nope nope!");

I dunno why I'm explaining it ;/. Check out serialize() on php.net.

PS rexy, I got some more music for you to listen to happy.gif.
Report, edit, etc...Posted by SI on 2005-04-27 at 16:06:54
QUOTE(RexyRex @ Apr 27 2005, 08:54 AM)
I just got another idea that most likley you already thought of.
mysql_num_rows?

ADDITION:
Ack, wait... no.
*RexyRex bashes head against wall.
Ignore that.
[right][snapback]196336[/snapback][/right]

SELECT COUNT is 10000 times faster than mysql_num_rows since num rows has to store all results and transmit them and then let them be counted.
Report, edit, etc...Posted by IsolatedPurity on 2005-04-27 at 17:06:07
Ooo didn't know that, but I usually use select count.
However, what if you were going to select the data ANYWAYS inside fetch(), wouldn't num_rows be faster than adding a count() column? Logically, it seems so.
Report, edit, etc...Posted by RexyRex on 2005-04-27 at 18:12:03
Well it's only looking for one part of the table, so 'logically' it would be faster since it's not counting up the whole table to give you you're result.
Lol, if I knew how to count query time I'd do a test for you.
Bleh.

ADDITION:
Thanks for telling me all that stuffz. smile.gif
Next Page (1)