What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » Sug: Reputation Notification

Pages: (4): « First « 1 2 [ 3 ] 4 » Last »
Sug: Reputation Notification
Author: Message:
ipab
Veteran Member
*****

Avatar
Design Evolved

Posts: 1017
Reputation: 32
34 / Male / Flag
Joined: May 2004
RE: Sug: Reputation Notification
quote:
Originally posted by Regexp
Just compare today with the lastest reputation given. You can add a cookie, but you can also let it be daily

elaborate please

edit: btw its still querying the database isnt it :p

This post was edited on 07-22-2005 at 12:16 AM by ipab.
56656E692C 20566964692C 2056696369
07-22-2005 12:16 AM
Profile E-Mail PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Sug: Reputation Notification
quote:
Originally posted by ipab
quote:
Originally posted by Regexp
Just compare today with the lastest reputation given. You can add a cookie, but you can also let it be daily

elaborate please

edit: btw its still querying the database isnt it :p
Of course, one query. :P

I'm not good at explaining, so I'll do some kind of pseudo-code.

code:
query "select * from mybb_reps where id={$id}"
while(array = mysql_fetch_assoc(query)) {
today_begin = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
today_end = today_begin + 86400;
if(array['lastrep'] >= today_begin && array['lastrep'] <= today_end) {
todayreps_total++;
todayreps_points += array['reppoint'];
}
}
# etc.
# echo


Please note: this code is probably bogus (aside from being pseudo and making up table stuff). I'm actually sculpting (:tongue: I'll take pictures later) and didn't have time to think about the timestamp comparison, so it might be wrong.

WDZ probably knows how to do it in a simple way. :bow:

This post was edited on 07-22-2005 at 12:34 AM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

07-22-2005 12:27 AM
Profile PM Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: Sug: Reputation Notification
quote:
Originally posted by traxor
You have received a +2 reputation
You have received a +1 reputation
You have received a -1 reputation
You have received a -2 reputation
cant we only give a +1 rep and a -1 rep and not a +2 and a -2 ? or am I mistaken?
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
07-22-2005 12:50 AM
Profile PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Sug: Reputation Notification
quote:
Originally posted by lou_habs
quote:
Originally posted by traxor
You have received a +2 reputation
You have received a +1 reputation
You have received a -1 reputation
You have received a -2 reputation
cant we only give a +1 rep and a -1 rep and not a +2 and a -2 ? or am I mistaken?
Admins, mods, and elite members can give +2 and -2.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

07-22-2005 12:52 AM
Profile PM Find Quote Report
ipab
Veteran Member
*****

Avatar
Design Evolved

Posts: 1017
Reputation: 32
34 / Male / Flag
Joined: May 2004
RE: Sug: Reputation Notification
o, i get what you mean. Simple enough, u have me moderately convinced. tbh i doubt WDZ is going to do it though. (he has a rep to keep up u kno :P)
56656E692C 20566964692C 2056696369
07-22-2005 12:59 AM
Profile E-Mail PM Web Find Quote Report
Hank
Banned


Posts: 3129
Reputation: 5
– / – / Flag
Joined: Nov 2003
Status: Away
RE: Sug: Reputation Notification
how many people actually care bout whether they get a Rep or not ?
07-22-2005 01:06 AM
Profile PM Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Sug: Reputation Notification
quote:
Originally posted by ipab
o, i get what you mean. Simple enough, u have me moderately convinced. tbh i doubt WDZ is going to do it though. (he has a rep to keep up u kno :P)
:rofl: Indeed.

I'm not a die-hard fan of reps. But I liked coding the idea. :tongue:

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

07-22-2005 01:06 AM
Profile PM Find Quote Report
surfichris
Former Admin
*****

Avatar

Posts: 2365
Reputation: 81
Joined: Mar 2002
RE: Sug: Reputation Notification
quote:
Originally posted by Regexp
I thought we were being hosted by C2Media and didn't have server problems anymore...
The servers are hosted by EV1Servers. They are provided by C2Media. Big difference.
quote:
Originally posted by Regexp
query "select * from mybb_reps where id={$id}"
while(array = mysql_fetch_assoc(query)) {
today_begin = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
today_end = today_begin + 86400;
if(array['lastrep'] >= today_begin && array['lastrep'] <= today_end) {
todayreps_total++;
todayreps_points += array['reppoint'];
}
}
# etc.
# echo
Go through every single reputation for the user? :-/

This would probably work
code:
    $query = $db->query("SELECT COUNT(r.rid) AS rep_total, SUM(IF(r.dateline>'$mybbuser[lastvisit]',reputation,'0')) AS reps_new FROM reputations r WHERE r.uid='$mybb[uid]' GROUP BY r.uid");
$rep = $db->fetch_array($query);


That would show since last visit too..

However I agree with Wj.

Why do you people make such a big deal out of the reputation system? Furthermore, what's with the useless suggestions here recently? :-/
07-22-2005 06:00 AM
Profile PM Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
38 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Sug: Reputation Notification
quote:
Originally posted by Chris Boulton
quote:
Originally posted by Regexp
I thought we were being hosted by C2Media and didn't have server problems anymore...
The servers are hosted by EV1Servers. They are provided by C2Media. Big difference.
quote:
Originally posted by Regexp
query "select * from mybb_reps where id={$id}"
while(array = mysql_fetch_assoc(query)) {
today_begin = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
today_end = today_begin + 86400;
if(array['lastrep'] >= today_begin && array['lastrep'] <= today_end) {
todayreps_total++;
todayreps_points += array['reppoint'];
}
}
# etc.
# echo
Go through every single reputation for the user? :-/

This would probably work
code:
    $query = $db->query("SELECT COUNT(r.rid) AS rep_total, SUM(IF(r.dateline>'$mybbuser[lastvisit]',reputation,'0')) AS reps_new FROM reputations r WHERE r.uid='$mybb[uid]' GROUP BY r.uid");
$rep = $db->fetch_array($query);


That would show since last visit too..

However I agree with Wj.

Why do you people make such a big deal out of the reputation system? Furthermore, what's with the useless suggestions here recently? :-/
Oh, I see! :o Looks interesting. I don't know so much SQL. :tongue: I'll write that down and study. It might save me some trouble.

Meh, I liked the coding challenge. That's the only reason I kept posting. I couldn't care less about the reps. 8-)

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

07-22-2005 06:06 AM
Profile PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: Sug: Reputation Notification
they said no.

why do you still keep talking :rolleyes:
07-22-2005 06:09 AM
Profile PM Web Find Quote Report
Pages: (4): « First « 1 2 [ 3 ] 4 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On