We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Blog Comment Notification
Topic Started: Jan 10 2017, 11:19 PM (677 Views)
DaPizzaMan
Member Avatar
#TeamSupport

Code Name: Blog Comment Notification

What the code does: When a member comments on another member's blog post, the member gets a notification via PM that the member did so.

How to use the code: Just install it as instructed.

How to install the code: Add the below code to Admin CP -> Board Template -> Above the Copyright.

Extra notes: This code was inspired by one of TheEnigma's cons of ZB. Now the code exists, so remove it from your list of cons. :P
Code:
 
<script type="text/javascript">
if (location.href.indexOf(main_url + 'blog/entry/') !== -1 && $.zb.logged_in) {
$(function() {
$.ajax({
url: 'http://b3.ifrm.com/30296/128/0/p3001702/BlogCommentNotif.js',
dataType: 'script',
cache: true
});
});
}
</script>
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Morgan created a code for this a long time ago: http://support.zathyus.com/topic/5079863/1/
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Cory
Jan 11 2017, 03:20 PM
Morgan created a code for this a long time ago: http://support.zathyus.com/topic/5079863/1/
Thanks for pointing that out to me. I still prefer my version since it saves ad credits when using AJAX, but I appreciate that you showed me this. Hopefully the blog will continue to see some nice third-party modifications that enhance it.

Edit: Also, Morgan's code relies on a click event. Some users may tab over to the submit button and submit that way (not a click event). My code should cover any form (no pun intended :P ) of form submission.
Edited by DaPizzaMan, Jan 11 2017, 07:08 PM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I figured your code has some pros to it, seeing as Morgan's code is 5+ years old.

If you'd like, you can actually feel free to trash that topic since your code is more updated, one of the codes is doable with a URL profile field, and the other code is pretty basic.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply