PM Sent Notification

Started by live627, February 16, 2010, 11:46:37 AM

Previous topic - Next topic

dougiefresh

Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  This mod installed without issues and without emulation.  Hope this info helps someone!

Biology Forums

I'm looking for a mod like this, but a nice neat notification whenever you make a reply to a topic.

Is it possible? How is it done?

Biology Forums

Quote from: Am' on March 05, 2010, 04:35:11 AM
why not add another notification when create topic or reply to topic ?

Yes, that's what I mean... I've been looking for this for years.

Cal O'Shaw

Um, guys, do you mean get notified when someone replies to a PM?

Because if you mean to be notified when topics are created or people reply to topics, both have been available for years.

Cal

Arantor

I'm guessing they're after something that puts a message at the top of the page after replying to let them know that they've replied... though I would really wonder what the point of that is, especially if 'return to topic after posting' is selected...
Holder of controversial views, all of which my own.


Biology Forums

Quote from: arrowtotheknee on January 14, 2012, 05:29:36 PM
I'm guessing they're after something that puts a message at the top of the page after replying to let them know that they've replied... though I would really wonder what the point of that is, especially if 'return to topic after posting' is selected...

Exactly... However, arrowtotheknee, do not underestimate the mind of a web-designer :) There's always ulterior motives behind certain ideas. How do you know that's the message I'm going to display (i.e. you've just posted a reply) ;)

Any way, if someone has an idea, please let me know.

Arantor

You see, though, part of my job (and believe me, it IS my day job) as a programmer is to anticipate what you're going to do in terms of implementation. Instead of acting all smug about how wonderful your idea is, why not share with the class?

I have all sorts of ideas, but they all depend on what you actually intend to do as to how practical any of them are.
Holder of controversial views, all of which my own.


Biology Forums

Quote from: arrowtotheknee on January 15, 2012, 08:19:50 AM
You see, though, part of my job (and believe me, it IS my day job) as a programmer is to anticipate what you're going to do in terms of implementation. Instead of acting all smug about how wonderful your idea is, why not share with the class?

I have all sorts of ideas, but they all depend on what you actually intend to do as to how practical any of them are.

Considering how I have the SMFShop mod installed, after each post, it's nice to let the poster know that they actually earned X amount of points, like: Congratulations, you've earned 5 points, you now have X credit total. Of course, in my website, you earn more points in different boards, so say you post in board 1, you'll get the message: Congratulations, you've earned 5 points; in board 2, you'll get the message: Congratulations, you've earned 20 points. If you start a topic, it'll say: Unfortunately, posting a new thread decreases your credit count, you've lost 2 points.

Something like that, but to actually fulfil this idea without knowing how to show a message after each post is impossible. I'm using 1.x by the way.

Arantor

See, I didn't know you had SMF Shop installed, nor indeed any of the rest of it (which is why it's always good to have context for doing things, the first two methods I had in mind won't work in this case).

Are they all the rules for posting? Or are there others as well?

(You probably should put this into a new topic since it's going to be completely unrelated to anything about this modification.)
Holder of controversial views, all of which my own.


Biology Forums

Quote from: arrowtotheknee on January 15, 2012, 01:49:47 PM
See, I didn't know you had SMF Shop installed, nor indeed any of the rest of it (which is why it's always good to have context for doing things, the first two methods I had in mind won't work in this case).

Are they all the rules for posting? Or are there others as well?

(You probably should put this into a new topic since it's going to be completely unrelated to anything about this modification.)

None whatsoever, however, each member starts with 45 credits. It's typically -5 points per thread started (forum-wide); if you have 0 credits (as a result of starting too many threads), posting new threads is locked (I coded it this way). Therefore, in order to gain more points, you can only post in pre-existing threads to earn more points.

The reason why is started my post here is because I thought the mod author would be best at adjusting this code to fit my purpose.

Arantor

If it's *typically* that, when it is NOT that? I need to know all the types of rules that are applicable to actually make this work.

And actually, no, the code is completely different between the two, about the only thing that will be in common is the two lines of markup at the top around the text you want to display.
Holder of controversial views, all of which my own.


Biology Forums

Quote from: arrowtotheknee on January 15, 2012, 02:23:24 PM
If it's *typically* that, when it is NOT that? I need to know all the types of rules that are applicable to actually make this work.

And actually, no, the code is completely different between the two, about the only thing that will be in common is the two lines of markup at the top around the text you want to display.

Hey again, well that's dependent on what I've put in the board configuration, because there is an option is SMFShop where you can place another value, other than the default (which I made as -5), when a new topic is made - this of course is stored in the database. If we can somehow call exactly what number we inputted in the board configuration, it would be much easier.

But in the mean time, I believe board 17 only takes away -1 per thread started, and board 3 allots +15 for every thread started.

Arantor

Ugh, I don't have the time to sit and wade through SMF Shop's code to figure that out, sorry. Were it simpler and the list of rules not dependent on SMF Shop, I'd sit and write it but I have too many bad memories of working with that.
Holder of controversial views, all of which my own.


Biology Forums

Quote from: arrowtotheknee on January 16, 2012, 02:33:23 AM
Ugh, I don't have the time to sit and wade through SMF Shop's code to figure that out, sorry. Were it simpler and the list of rules not dependent on SMF Shop, I'd sit and write it but I have too many bad memories of working with that.

I'm with you all the way on that, however, could you still guide my on how I can add a message after each reply or after each new thread made? :-[

Biology Forums

Want to report a bug:

If another member has blocked you from their mailing list, it will still state, "Your message has been sent to" even though your email didn't go through because you've been blocked.

Any fix for this?

live627

Thank you for the report, it was, indeed, a bug that wasn't reported before that I know of.

I reworked it (rewrote, yes) and now that bug should be gone. Also, it uses SMF's language file instead of its own..

Biology Forums

Thank you!

Could you tell me what the changes were? Like, what code actually changed?

live627


Biology Forums

Quote from: live627 on July 15, 2012, 02:05:59 AM
Everything.

I replaced what I had before in the post.php and added the new code. No problem. No error.

Then I added the sub-post.php coding, and the PM screen doesn't come up, nasty white page, coding error.

This part specifically: sprintf(isset($txt['pm_successfully_sent']) ? $txt['pm_successfully_sent'] : '', $row['realName']

I don't think it was packaged properly  :(

live627

Yep, I fouled that :( Will repackage tomorrow/

That line should be

$log['sent'][] = sprintf('<a href="'. $scripturl. '?action=profile;u=%1$d" style="color:%3$s">%2$s</a>', $row['ID_MEMBER'], $row['realName'], $row['onlineColor']);

Advertisement: