Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on October 18, 2009, 04:40:06 PM

Title: ENotify
Post by: SMFHacks.com Team on October 18, 2009, 04:40:06 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2198)

ENotify is an ajax driven notifications mod which allows you to view incoming pms or new replies without refreshing your page in a leet way. It kind of looks like facebook notifications and uses JGrowl for the user interface.

It has 5 settings that can be customized through the admin panel. It's compatible with both SMF 2.0.x (aka curve release) and SMF 1.1.x

Enjoy and post any bugs you encounter

Title: Re: ENotify
Post by: Yağız... on October 18, 2009, 04:43:29 PM
Wow ^^ Nice one Eren :)
Title: Re: ENotify
Post by: forsakenlad on October 18, 2009, 04:59:52 PM
Hehe thanks, I had seen people requesting something like this for a while now :)
Title: Re: ENotify
Post by: Neol on October 18, 2009, 07:46:22 PM
Can you make a version for SMF 1.1?
Title: Re: ENotify
Post by: JohnKaL- on October 18, 2009, 08:17:02 PM
looks great but it works with versions 1.1.x ?
Title: Re: ENotify
Post by: Nibogo on October 18, 2009, 11:45:48 PM
Nice!

Really original, useful and pretty mod

/*This mod reminds me the Ubuntu Notification System*/
Title: Re: ENotify
Post by: Qayyom Ashraf on October 19, 2009, 12:36:13 AM
I think really nice one, but not for me?

mean: I am using 1.1.10, have you any future plan for SMF 1.1.10 Version?

If possible please do it!
Title: Re: ENotify
Post by: shadow82x on October 19, 2009, 12:40:51 AM
Awesome mod. :D
Title: Re: ENotify
Post by: JBlaze on October 19, 2009, 12:44:37 AM
Very nice! :D
Title: Re: ENotify
Post by: Özgür on October 19, 2009, 04:06:44 AM
Very nice mod Eren! Congrats!
Title: Re: ENotify
Post by: forsakenlad on October 19, 2009, 04:56:42 AM
Thanks for the good comments everybody :) Unfortunately I'm not planning to port it back to 1.1, anyway the mod will probably function with the 2.0 Final without any modifications, it already is compatible with SMF 2 RC2 (Curve Theme).
Title: Re: ENotify
Post by: forsakenlad on October 19, 2009, 09:34:18 AM
Mod has been updated, a bug has been corrected that caused the mod not to function on some systems. Credit goes to hhy89 (http://www.simplemachines.org/community/index.php?action=profile;u=160298)
Title: Re: ENotify
Post by: drhamza on October 19, 2009, 11:23:53 AM
does this mod work on other themes... i'm using the ds-natural theme (Dziner studio) and i'm getting nothing till now :(
by the way, very awesome mod man, thumbs up
Title: Re: ENotify
Post by: Yahmez on October 19, 2009, 07:28:30 PM
This installed fine for me, but I cannot see it working. Someone PM'ed me and posted a new reply to a post... but nothing shows up. Any Ideas?
SMF 2.0 RC1.2
Title: Re: ENotify
Post by: angelgb81 on October 20, 2009, 02:31:02 AM
Me too. Same SMF version.
Title: Re: ENotify
Post by: forsakenlad on October 20, 2009, 04:08:16 AM
Can you send me a link please?
Title: Re: ENotify
Post by: Afro on October 20, 2009, 07:02:25 AM
mod of the month nomination
Title: Re: ENotify
Post by: Yahmez on October 20, 2009, 07:03:07 AM
Can you send me a link please?
PM'd you
Title: Re: ENotify
Post by: Afro on October 20, 2009, 07:13:45 AM
seems not to be showing on my forum as well, i will wait and see the solutions
Title: Re: ENotify
Post by: angelgb81 on October 20, 2009, 01:20:02 PM
Can you send me a link please?

Send
Title: Re: ENotify
Post by: forsakenlad on October 20, 2009, 01:56:01 PM
A new version has been uploaded with the bug fixes that affected several SMF configurations. The problem is hopefully fixed for those who were experiencing mod to not function atll all (those who have sent me a pm).

It's also recommended that you remove the contents of the cache folder in your smf root directory after upgrading the mod (its recommended that you uninstall the earlier version before installing the new one).
Title: Re: ENotify
Post by: shumilica on October 20, 2009, 08:00:56 PM
I wanted something that replaces the pop-up java message window that tells me i have a pm, so I only checked the pm notification and the time to stay to 1 hour, but if the user goes to another page than the one he been notified the notification disappears. I know it is not a bug, but this is how I would imagine it working for me. Do you think you can add an option to do this?
Thanks!
Title: Re: ENotify
Post by: Yahmez on October 20, 2009, 09:23:03 PM
A new version has been uploaded with the bug fixes that affected several SMF configurations. The problem is hopefully fixed for those who were experiencing mod to not function atll all (those who have sent me a pm).

Thanks forsakenlad! It works like a charm now.  :)
Title: Re: ENotify
Post by: drhamza on October 20, 2009, 11:29:03 PM
it works!!! :D
thanks a lot man, you're a genius
i'm having this little problem with arabic names, they're appearing as "???????"
can you help me please?
Title: Re: ENotify
Post by: Sudhakar Arjunan on October 21, 2009, 03:39:48 AM
Excellent mod. Good Start up.
Title: Re: ENotify
Post by: forsakenlad on October 21, 2009, 04:29:02 AM
it works!!! :D
thanks a lot man, you're a genius
i'm having this little problem with arabic names, they're appearing as "???????"
can you help me please?

I believe you aren't using UTF8 charset? What is the default charset for Arabic?
Title: Re: ENotify
Post by: drhamza on October 21, 2009, 09:33:28 AM
yup, i guess so
by the way, the whole forum is in english, but the members have their names in arabic
Title: Re: ENotify
Post by: drhamza on October 21, 2009, 03:04:16 PM
i guess this mod is slowing the forum :(
Title: Re: ENotify
Post by: Yahmez on October 21, 2009, 06:13:47 PM
One more question for you forsakenlad, I can see the Enotify fine as admin. But in the test account it doesn't show up. Is there a permission somewhere for it that I am missing?
Oops.... I forgot to clear my cache per install directions.... my bad.
Title: Re: ENotify
Post by: saosangmo on October 21, 2009, 11:16:41 PM
hi, I'm using the SMF 2.0 RC1.2, the log errors system report the thousands of line:

Code: [Select]
http://www.mydomain.net/index.php?action=enotify
2: Invalid argument supplied for foreach()
File: /home/xxx/yyy/Themes/default/ENotify.template.php (eval?)
Line: 16

and

Code: [Select]
http://www.mydomain.net/index.php?action=enotify
2: end() [<a href='function.end'>function.end</a>]: Passed variable is not an array or object
File: /home/xxx/yyy/Themes/default/ENotify.template.php (eval?)
Line: 14


please help me fix them.
thanks
Title: Re: ENotify
Post by: forsakenlad on October 22, 2009, 12:05:58 PM
Which version of the mod are you using?
Title: Re: ENotify
Post by: saosangmo on October 22, 2009, 02:10:30 PM
hi forsakenlad,
I'm using ENotify 1.05.
I work around to solve this: every hour, go to admin panel to clear logs, hope you help me soon!

thanks,
-saosangmo
Title: Re: ENotify
Post by: Dzonny on October 23, 2009, 05:45:08 PM
Great mod, i'm sorry couse you are not planning to make it for 1.1.10 version...
Title: Re: ENotify
Post by: wilsy on October 24, 2009, 04:21:45 AM
Great mod, i'm sorry couse you are not planning to make it for 1.1.10 version...

Me too - this is the best mod ever!
Title: Re: ENotify
Post by: onepiece on October 24, 2009, 12:40:53 PM
Looks like a good idea. A few issues going over the code though:

Looking forward to see more customizations from you. ;)
Title: Re: ENotify
Post by: JohnKaL- on October 28, 2009, 10:47:42 PM
Great mod, i'm sorry couse you are not planning to make it for 1.1.10 version...

Me too - this is the best mod ever!

+100000
Title: Re: ENotify
Post by: bulldogg on October 29, 2009, 07:49:23 PM
anyway to make this work on a user specific basis? as in a enable or disable checkbox in a users profile?
Title: Re: ENotify
Post by: shadow82x on November 08, 2009, 02:35:36 AM
Another suggestion: Limit the amount of notification displayed at once
Title: Re: ENotify
Post by: BOS4O on November 08, 2009, 03:05:15 AM
Great mod, i'm sorry couse you are not planning to make it for 1.1.10 version...

+10000000000000
Me too - this is the best mod ever!



+100000
Title: Re: ENotify
Post by: Ryan on November 13, 2009, 10:46:57 PM
Great mod a i must say.. Seems to working fine majority of the time, but sometimes it spazes out and starts flooding me with tons of older notifications.. Anyone else had this?
 
Im using it on a fresh source smf 2.0 rc2, but mydb structre could possibly somthin todo with it as its fairly large forum, and its been through alota upgrades over the yr, it culd be slightly different to a standard fresh database.
Title: Re: ENotify
Post by: smldmr on November 15, 2009, 10:03:09 AM
The mod is funktioning but since i installed it, my unreaded PMs counter tell me that there are some unreaded messages. If iy recount all statistics etc. then is the counter again on 0 but after a short time is ther the ghost PMs again :)
Title: Re: ENotify
Post by: anto74 on November 18, 2009, 06:43:44 AM
Hi,
thanks for this Mod, perfect for my forum!
One question ( sorry for my english):
how can i put the notify at the center of the page ?
How i must change this values?


/** Normal Style Positions **/

body > div.jGrowl {   position:         fixed;}
body > div.jGrowl.top-left {   left:             0px;   top:             0px;}
body > div.jGrowl.top-right {   right:             0px;   top:             0px;}
body > div.jGrowl.bottom-left {   left:             0px;   bottom:            0px;}
body > div.jGrowl.bottom-right {   right:             0px;   bottom:          0px;}
body > div.jGrowl.center {   top:             0px;   width:             50%;   left:             25%;}


Thanks!
Antonio
Title: Re: ENotify
Post by: Arantor on November 18, 2009, 06:47:35 AM
Putting it in the centre of the screen very likely would irritate users rather than help them; imagine you'll be reading a topic or posting one, then in the middle of you typing/reading, up pops the box.
Title: Re: ENotify
Post by: anto74 on November 18, 2009, 07:10:07 AM
Putting it in the centre of the screen very likely would irritate users rather than help them; imagine you'll be reading a topic or posting one, then in the middle of you typing/reading, up pops the box.
Ah....ok!  :D
EDIT: But how i can modify the values?  :)
Title: Re: ENotify
Post by: forsakenlad on November 18, 2009, 07:18:01 AM
The mod is funktioning but since i installed it, my unreaded PMs counter tell me that there are some unreaded messages. If iy recount all statistics etc. then is the counter again on 0 but after a short time is ther the ghost PMs again :)

Can you elaborate it please I didn't understand what exactly is happening :)
Title: Re: ENotify
Post by: timned88 on November 18, 2009, 08:29:51 PM
very nicely done.  fun mod!
Title: Re: ENotify
Post by: cisops on November 21, 2009, 08:07:06 PM
Foresakenlad et al, I am new to SMF and recently took over an existing forum.  Shortly after doing so, I had looked at the mods available for something like eNotify and found nothing, that would have been around August of this year.  Not having checked back since, I assumed nothing like this existed and went out to learn enough about PHP and SMF to write something.  I have done development in ASP.net and other programming languages but never PHP.

Anyway, in a couple of hours, I wrote some javascript and PHP that does much the same thing as eNotify but was for my v.1.1.9 install, not SMF2.  It's not completely integrated with SMF from a mod perspective.  All of the code it written and works but I don't know enough about SMF yet to make it a true mod package.  I posted it on the custom coding board recently (http://www.simplemachines.org/community/index.php?topic=349303.0) to ask for some help or feedback on getting the code better integrated with SMF.  Aranator recommended that I contact you to see if you would be interested in porting your code to v.1.1.x.

I welcome you or other members to take what I have written (source has been provided) and use it.  Likewise, if you choose to port to v.1.1.x, please let me know.

Thanks!
Title: Re: ENotify
Post by: Ryan on November 24, 2009, 09:13:56 PM
I like this mod, but it still randomly spazes out, and notifies users of old topics that havent been posted to in 8 months, it also gets stuck in loop an decided to notify you of every reply ever made, making over 300 notifys.
 
Somthings not right with it.
After awhile it will stop and run ok, and will actualy notify you of new ones, but then it will spaz out again... ajax mods are mysql intensive enough without this issue lol... Imagine 300 users all getting entire forums content notified to them.
 
I guess this hasnt been testing on enough bigger forums yet. i have 90,000 members.
Title: Re: ENotify
Post by: MATTEK on November 24, 2009, 09:16:48 PM
Interesting mod. Would this replaxce the PM pop up? Or would I my members get a pop up and then the ENotify window?
Title: Re: ENotify
Post by: Ryan on November 24, 2009, 09:19:03 PM
You would want to turn pop up off. this mod allows you to recieve reply notifications ad pm notifications...  You could watch your site all day without a click or refresh and each notify will appear. Like facebook
Title: Re: ENotify
Post by: drhamza on November 25, 2009, 10:21:46 AM
i was wondering if it can be applied to new topics as well (unread topics)
and how about making it more facebook-like, i mean having two icons, one for the pm.s the other for the replies, beside each of which is the number of pms or replies, respectively.. pressing on it shows a menu (list) of the new messages....
Title: Re: ENotify
Post by: AJ32 on December 11, 2009, 06:48:28 PM
Hey, great mod - Thanks!

Is it possible to include a way, in the next release, for users to toggle this feature on or off via their "look & layout" or "notifications" pages?

Thanks!
Title: Re: ENotify
Post by: lexa90 on December 28, 2009, 01:52:35 PM
This mode if AWESOME!
Just i'm getting some erros in log, hope you will fix them in next update :)
Cheers!
Title: Re: ENotify
Post by: Arantor on December 28, 2009, 01:54:40 PM
This mode if AWESOME!
Just i'm getting some erros in log, hope you will fix them in next update :)
Cheers!

Might be useful to say *what* the errors are?
Title: Re: ENotify
Post by: lexa90 on December 28, 2009, 02:21:31 PM
The errors are made by my. I just reinstalled it, and found out that i messed up some code.
Now it works like a charm.
Sorry, my mistake!
:)

Cheers
Title: Re: ENotify
Post by: Alpay on December 28, 2009, 03:08:59 PM
Forsakenlad  ,

LogInOut.php Error :

http://wwwxxxxforum/index.php?action=login2;sa=check;member=38640

8: Undefined index: login_url

File : /home/xxxx/public_html/forum/Sources/LogInOut.php
Line : 136

==>136:
if (strpos($_SESSION['login_url'], 'enotify') || empty($_SESSION['login_url']))
Title: Re: ENotify
Post by: forsakenlad on December 28, 2009, 03:47:36 PM
Thanks for the report will look into it.
Title: Re: ENotify
Post by: ~DS~ on December 30, 2009, 11:02:45 PM
Feature request: get notifications of new topic created, like this:

Code: [Select]
"New Topic created by Dismal Shadow,
Happy new years guys"
Title: Re: ENotify
Post by: ~DS~ on January 11, 2010, 04:38:53 AM
Bump  ;D
Title: Re: ENotify
Post by: TravisM661 on January 23, 2010, 11:02:02 PM
Any chance of an RC2 Version?
Title: Re: ENotify
Post by: drhamza on January 24, 2010, 03:03:35 PM
i'm a bit buzy now, but if you checked the previous posts i guess there is an RC2 version... please don't hate me if you don't find it, but i recall that i've installed it on my rc2
Title: Re: ENotify
Post by: akbora on January 26, 2010, 03:27:39 PM
Have you got one this mod? There isn't it mods page.
Title: Re: ENotify
Post by: exteeyou on January 30, 2010, 04:15:36 PM
I love how this mod is listed as the "featured mod" on SMF yet they seem to have removed the actual mod and download.


Fail.
Title: Re: ENotify
Post by: ~DS~ on January 30, 2010, 04:31:09 PM
O_O what the ...?
Title: Re: ENotify
Post by: KensonPlays on January 30, 2010, 05:35:39 PM
Nice!

Really original, useful and pretty mod

/*This mod reminds me the Ubuntu Notification System*/
Or Fedora, like at my gpas house.

/me loves this mod!
Title: Re: ENotify
Post by: forsakenlad on January 30, 2010, 05:36:22 PM
Lol thanks, guys it has been put back up, sorry :)
Title: Re: ENotify
Post by: akbora on January 30, 2010, 05:41:53 PM
Thanks Eren, please update RC2,

Tr: RC2 de çalışır mı?
Title: Re: ENotify
Post by: forsakenlad on January 30, 2010, 05:44:25 PM
It works, yes. Çalışıyor evet.
Title: Re: ENotify
Post by: akbora on January 30, 2010, 05:46:53 PM
Very very thanks it is great thing...

''It works'' good voice I hear this night....
Title: Re: ENotify
Post by: KensonPlays on January 30, 2010, 05:47:46 PM
/me is glad it works for you!
Title: Re: ENotify
Post by: akbora on January 30, 2010, 05:50:27 PM
It gives error index.template.php:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F2nlzqlv.png&hash=0fa163056a9db4ee387d05b2718ac9a3)
Title: Re: ENotify
Post by: ~DS~ on January 30, 2010, 05:51:24 PM
I was told to contact the author because this was causing a "unknown action" in the forum.
So does this work on 2.0 RC2? Because it said it's compatible with: 2.0 RC1.2 only.
Title: Re: ENotify
Post by: KensonPlays on January 30, 2010, 05:56:17 PM
@Dismal Shadow, just installed on my forum a few mins ago, 2.0RC2, and it works for me!
Title: Re: ENotify
Post by: forsakenlad on January 30, 2010, 05:57:02 PM
I was able to install it without any problems and as I'm aware a lot of other people as well. Are you trying to install the theme to some other theme akbora? Or have you made direct modifications to the default template?
Title: Re: ENotify
Post by: ~DS~ on January 30, 2010, 05:59:46 PM
Feature request: get notifications of new topic created, like this:

Code: [Select]
"New Topic created by Dismal Shadow,
Happy new years guys"

Any news on this Eren?
Title: Re: ENotify
Post by: forsakenlad on January 30, 2010, 06:04:30 PM
Well actually I'm planning to hand over the development of the mod to someone else. I just don't have the enthusiasm to work on it anymore and I think it can be improved in a lot of ways and made a better mod :)
Title: Re: ENotify
Post by: akbora on January 30, 2010, 06:10:49 PM
Yes I installed it finally...

Eren thanks again, can we change black colour? Where?
Title: Re: ENotify
Post by: forsakenlad on January 30, 2010, 06:14:08 PM
In the stylesheets, jgrowl.css as far as I remember.
Title: Re: ENotify
Post by: akbora on January 30, 2010, 06:19:24 PM
Tr: (I have to ) Uyarı çıkıyor hemen kayboluyor çok az kalıyor süresi artamaz mı?

Black is challenging no problem...
Title: Re: ENotify
Post by: forsakenlad on January 30, 2010, 06:21:41 PM
Admin panelinden değiştirebilirsin kalma süresini. Daha değiştirebileceğin birçok şey daha var panelde.
Title: Re: ENotify
Post by: akbora on January 30, 2010, 06:30:44 PM
Yes I have found it, setting panel. Thanks again and again....
Title: Re: ENotify
Post by: Arantor on January 30, 2010, 07:38:52 PM
/me thinks there needs to be a language string added to Who.{language}.php for $txt['whoall_enotify'].
Title: Re: ENotify
Post by: forsakenlad on January 31, 2010, 09:58:38 AM
/me thinks there needs to be a language string added to Who.{language}.php for $txt['whoall_enotify'].

Well enotify as far as I remember is excluded from registering.
Title: Re: ENotify
Post by: Arantor on January 31, 2010, 11:23:38 AM
Nope, I know at least one user who had a flurry of 'Unknown Action' due to this mod. Anything that triggers from an action= will be flagged in Who's Online, and I know at least one earlier version did that, as thought it was still the case.
Title: Re: ENotify
Post by: forsakenlad on January 31, 2010, 06:16:30 PM
Well I might not have it included it then, I remember doing it for the login url so it doesn't redirect to that page or after logout. I might have to fix it.
Title: Re: ENotify
Post by: Stigmartyr on February 04, 2010, 06:02:47 AM
Now using this on my RC2 forum and it works fine (so far) :)
Title: Re: ENotify
Post by: Stigmartyr on February 04, 2010, 06:13:35 AM
Nope, I know at least one user who had a flurry of 'Unknown Action' due to this mod. Anything that triggers from an action= will be flagged in Who's Online, and I know at least one earlier version did that, as thought it was still the case.

Noticing that more users are showing as doing unknown action as well...
Title: Re: ENotify
Post by: akbora on February 04, 2010, 04:27:09 PM
Eren, is it possible to add recent posts?

TR: Bu özelliğe acaba son atılan herhangi  mesajları da ekleyebilir myiiz. O zaman nefis olur?

Thank you....
Title: Re: ENotify
Post by: Stigmartyr on February 04, 2010, 09:12:22 PM
So what causes this and how do I fix it?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg35.imageshack.us%2Fimg35%2F2752%2Funknowny.jpg&hash=f5ef2d5519838060617a455dd2574ee3)

I love the mod and I'll keep it around until you do, but it does render user actions as 'unknown'
Title: Re: ENotify
Post by: ~DS~ on February 04, 2010, 09:15:39 PM
So what causes this and how do I fix it?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg35.imageshack.us%2Fimg35%2F2752%2Funknowny.jpg&hash=f5ef2d5519838060617a455dd2574ee3)

I love the mod and I'll keep it around until you do, but it does render user actions as 'unknown'
Yeah that's how it all begun with this mod, and you are not the first nor are the last. Everyone is affected whoever uses this mod so even if you uninstall it...it won't go away.  :-\
Title: Re: ENotify
Post by: Stigmartyr on February 04, 2010, 09:37:45 PM
So what causes this and how do I fix it?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg35.imageshack.us%2Fimg35%2F2752%2Funknowny.jpg&hash=f5ef2d5519838060617a455dd2574ee3)

I love the mod and I'll keep it around until you do, but it does render user actions as 'unknown'
Yeah that's how it all begun with this mod, and you are not the first nor are the last.  Everyone is affected whoever uses this mod so even if you uninstall it...it won't go away.  :-\

Holy masturbating mammals, BIn!

I guess it's a good thing I installed Arantor's book of unknown action :P

Title: Re: ENotify
Post by: ~DS~ on February 04, 2010, 09:52:54 PM
I am weather unsure if it broke the string in modifications.english.php or related to the database
BTW...you forget to censor those ip address.  :o
Title: Re: ENotify
Post by: Stigmartyr on February 04, 2010, 10:28:30 PM
OOp, there - I fixt it if you want to update ur post :P  Thx for the heads up.

Title: Re: ENotify
Post by: Arantor on February 05, 2010, 02:09:48 AM
Pssst... add this before the closing ?> in Themes/default/languages/Who.english.php (and Who.english-utf8.php if you have it)

Code: [Select]
$txt['whoall_enotify'] = 'Checking to see if new events have occurred.';
Then clear the file cache from Admin > Maintenance > Routine.
Title: Re: ENotify
Post by: ~DS~ on February 05, 2010, 02:15:21 AM
Pssst... add this before the closing ?> in Themes/default/languages/Who.english.php (and Who.english-utf8.php if you have it)

Code: [Select]
$txt['whoall_enotify'] = 'Checking to see if new events have occurred.';
Then clear the file cache from Admin > Maintenance > Routine.
Is this the fix to remove the unknown action caused by this mod? Or do I need to have this mod installed to use this?
Title: Re: ENotify
Post by: Arantor on February 05, 2010, 02:16:48 AM
This fixes the unknown action issue with this mod.
Title: Re: ENotify
Post by: ~DS~ on February 05, 2010, 02:32:00 AM
This fixes the unknown action issue with this mod.
Jesus Christ...that seem to fix the the whole "unknown action" issue. I have been waiting for this fix for a long time until this moment. Thank you Arantor, god bless. Any particular reason why this happening and the cause of this, not to mention even uninstalling it, it still show "unknown action". It somehow broke the code in Who.english.php. Hope this give the author the fix for the next update.

So, Arantor...it's safe to install again, no?
Title: Re: ENotify
Post by: Arantor on February 05, 2010, 02:54:54 AM
Simple - the mod uses index.php?action=enotify but the mod doesn't specify a language string to display.

If it's messed up the language file that would suggest it wasn't added properly.
Title: Re: ENotify
Post by: forsakenlad on February 05, 2010, 06:02:17 AM
That is not the right way to do it. Since the mod will be pinging that url every few seconds, everyone will appear as viewing notifications in the end. I'll have it so that action isn't logged at all.
Title: Re: ENotify
Post by: Arantor on February 05, 2010, 09:10:00 AM
Quickest route for that is to not use action= anything.
Title: Re: ENotify
Post by: Stigmartyr on February 05, 2010, 05:02:23 PM
Well then, get 'er done!
Title: Re: ENotify
Post by: sattninja on February 07, 2010, 04:32:32 PM
you know what would be totally bad ass is if this could somehow tell you when someone logs into the forum ;D ;D ;D
Title: Re: ENotify
Post by: ~DS~ on February 07, 2010, 04:40:05 PM
you know what would be totally bad ass is if this could somehow tell you when someone logs into the forum ;D ;D ;D
Code: [Select]
"Dismal Shadow had just logged in"
Code: [Select]
"Dismal Shadow had just logged out" :o  ;D

I hope this have a permission which allow user to enable or disable enotify.
Title: Re: ENotify
Post by: franklinrony on February 09, 2010, 11:19:37 PM
thanks for the mod. where change the background color,black, for other? thanks
Title: Re: ENotify
Post by: Stigmartyr on February 10, 2010, 02:48:13 AM
I must say the feedback I've gotten from users about this mod has been overwhelmingly positive.  So I'll let them speak for me ;)

One question I had that I've had a few people ask is how to make the notification persistent.  If they get a list of notifications, and click on, the untouched slides just disappear, infact when the page is refreshed or navigated from the notifications are gone until the next update. 

Is there a way to make the unread notifications more persistent?  I like the default time limit to show them, but within this time frame it would be nice if they could stay up there..

Or... what if....  WHAT IF there was a way to retrieve a list of recent notifications?  Like a button somewhere..  Just like you can do on FB.
Title: Re: ENotify
Post by: derby on February 10, 2010, 01:13:55 PM
PLEASE HOW DO I INSTALL ON SMF 2.0RC2???
Title: Re: ENotify
Post by: Arantor on February 10, 2010, 01:33:33 PM
PLEASE HOW DO I INSTALL ON SMF 2.0RC2???

If/when the author updates it for RC2.
Title: Re: ENotify
Post by: derby on February 10, 2010, 01:38:01 PM
PLEASE HOW DO I INSTALL ON SMF 2.0RC2???

If/when the author updates it for RC2.
i need it on RC2 Oh cos i love this mod
Title: Re: ENotify
Post by: Stigmartyr on February 10, 2010, 03:15:06 PM
I am using it on RC2, and it seems to work fine.
Title: Re: ENotify
Post by: sattninja on February 12, 2010, 04:37:50 PM
ca someone help me here i have uninstalled this mod went through all the parsing and made sure it is gone i still cant see anything in whos online even with adding the line of code given earlier in this thered also i no longer receive emails from my site nor does any other member i used to get emails when i would get a pm but no longer is there something this mod has done to the database or something please help
Title: Re: ENotify
Post by: sattninja on February 12, 2010, 11:17:57 PM
ok i got the email working i apologize it was actually a problem with my hos however i have completely uninstalled this mod even went through the parsing and made sure all files were removed and i still get unknown action in who's online i added that line of code mentioned earlier in this thread but all that does is change unknown action to checking for new events how can i get it back to the way it was before when it showed where people were
Title: Re: ENotify
Post by: sattninja on February 13, 2010, 05:46:30 PM
wow no one i did find this

         else
            $data[$k] = $txt['who_unknown'];
replace with
         else
            $data[$k] = $txt['who_unknown'].
            ($user_info['is_admin'] ? (
               (isset($actions['action']) ? ' <span class="smalltext">('.$txt['who_action'].': '.$actions['action'].
               (isset($actions['sa']) ? ' -> '.$actions['sa'] : '').')</span>' : '')) : '');

that changed it to

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F28lazy0.jpg&hash=26b9a721401809eaf7e2816a464d6bd1)

no one can tell me how to repair the code that was broken when i iinstalled this mod i cant believe that there has got to be a way to repair it i have removed this mod
Title: Re: ENotify
Post by: Arantor on February 13, 2010, 06:05:49 PM
What is "broken", exactly?
Title: Re: ENotify
Post by: sattninja on February 13, 2010, 06:13:12 PM
im sorry i cannot be any clearer since installing enotify my who's online list tells me unknown action for everyone i have tried the edit that was mentioned earlier in this thread and all that did was change unknown action to checking for new events sorry but that is pretty much the same as unknown action it doesn't tell you anything before i installed enotify i could go to who's online and it would tell me exactly where the users were what topics they were viewing etc. so i uninstalled enotify went through the parser and made sure all was deleted however i still only see unknown action so i searched and found that edit in my post above it changed it to unknown action action=enotify as in the picture there is something enotify changed that i cannot find cause it is not listed in the parser i just want my who's online list back to the way it was before installing enotify
Title: Re: ENotify
Post by: Arantor on February 13, 2010, 06:14:06 PM
It won't until people refresh their browsers. Because they still have tabs open calling for refreshes.
Title: Re: ENotify
Post by: sattninja on February 13, 2010, 06:21:46 PM
thanks for the assist but that is incorrect im afraid it doesnt matter it never changes from unknown action doesnt matter it used to say like viewing the portal,sending a message,viewing the forum,viewing topic now it sayd unknown action on all users all the time
Title: Re: ENotify
Post by: Arantor on February 13, 2010, 06:26:49 PM
Yes, because users are still calling for the update to be made.

Some of the code MUST still be present, calling your forum's action=enotify
Title: Re: ENotify
Post by: sattninja on February 13, 2010, 06:32:26 PM
exactly it is like no matter what they are doing it is defaulting to enotify but like i said i looked 3 times through all the modifications enotify made and made sure they were deleted i do not know where this is controlled or in what file i have numerous backups of my forum from before i installed the mod but i dont want to upload a old backup i wiuld like to know what it changed and what is the default sode so i can replace it so it goes back to the way it was before i installed the mod
Title: Re: ENotify
Post by: Arantor on February 13, 2010, 06:33:41 PM
Do a search of your files for action=enotify.

Also, check the mod page itself and use the Parse option to see what code it changes.
Title: Re: ENotify
Post by: sattninja on February 13, 2010, 06:49:02 PM
i think i got it i did find some code in a theme that i wasnt even using and it seems to be working now
Title: Re: ENotify
Post by: franklinrony on February 14, 2010, 04:52:12 PM
sorry,how change the background color?
Title: Re: ENotify
Post by: sattninja on February 14, 2010, 04:58:12 PM
i have since uninstalled it and i dont really remember to be honest but i think it was in the enotify .css file i just changed the code for the color

edit i just looked and it was in the jgrowl.css there are codes for colors like#fff  change that

make a backup of the file first it is in there and there arent too many places in there that have color code it is easy to find
Title: Re: ENotify
Post by: KensonPlays on February 14, 2010, 08:08:24 PM
you know what would be totally bad ass is if this could somehow tell you when someone logs into the forum ;D ;D ;D
Code: [Select]
"Dismal Shadow had just logged in"
Code: [Select]
"Dismal Shadow had just logged out" :o  ;D

I hope this have a permission which allow user to enable or disable enotify.

I know this is off-topic, but...
Dismal Shadow: You used past tense and it should be present tense "has"...
Title: Re: ENotify
Post by: forsakenlad on February 15, 2010, 12:10:32 PM
Guys there are some really cool ideas that can be easily integrated into the mod :) But unfortunately I've decided that I won't be developing this mod anymore :( I will however give all of the rights of the mod to some customizer here so it still exists to serve your needs and is improved.
Title: Re: ENotify
Post by: sattninja on February 15, 2010, 12:15:33 PM
thanks for heads up man  :) :)
Title: Re: ENotify
Post by: ~DS~ on February 15, 2010, 12:25:39 PM
We will be waiting.  :)
Title: Re: ENotify
Post by: derby on February 16, 2010, 01:51:13 PM
I am using it on RC2, and it seems to work fine.
please how did u install it on RC2?
Title: Re: ENotify
Post by: sattninja on February 16, 2010, 02:24:34 PM
Look thru the thread there is a post with a link to the file for rc2
Title: Re: ENotify
Post by: ~DS~ on February 16, 2010, 06:26:31 PM
Interesting, vbgamer45 now own this mod. Thank you for keeping this alive.
Title: Re: ENotify
Post by: forsakenlad on February 17, 2010, 04:31:49 AM
I've transferred all my rights to him for free, he is a great mod author afterall.
Title: Re: ENotify
Post by: KensonPlays on February 17, 2010, 12:01:01 PM
Eren, so is arantor, but he isn't doing it anymore and might leave SMF for good eventually! Hope not! But if he was still active and a team member, he would be a great choice, he has made over 40 mods he told me on a thread...
Title: Re: ENotify
Post by: More-to-life on February 17, 2010, 12:14:59 PM
Just installed on RC2 & works like a dream - Many thanks

Question is there anyway to change the black background?
Title: Re: ENotify
Post by: derby on February 17, 2010, 12:19:00 PM
cant find any link for RC2
Title: Re: ENotify
Post by: KensonPlays on February 17, 2010, 12:20:08 PM
Find the CSS for it! I don't remember the file it is in though...
Title: Re: ENotify
Post by: ~DS~ on February 17, 2010, 12:20:17 PM
Just installed on RC2 & works like a dream - Many thanks

Question is there anyway to change the black background?
Be warned...there will be some errors in the log. The "Who's Online" show up with "Unknown Action"
I would rather wait for a update version.
Title: Re: ENotify
Post by: akbora on February 17, 2010, 02:05:22 PM
This mod is wonderful but blocks working of redirect logon/out mod. For example when a member enters to the site member goes to the forum. Enotify is active a member goes the portal... Thanks
Title: Re: ENotify
Post by: More-to-life on February 17, 2010, 02:59:37 PM
Just installed on RC2 & works like a dream - Many thanks

Question is there anyway to change the black background?
Be warned...there will be some errors in the log. The "Who's Online" show up with "Unknown Action"
I would rather wait for a update version.

Thanks ill check in the css

No errors but your right about the "unknown action" its not a big deal for me anyway but thanks for the heads up
Title: Re: ENotify
Post by: h78509 on February 17, 2010, 07:07:30 PM
RC2 Curve. Installed (one part I had to do manually).

Nothing happened.

Too bad, this mod looked really cool.
Title: Re: ENotify
Post by: akbora on February 18, 2010, 05:21:23 AM
very good news I hear, vbgamer is active developer member.

I want him to add a feature to this mod: Recent Topics. It shows all new message like recent topics.. Thanks.
Title: Re: ENotify
Post by: Croco on February 20, 2010, 12:59:35 PM
/me thinks there needs to be a language string added to Who.{language}.php for $txt['whoall_enotify'].
This won't solve the problem

the problem with unkown actions is simple.

Because the last action logged for the user is
$actoion=="enotify";

enotify is not defined in language files but the solution to add the string to language files is not enough.

Because this action happens a lot, it will be the only one on the who.php page.

Imagine every 10 seconds this actions is trigged you will be lucky to see any user doing something else.

The solution should address the idea of not logging the action or assign the $action var to the action before the enotify action
Title: Re: ENotify
Post by: forsakenlad on February 21, 2010, 07:34:01 AM
Yes it should be made so the action is not registered in the log.
Title: Re: ENotify
Post by: Stigmartyr on February 21, 2010, 09:00:34 AM
Yes it should be made so the action is not registered in the log.

Awesome.  Anyone handy with that function?
Title: Re: ENotify
Post by: forsakenlad on February 21, 2010, 02:20:08 PM
Well you better PM vbgamer, I've given the mod over to him and won't be here much longer I'm afraid.
Title: Re: ENotify
Post by: ~DS~ on February 21, 2010, 03:22:57 PM
Well you better PM vbgamer, I've given the mod over to him and won't be here much longer I'm afraid.
I did...he doesn't have time either I am afraid. Probably will be giving away to someone else.
Title: Re: ENotify
Post by: akbora on February 21, 2010, 06:22:35 PM
There are a lot of errors over 200.000 ......goes billions

Invalid argument supplied for foreach()
==>38:       foreach ($context['enot']['pms'] as $enot)

2: end(): Passed variable is not an array or object
==>36:       $last_item = end($context['enot']['pms']);


These errors both of them big problem for me... Please help me...
Title: Re: ENotify
Post by: Arantor on February 21, 2010, 07:32:29 PM
/me thinks there needs to be a language string added to Who.{language}.php for $txt['whoall_enotify'].
This won't solve the problem

the problem with unkown actions is simple.

I did know that, but as a workaround until such a thing could be added...
Title: Re: ENotify
Post by: More-to-life on February 22, 2010, 09:47:38 AM
Hi guys

Ive look in the css file to change the colour of the pm background but cant seem to find it

Anyone got any clues?
Title: Re: ENotify
Post by: Yağız... on February 22, 2010, 09:55:54 AM
Hi guys

Ive look in the css file to change the colour of the pm background but cant seem to find it

Anyone got any clues?
Open ./Themes/default/css/jquery.jgrowl.css with an advanced editor and find:
Code: [Select]
background-color:         #000;Change #000.


Fix for "Invalid argument supplied for foreach()" and "2: end(): Passed variable is not an array or object":
Find in ./Themes/default/ENotify.template.php:
Code: [Select]
$last_item2 = end($context['enot']['replies']);Add before:
Code: [Select]
if (!empty($context['enot']['replies'])) {Find:
Code: [Select]
ENotifySetRead($enot['id']);Add after:
Code: [Select]
}Find:
Code: [Select]
$last_item = end($context['enot']['pms']);Add before:
Code: [Select]
if (!empty($context['enot']['pms'])) {Find:
Code: [Select]
ENotifySetRead($enot['id']);Add after:
Code: [Select]
}
Title: Re: ENotify
Post by: lukedamouse on February 25, 2010, 11:41:59 PM
I can't get it to work on SMF 1.1 (most recent version)
Title: Re: ENotify
Post by: vbgamer45 on February 26, 2010, 12:08:04 AM
Only works with SMF 2.0 RC2
Title: Re: ENotify
Post by: Xenmorph on March 02, 2010, 07:16:39 PM
Forsakenlad  ,

LogInOut.php Error :

http://wwwxxxxforum/index.php?action=login2;sa=check;member=38640

8: Undefined index: login_url

File : /home/xxxx/public_html/forum/Sources/LogInOut.php
Line : 136

==>136:
if (strpos($_SESSION['login_url'], 'enotify') || empty($_SESSION['login_url']))

Is there a fix for this ?

I am also receiving the same error as above.

also any update on a permanent solution for the "Who on-line list" issue this Mod generates ?

Think the mod is great just what Ive been looking for in my Site revamp but would like to clear this up before letting my Member loose on the New site.
Title: Re: ENotify
Post by: DarkValentine on March 03, 2010, 02:38:16 AM
Only works with SMF 2.0 RC2

It's an awesome looking mod. Makes things look loads more streamlined and whatnot. It is unfortunate that it's not available for the 1.1 series, but I can understand the possible reasons why.

I'd use it, but don't want to go through the process of switching board versions from 1.1.11 to 2.0RC1.2 just to use one option.

I have seen it in action on other boards running 2.0, and it does look nice.
Title: Re: ENotify
Post by: vbgamer45 on March 03, 2010, 10:25:53 AM
I can probably port it to SMF 1.1.x for a donation of $25 to $30
Title: Re: ENotify
Post by: forsakenlad on March 03, 2010, 07:38:31 PM
Before porting it I'd strongly advise you correct the two bugs (one filling the error log and the other one showing up as unknown action)
Title: Re: ENotify
Post by: kaamaru on March 08, 2010, 10:01:29 AM
This made my host add a .disabled to the end of my index.php as I took up so much of the server CPU! lol.
Quote
Hello,

We are writing to inform you that we have had to disable a folder on your account after it was causing extremely high system load on the shared server Foundation, where it is hosted. The folder disabled was ./iphone/, which was disabled with an .htaccess file denying all incoming connections. I have attached to this ticket a snapshot of the connections which were taking place to your account at the time it was disabled. Note that this is only a snapshot showing concurrent connections at a single moment, the total number of connections over time was extremely high. Furthermore, please see the below resource usage statistics for your account:

CPU% 17.65
MEM% 19.85
SQL% 2.3
Top Process %CPU 40.0 /usr/bin/php /home/****/public_html/iphone/index.php
Top Process %CPU 36.0 /usr/bin/php /home/****/public_html/iphone/index.php
Top Process %CPU 28.0 [php]

As a reference point, consider that the vast majority of shared accounts consume 1.00% or less of CPU/MEM/SQL. With this in mind you can see how extremely high your account's resource usage was on the server. Please make adjustments to your site in order to reduce the strain it places on the server, or consider upgrading to a Dedicated hosting solution where your site could run in its present state without affecting other customers. If you have any questions or issues regarding this matter please let us know and we'll be happy to assist you.

Thank You!
--
Kyle Hammond

-----------------------------------------------------
-----------------------------------------------------
Hello,

We have once again found your account consuming the majority of server resources as a result making the server almost unresponsive. Please find usage details as below:

Top Process:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16920  20 0 20872 10m 4328 R 7.2 0.3 0:00.22 /usr/bin/php /home/****/public_html/iphone/index.php
16921 **** 19 0 20204 10m 4320 R 6.5 0.3 0:00.20 /usr/bin/php /home/****/public_html/iphone/index.php
16935 **** 18 0 0 0 0 Z 6.2 0.0 0:00.19 [php]
16925 **** 19 0 19188 9508 4272 R 4.6 0.2 0:00.14 /usr/bin/php /home/****/public_html/iphone/index.php
16934 **** 16 0 18824 8604 3888 R 3.9 0.2 0:00.12 /usr/bin/php /home/****/public_html/iphone/index.php
16936 **** 17 0 18896 8920 3976 R 3.9 0.2 0:00.12 /usr/bin/php /home/****/public_html/iphone/index.php
16922 **** 18 0 18416 8224 3868 R 3.6 0.2 0:00.11 /usr/bin/php /home/****/public_html/iphone/index.php
16949 **** 17 0 16320 6028 3776 R 1.6 0.1 0:00.05 /usr/bin/php /home/****/public_html/iphone/index.php
16942 **** 17 0 14468 4372 3368 R 1.0 0.1 0:00.03 /usr/bin/php /home/****/public_html/iphone/index.php
16944 **** 16 0 14060 1640 1368 R 0.7 0.0 0:00.02 /usr/bin/php /home/****/public_html/iphone/index.php

Usage:

CPU% 21.83
MEM% 20.66
SQL% 2.1

**** ihackmyi.com 21.83 20.66 2.1
Top Process %CPU 41.0 [php]
Top Process %CPU 40.0 /usr/bin/php /home/****/public_html/iphone/index.php
Top Process %CPU 34.0 /usr/bin/php /home/****/public_html/iphone/index.php

As such we have been forced to rename the script /home/****/public_html/iphone/index.php to /home/****/public_html/iphone/index.php.disabled. This is a shared environment and we can not allow one user to utilize the majority of the resources on a server as it affects all users adversely. If you require a higher usage then allowed on shared servers you might want to try a dedicated plan.

Details on dedicated plans can be found here:

Dedicated Plan http://www.lpdedicated.com

I hope this information is helpful.

Kind Regards,

Er. Tarik Klair
JSA-I System Administrator Team
Red Hat Certified Engineer.
Title: Re: ENotify
Post by: Arantor on March 08, 2010, 10:04:00 AM
Yes, and that's unfortunately by design. In order for the forum to check for new updates, it has to call every few seconds. For every user on the site.

That's also the cause of your 'Unknown Action' oddity in your other thread.
Title: Re: ENotify
Post by: forsakenlad on March 08, 2010, 12:34:18 PM
Yes, and that's unfortunately by design. In order for the forum to check for new updates, it has to call every few seconds. For every user on the site.

That's also the cause of your 'Unknown Action' oddity in your other thread.

Lol remember talking about it in the team boards way back then? You'd said that this would probably very resource consuming on big forums :D
Title: Re: ENotify
Post by: Arantor on March 08, 2010, 01:32:04 PM
*nods* Just as an AJAX shoutbox is. If you're making regular repeated lookups every few seconds for every active user, it's gotta come back and get you sometime.
Title: Re: ENotify
Post by: ~DS~ on March 08, 2010, 09:43:17 PM
You gonna to update this to RC3, vbgamer45?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on March 09, 2010, 02:39:35 PM
Updated to SMF 2.0 RC3!
Includes Yağız... for the error log issue.
Also added code to prevent it from appearing in the online log. Which will fix the unknown action issue. Along with helping performance by not doing unneeded database queries.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 02:55:21 PM
Updated to SMF 2.0 RC3!
Includes Yağız... for the error log issue.
Also added code to prevent it from appearing in the online log. Which will fix the unknown action issue. Along with helping performance by not doing unneeded database queries.
Whooo yay!. Hope this does not takes much resources.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Arantor on March 09, 2010, 03:01:20 PM
It's still going to take resources by querying the server every few seconds for every user - but it will be a bit better.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Yağız... on March 09, 2010, 03:04:16 PM
Includes Yağız... for the error log issue.
Euuuhhh, I think you have made a mistake. I said before and you have added after :P
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 03:06:44 PM
It's still going to take resources by querying the server every few seconds for every user - but it will be a bit better.
Will it add more resources if more requests were made upon this mod?
Like this request for example?
http://www.simplemachines.org/community/index.php?topic=343151.msg2492057#msg2492057
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on March 09, 2010, 03:11:48 PM
Includes Yağız... for the error log issue.
Euuuhhh, I think you have made a mistake. I said before and you have added after :P
Ok think I got it now.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Arantor on March 09, 2010, 03:17:09 PM
Dismal: Yup. Everything you add for it to look up will slow it down. The only countermeasure there is to have it call less frequently.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 03:21:46 PM
Dismal: Yup. Everything you add for it to look up will slow it down. The only countermeasure there is to have it call less frequently.
Detection? Like a Welcome Topic and birthday mod?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Arantor on March 09, 2010, 04:34:42 PM
I'm not sure I follow what you mean. But simply put, when it goes to check for an update, it does that update every few seconds. The more work it does every few seconds, the worse it is for the server.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 04:53:51 PM
I'm not sure I follow what you mean. But simply put, when it goes to check for an update, it does that update every few seconds. The more work it does every few seconds, the worse it is for the server.
Yes, I know that, how does it goes for Welcome Topic and your birthday mod? Does it check for update every few seconds as well? These mods AFAIK does not use ajax while Enotify does.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Arantor on March 09, 2010, 05:00:52 PM
You're right, they don't. They're built in the scheduled tasks system, which actually does something not totally dissimilar; they run a query periodically (one per page load, max) to see if anything needs to be done.

But that's once for the life of the page.

Let's say you open a big big thread. Scheduled-task query fires once during page start up. Meanwhile this mod is doing an update every 10 seconds while you're reading the thread, and doing minimum of 4 queries per page load, but frequently more. So while you're reading that big thread, scheduled tasks has run once and only once, while you're generating multiple queries every few seconds - for every person who is reading that page.

A typical thread+quick reply might be 2 minutes. That's 120 seconds = 12 roundtrips to get data, generating 50+ database queries, versus the one for scheduled tasks checking.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 05:11:49 PM
In other word, this is really bad, bad for big forum with numbers of members online at once.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Arantor on March 09, 2010, 05:34:15 PM
Yup in every sense of it, just as an AJAX shoutbox is.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 05:45:04 PM
Yup in every sense of it, just as an AJAX shoutbox is.
On SP's shoutbox isn't that bad because you have the optional to change how it refreshs. Mine is set by default on 50 secs. Hope this can be done the same for Enotify.   
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on March 09, 2010, 05:46:42 PM
There is a setting in enotify for this.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 05:50:10 PM
There is a setting in enotify for this.
LOL, I overlooked this one.  :P
In order to avoid resource hog it's best to be set to 30 secs, no?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on March 09, 2010, 05:51:00 PM
That would help.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 09, 2010, 06:02:03 PM
Now for the request, I will summary what was said on the othe pages.
Quote
You know what would be totally bad ass is if this could somehow tell you when someone logs into the forum ;D ;D ;D

Log in/out notification
Code: [Select]
"Dismal Shadow has just logged in"
Code: [Select]
"Dismal Shadow has just logged out"
Topic notification
Code: [Select]
"New Topic created by Dismal Shadow,
Happy new years guys"


Ability to change the color of the notifications.

I hope this have a permission which allow user to enable or disable enotify and even the sets of notifications. And of course admin override permission to disable notifications that the admin do not want to prevent server overloaded.
 ;D

Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Arantor on March 09, 2010, 06:03:31 PM
There is a list of who's online, but no list of 'events' of people logging in/out. It could be added but the DB gets bigger.
Title: Re: ENotify
Post by: DarkValentine on March 09, 2010, 11:25:56 PM
I can probably port it to SMF 1.1.x for a donation of $25 to $30

I just may take upon that offer to do so. I'm willing to pay for such an option, since I don't want to switch board versions for it.

I'm in the works of getting my VPS set up and ready soon. So I can be off shared hosting, and straight onto VPS. Since my current host has a thing about running stuff that uses AJAX, that run up the load on the server, even with a refresh rate adjustment setting.

So, once I get my VPS, I will go about getting into details with you on this for 1.1.x
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: the giox on March 12, 2010, 01:03:27 PM
Hi, this is the best mod ever...
I've installed and it works fine, but is incompatible whit my nneo's shoutbox.
It block the "shout"

I have cancelled only for this :(
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: TurtleKicker on March 15, 2010, 10:53:34 AM
Unfortunate that users logging in can't easily be supported. That'd be slick.

I've gotten really positive feedback on this from my test forum, so I might be looking to incorporate this for real. One question, though: the notifications from ENotify seem independent of threads you've actually set "Notify" on? For example, ENotify will notify you with popups for replies to a thread you've started even if you've got "Notify" turned off on that thread?

If that's really the case and I'm not just misunderstanding, then I'd like to suggest having it tied to "Notify" so that ENotify only notifies the user to the threads they've requested. And/or, simply a setting allowing users to turn ENotify on/off for their profile.

A user who has started numerous threads doesn't necessarily want constant spam from ENotify for all of them. ;)
Title: Re: ENotify
Post by: Eclipse16V on March 22, 2010, 06:27:54 AM
Forsakenlad  ,

LogInOut.php Error :

http://wwwxxxxforum/index.php?action=login2;sa=check;member=38640

8: Undefined index: login_url

File : /home/xxxx/public_html/forum/Sources/LogInOut.php
Line : 136

==>136:
if (strpos($_SESSION['login_url'], 'enotify') || empty($_SESSION['login_url']))

Same problem on RC3
Title: Re: ENotify - Problem with Persian language
Post by: shahraam on March 26, 2010, 11:21:42 PM
Hi,
This is a great mod but apparently does not work with Persian language. I installed the mod on my forum which is a Persian forum. The problem I'm having is that the user names and topic titles that are is Persian are not showed in the message that pops up on the screen. Instead I can only see "?" characters for every character that is in Persian. I'm using Persian UTF-8. I think Arabic UTF-8 would have the same issue.
Would you please try to resolve this problem?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 29, 2010, 10:01:51 PM
VB, this mod seem to have affect the redirect issue.
http://www.simplemachines.org/community/index.php?topic=371642.0

Is there a walkaround or fix on this.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on March 30, 2010, 11:33:20 PM
I might uninstall this mod as there is no support here.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on April 11, 2010, 04:59:27 PM
very  nice mod!
thanks for making and sharing it...

a little question... I am translating it to spanish, but I do not fully inderstand the meaning of "Expiration duration of log items:"

Can you explain me that? wich is the use of that value in hour format?
(to make a better translation)
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on April 13, 2010, 07:10:05 PM
wel, I set it up to 15 seconds... and my server do no liked it LOL
I will have to uninstall it... :(
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on April 13, 2010, 07:14:16 PM
Yeah will use a lot of resources if you have a lot of people
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on April 13, 2010, 11:32:35 PM
vbgamer45, what about an option to just running it only when the page load/reload?
(just 1 time)
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on April 13, 2010, 11:42:04 PM
Kind of defeats the purpose of the mod then.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NoFeaR / NFSMW on April 14, 2010, 01:51:16 PM
Nothing happens on mine. I have it installed on RC3 and id doesnt show a pop up, When using firebug i can see that it reloads but it doesnt show anything.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: oOo--STAR--oOo on April 17, 2010, 09:58:39 PM
Hi I removed this mod and I'm getting the error jQuery Undefined

Webpage error details

Message: 'jQuery' is undefined
Line: 504
Char: 6
Code: 0

Problem Is I dont know where this is....
I removed all the lines of code in each script..
Even Index.template for my custom theme
But I'm still getting this error..
Also because of this error all javascript on my website is no longer working..
I cant make the Post pox bigger..
Or many other little thing that use javascript.....

Please can some one help me with this..
Im using SMF 2.0 RC2

Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on April 18, 2010, 01:24:25 AM
if you have 20 tabs/windows opened, the same browser, the same IP, etc..... you will have 20 queries every X amount of time too?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on April 18, 2010, 01:39:51 AM
yes
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: oOo--STAR--oOo on April 18, 2010, 12:55:08 PM
Hi I removed this mod and I'm getting the error jQuery Undefined

Webpage error details

Message: 'jQuery' is undefined
Line: 504
Char: 6
Code: 0

Problem Is I dont know where this is....
I removed all the lines of code in each script..
Even Index.template for my custom theme
But I'm still getting this error..
Also because of this error all javascript on my website is no longer working..
I cant make the Post pox bigger..
Or many other little thing that use javascript.....

Please can some one help me with this..
Im using SMF 2.0 RC2

Is anyone willing to help me with this. As my forums is not working as it should... All javascript is not working.. Because there is an error
with jquery
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on April 18, 2010, 01:24:36 PM
can you provide an url to see/check?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NoFeaR / NFSMW on April 18, 2010, 03:01:43 PM
Anyone that can help me?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: oOo--STAR--oOo on April 18, 2010, 04:10:09 PM
can you provide an url to see/check?

yeah here.. If you look the shoutbox buttons dont work.. The post resive box dont work.. all javascript dont work..
www.uniquez-home.com

Thanks
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on April 18, 2010, 04:33:36 PM
so... all those scripts needs jquery, and you have deleted it...
for example: http://www.uniquez-home.com/v2/Themes/default/scripts/jquery-1.3.2.min.js
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: oOo--STAR--oOo on April 18, 2010, 06:04:25 PM
I didn't delete it.. I uninstalled Enotify.... So your telling me that .. All these pages need this file?

I don't think I ever had that file?

Where is it from? How would I get this file again?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: oOo--STAR--oOo on April 18, 2010, 06:14:41 PM
O.K. I googled the file and downloaded it added it to that directory it fixed that issue.. I dunno if i ever used that file though lol..
Thanks :)
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on April 18, 2010, 06:55:12 PM
it is in your html code... you will have to check those mods... and add whatever they need
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: !RFAN on April 18, 2010, 10:57:27 PM
how can o modify the look of notifier... i want to change the white color of text , black background color and width ...
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: FireDitto on April 28, 2010, 08:57:37 PM
For some reason, this piece of the code appears to be screwing up my Admin pannel -- I can't access "Core Features", etc.

Code: [Select]
// ENotify
function ENotify($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

loadLanguage('ENotify');

$config_vars = array(
    array('check', 'enotify_replies'),
    array('check', 'enotify_pms'),
    array('int', 'enotify_refresh', 'postinput' => 'ms'),
    array('int', 'enotify_life', 'postinput' => 'ms'),
    array('int', 'enotify_exp', 'postinput' => $txt['hours']),
);
 
if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=enotify';
$context['settings_title'] = $txt['enotify_admin'];

// No removing this line you, dirty unwashed mod authors. :p
if (empty($config_vars))
{
$context['settings_save_dont_show'] = true;
$context['settings_message'] = '<div class="centertext">' . $txt['modification_no_misc_settings'] . '</div>';

return prepareDBSettingContext($config_vars);
}

// Saving?
if (isset($_GET['save']))
{
checkSession();

$save_vars = $config_vars;

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: FOOT TAPPING SUCKS!

saveDBSettings($save_vars);

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: I LOVE TEA!

redirectexit('action=admin;area=modsettings;sa=enotify');
}

// This line is to help mod authors do a search/add after if you want to add something here. Keyword: RED INK IS FOR TEACHERS AND THOSE WHO LIKE PAIN!

prepareDBSettingContext($config_vars);
}

I have no idea why. The other mods I have installed are:

1.     MultiForum Mod      1.1
2.    EzPortal    0.3.9b
3.    Justify BBCode    2.3.1
4.    ENotify    1.0.7    [ Install Mod ]
5.    Custom Form Mod    1.6
6.    Member Color Link    3.0.8
7.    Add IP2Location to Track IP    1.3
8.    Display Name On Registration    2.0
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Jade Elizabeth on May 09, 2010, 12:15:03 AM
Forsakenlad  ,

LogInOut.php Error :

http://wwwxxxxforum/index.php?action=login2;sa=check;member=38640

8: Undefined index: login_url

File : /home/xxxx/public_html/forum/Sources/LogInOut.php
Line : 136

==>136:
if (strpos($_SESSION['login_url'], 'enotify') || empty($_SESSION['login_url']))

Same problem on RC3

I'm getting this too.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: forsakenlad on May 09, 2010, 10:12:14 AM
In LogInOut.php find that line and replace it like this:

if ((!empty($_SESSION['login_url']) && strpos($_SESSION['login_url'], 'enotify')) || empty($_SESSION['login_url']))
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on May 09, 2010, 10:43:23 AM
Thanks Eren updated with the fix.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: thee mc on May 09, 2010, 05:34:27 PM
First of all, friggin' awesome! Thank you for this! Do you know if there is any way to link this with Ajax chat (to notify you when someone has entered the chat)?

Again, awesome. Thanks!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: forsakenlad on May 09, 2010, 05:46:01 PM
Yes it could be done but would take time to implement as it would require some new functions to be written and an extra table in the database.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Jade Elizabeth on May 09, 2010, 08:39:48 PM
Thanks :D
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: thee mc on May 10, 2010, 07:46:00 AM
Yes it could be done but would take time to implement as it would require some new functions to be written and an extra table in the database.
Just thought of an idea around this:
Since Ajax Chat is so easy to customize, would it be possible to add another container with a list of current members online on the forum? Then clicking an "invite" link next to their name could send them an automated PM that would just say like "Invite to Chat".

The one thing I'm unsure about is the online list, because there would have to be a way to make it refresh with the chat. Would this eat up tons of server memory?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Salkiri on May 19, 2010, 03:37:49 PM
I tried to install this mod (which worked fine) but it broke another mod. ResizeImagestoFitScreen http://custom.simplemachines.org/mods/index.php?mod=1769 (http://custom.simplemachines.org/mods/index.php?mod=1769) stops working when ever  I enable this mod.

This is the error I get:

Code: [Select]
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.1; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Wed, 19 May 2010 19:36:02 UTC


Message: Object doesn't support this property or method
Line: 34
Char: 7
Code: 0

This is what is on Line 34: jQuery("#forumposts").imagefit();

Looks like both mods are using JQuery.  I'm not to familiar with coding, but maybe there's a conflict of some sort?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: venex on May 19, 2010, 09:49:54 PM
I have a suggestion... Idk if this mod waste too much bandwidth or not but i noticed that when a person is not active in the forum after X amount of minutes, the forum doesn't show them up in the online list... but, they will still get the notifications. So, if a forum has 100 people online, that will be 100+ notification plus the ones that inactive people will get... so my suggestion is that after X amount of minutes, the MOD stops working so people can save bandwidth.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: luuuciano on May 20, 2010, 08:44:00 AM
@vbgamer45 are you using this? http://www.erichynds.com/jquery/a-jquery-ui-growl-ubuntu-notification-widget
(I just saw it today, it looks nice... and have many options, look demo)

@venex it would be a nice idea, to save server resources... and "serving" just one enotify by ip/user, or something else... if you have an interesting amount of users enotify is a nice way to test it against DoS attacks, lol
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 10, 2010, 04:47:53 PM
Enotify stopped working for me so I uninstalled and reinstalled the mod.

Now when I go click "Modification Settings" I get

Quote
Fatal error: Cannot redeclare enotify() (previously declared in /homepages/46/d274007555/htdocs/Sources/ManageSettings.php:2287) in /homepages/46/d274007555/htdocs/Sources/ManageSettings.php  on line 2339

However the mod works. I just need access to other misc mod settings and can't because of this.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on June 10, 2010, 05:21:18 PM
Looks like it was installed twice on that file. I would modify the Sources/ManageSettings and remove a duplicate version of function enotify
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 10, 2010, 05:52:49 PM
Ok so I should just open the file search for Enotify and remove all mentions of the mod?

Sorry for the noob questions. I'm still learning.  :P

Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on June 10, 2010, 05:55:31 PM
Just remove duplicate mentions of the same code
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: admirable on June 10, 2010, 06:17:09 PM
Great and Fantastic Notification Highlight. Congts.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on June 10, 2010, 06:37:34 PM
Glad you enjoy it
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: !RFAN on June 11, 2010, 12:22:19 AM
hey m using this freat mod for loong time..and m enjoing it...
just wanna ask that is there any possiblity to integrate it with other mods..like social network,arcade or any other mod..??

thanks
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on June 11, 2010, 12:37:53 AM
You can code it but I don't plan to at this time.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: !RFAN on June 11, 2010, 12:50:04 AM
ohh it is possible..thats good... i hope u will soon do it...
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on June 11, 2010, 01:00:00 AM
Not likely don't have time  working on too many projects
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 11, 2010, 01:25:23 AM
Looks like it was installed twice on that file. I would modify the Sources/ManageSettings and remove a duplicate version of function enotify

I'm sorry gamer. My skills are good enough to properly do this. U uninstalled the mod and checked managesetting.php. There was some enotify stuff there so I removed it - no problem. Reinstalled and I still get the error when I click "Modification Settings".
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 13, 2010, 01:51:58 AM
Looks like it was installed twice on that file. I would modify the Sources/ManageSettings and remove a duplicate version of function enotify

I'm sorry gamer. My skills are good enough to properly do this. I uninstalled the mod and checked managesetting.php. There was some enotify stuff there so I removed it - no problem. Reinstalled and I still get the error when I click "Modification Settings".

Still looking for a hand.  O:)
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 14, 2010, 03:13:18 AM
If anyone is willing to help me out here is the file that's giving me the error.  :-\

Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 17, 2010, 01:22:54 AM
Hey everyone. Sorry for being a pest, but I really like this mod and would like to have it working again if possible. Any help would be appreciated. Thaank you!

I just need the enotify stuff removed so I can reinstall the mod.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 20, 2010, 02:49:27 AM
Still looking for help.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on June 21, 2010, 04:00:39 PM
Hi there. I love this plugin, my users seem to like it as well, except for one problem. When you log in, you get a row of many many notifications from posts that are years old. Is there any way to fix this? It's the same problem Ryan had back on page 3 of this thread.

Thanks!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Boricua012 on June 23, 2010, 02:38:56 AM
I've had this mod installed for awhile and haven't noticed anything pop up yet, so there must be a problem. Any solutions? ???
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on June 23, 2010, 02:41:04 AM
@Boricua - try uninstalling and re-installing. When you reinstall, make sure you install it into the theme(s) you're using.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Boricua012 on June 23, 2010, 03:06:51 AM
@Boricua - try uninstalling and re-installing. When you reinstall, make sure you install it into the theme(s) you're using.

Ah, well it works on the default theme fine now. This is a noob question, but to install it on my other themes i want would i have to manually edit the files of those themes?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on June 23, 2010, 03:10:57 AM
@Boricua - try uninstalling and re-installing. When you reinstall, make sure you install it into the theme(s) you're using.

Ah, well it works on the default theme fine now. This is a noob question, but to install it on my other themes i want would i have to manually edit the files of those themes?
Yep
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Boricua012 on June 23, 2010, 03:16:17 AM
@Boricua - try uninstalling and re-installing. When you reinstall, make sure you install it into the theme(s) you're using.

Ah, well it works on the default theme fine now. This is a noob question, but to install it on my other themes i want would i have to manually edit the files of those themes?
Yep

Thanks!  ;D
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on June 23, 2010, 04:13:22 PM
No! Why would you manually edit the files? When you go to install the mod, at the bottom you will notice 'Install in other themes'. Open that up and select which themes you want to install to. It's really very simple.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on June 23, 2010, 04:20:08 PM
Not if he already installed it otherwise he would have to uninstall and reinstall it again...this time with 'Install in other themes'
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 23, 2010, 04:30:16 PM
No one wants to help?  :(
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on June 23, 2010, 08:21:50 PM
@Mattek - have you completely uninstalled and reinstalled? I looked at your managesettings.php and it looks ok, no duplicate stuff that I can see.

@Dismal Shadow - I thought that's exactly what I said?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 23, 2010, 09:48:57 PM
@Mattek - have you completely uninstalled and reinstalled? I looked at your managesettings.php and it looks ok, no duplicate stuff that I can see.

@Dismal Shadow - I thought that's exactly what I said?

Yup. And every time I reinstall it goes through fine, but when I click on the Modification Settings option in my Admin CP it gives that parse error in managesettings.php.

Currently, with it uninstalled, I go to Modification Settings and there is an ENotify tab that refreshed my current page.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: ~DS~ on June 23, 2010, 11:03:35 PM
@Mattek - have you completely uninstalled and reinstalled? I looked at your managesettings.php and it looks ok, no duplicate stuff that I can see.

@Dismal Shadow - I thought that's exactly what I said?

Yup. And every time I reinstall it goes through fine, but when I click on the Modification Settings option in my Admin CP it gives that parse error in managesettings.php.

Currently, with it uninstalled, I go to Modification Settings and there is an ENotify tab that refreshed my current page.
did you happen to have multi-forum mod installed?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on June 24, 2010, 02:45:25 AM
Ok, I believe what you need to do is, with the plugin uninstalled, edit your managesettings.php to remove the block that contains the enotify code. Save it and upload it back to the correct directory on your server. Then try reinstalling. I bet that will fix it.

Important: Make sure you take backups of all the files on your site before you do any of this. ;)
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 24, 2010, 02:40:23 PM
Ok, I believe what you need to do is, with the plugin uninstalled, edit your managesettings.php to remove the block that contains the enotify code. Save it and upload it back to the correct directory on your server. Then try reinstalling. I bet that will fix it.

Important: Make sure you take backups of all the files on your site before you do any of this. ;)

Thank you. I would love to do this, but editing php files is not my thing. I suck at it. I need someone to do it for me to tell you the truth. And I'm pretty sure the file I attached earlier was with the plug-in uninstalled.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on June 24, 2010, 11:14:45 PM
Ok, well I'll tell you what. Just to be sure, go ahead and uninstall the plugin. Reattach managesettings.php here, and I'll fix it for you. Then you can upload the file back to your server, and THEN reinstall the plugin, installing it to your theme like I said above. ;)
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 28, 2010, 02:51:45 PM
Ok, well I'll tell you what. Just to be sure, go ahead and uninstall the plugin. Reattach managesettings.php here, and I'll fix it for you. Then you can upload the file back to your server, and THEN reinstall the plugin, installing it to your theme like I said above. ;)
Alright dude. I'll do this as soon as I get home. Thank you so much.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 28, 2010, 10:38:03 PM
Here bro. Thanx.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on June 29, 2010, 11:35:40 AM
Ok, here's the fixed file. Upload this file right back to your server, before installing enotify. If it asks you to overwrite, choose yes. Once you have this file back on your server, then go into SMF and install Enotify. Make sure this time you install it into your other theme. That should get you going.

Good luck!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on June 29, 2010, 12:07:22 PM
Ok, here's the fixed file. Upload this file right back to your server, before installing enotify. If it asks you to overwrite, choose yes. Once you have this file back on your server, then go into SMF and install Enotify. Make sure this time you install it into your other theme. That should get you going.

Good luck!

Thank you! I'll let you know how it goes. Won't be home until tomorrow.

Thank you man.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Kenamura on July 08, 2010, 06:35:51 AM
Wasnt sure if it was already up there butttt, I noticed that once the mod is installed it seems to now want me to maneuver through my forums. The package makes the dropdown menus some reason not work properly, it makes the lettering smaller then it should be and this makes no sense i think
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on July 08, 2010, 01:19:59 PM
Ok, here's the fixed file. Upload this file right back to your server, before installing enotify. If it asks you to overwrite, choose yes. Once you have this file back on your server, then go into SMF and install Enotify. Make sure this time you install it into your other theme. That should get you going.

Good luck!

Everything's running smooth. Thank a lot man.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: bahgheera on July 08, 2010, 06:09:54 PM
No problem!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Raffaele1977 on July 12, 2010, 03:36:50 AM
thanks for the mod, i love it! :)

it works perfectly...

just a thing: i notice that when the post title has some characters (à, è and similars) the growl notification appears with some errors... how can it be solved?

thanks
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NanoSector on July 12, 2010, 03:43:25 AM
...how come this mod solved my custom page problem.......?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: MATTEK on July 12, 2010, 03:20:34 PM
...how come this mod solved my custom page problem.......?

Possibly added a bit of coding that was missing previously? I'm not entirely sure but that would be my guess.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NanoSector on July 12, 2010, 03:34:12 PM
...how come this mod solved my custom page problem.......?

Possibly added a bit of coding that was missing previously? I'm not entirely sure but that would be my guess.
Could be. I'm not sure either.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 22, 2010, 11:07:34 PM
keep getting this error since this mod install.  Any ideas?

http://www.gohighvoltage.com/forum/index.php?amp;action=enotify
2: require(/forum/cache/data_a7250958f1d6b8bcba920bdf7d1fe4fa-SMF-AdSellerSettings.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory
File: /html/forum/Sources/Load.php
Line: 2635
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NanoSector on July 23, 2010, 05:15:47 AM
keep getting this error since this mod install.  Any ideas?

http://www.gohighvoltage.com/forum/index.php?amp;action=enotify
2: require(/forum/cache/data_a7250958f1d6b8bcba920bdf7d1fe4fa-SMF-AdSellerSettings.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory
File: /html/forum/Sources/Load.php
Line: 2635
The file it is trying to load isn't found. I think you uninstalled an other mod before installing this one.

AdSeller (pro) maybe?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 23, 2010, 08:03:29 AM
I uninstalled and reinstalled ad seller pro,  and this error still returns.   I wonder why
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 23, 2010, 09:50:13 AM
I think it is a bug with SMF should be fixed in the next RC for 2.0
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NanoSector on July 23, 2010, 11:44:21 AM
I think it is a bug with SMF should be fixed in the next RC for 2.0
Or a bug with the package...
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 23, 2010, 11:52:02 AM
what package? 
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NanoSector on July 23, 2010, 02:43:53 PM
what package?
Ad seller Pro
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 23, 2010, 03:08:44 PM
Not a bug with Ad Seller Pro he has it uninstalled and still occurs.

Error is with SMF's caching system there was a bug reported and was fixed for SMF 2.0 RC4
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 23, 2010, 03:19:28 PM
Actaully I never had ad seller uninstalled.   I just uninstalled and reinstalled ad seller to make sure it installed properly.

I guess I can totally uninstall ad seller to see if error comes up again
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Fabhino22Elz on July 25, 2010, 10:01:53 AM
Hey there, we get some errors with the eNotify Thing. It gives us thoose messages in the errorlog:


http://www.desbl.de/index.php?action=enotify
8: Undefined index: unread_topics_visit_none
Datei: /var/www/web18/html/Sources/Recent.php
Zeile: 667



http://www.desbl.de/index.php?action=enotify
8: Undefined index: unread_replies
Datei: /var/www/web18/html/Sources/Recent.php
Zeile: 658

http://www.desbl.de/index.php?action=enotify
8: Undefined index: unread_replies
Datei: /var/www/web18/html/Sources/Recent.php
Zeile: 464

Can someone help us?

Greetings
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 25, 2010, 02:06:54 PM
Ok, uninstalled ad seller pro for 2 days now.   No errors yet.   Wondering if there is a error due to ad seller pro.   Will see in the next day or so.  Before I would get the errors every day.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NanoSector on July 25, 2010, 03:26:16 PM
Hm.

When opening "/index.php?action=enotify" it shows:
({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })

Any solution?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 25, 2010, 03:45:38 PM
That's how it supposed to be. The mod grabs data from action=notify via javascript
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: NanoSector on July 25, 2010, 04:31:11 PM
That's how it supposed to be. The mod grabs data from action=notify via javascript
Ow, then it is right :P
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 26, 2010, 09:36:08 AM
Ok, well it's been 3 days,  still no errors.   Any chance the ad seller pro could cause this?   Since I uninstalled it,  it hasn't returned.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 26, 2010, 11:06:36 AM
No chance I still firmly believe it is a bug with SMF caching system that was fixed in RC4 basically it was a race condition.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 26, 2010, 11:11:13 AM
Cool,  when is RC4 Avail?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 26, 2010, 11:12:14 AM
Not sure but hopefully soon!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 26, 2010, 11:18:37 AM
Thanks very much
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 26, 2010, 06:37:34 PM
Heads up charter members have developer builds now so might be fixed in those!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: KensonPlays on July 26, 2010, 06:48:55 PM
so rc4 WILL happen. Hopefully GOLD after! (then I will suggest SOME (a few (and I mean a few)) features to add into SMF 3)
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 28, 2010, 04:41:29 PM
Ok, its been 4 or 5 days now since I uninstalled Ad Seller Pro, and no more errors.   has to be related some how.

Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 28, 2010, 04:56:10 PM
As I said before either try the development builds or wait till RC4
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 28, 2010, 05:05:14 PM
Oh, I understand,  No problem here.  Just giving updated reports.    I like your mods, and think they are awesome.  I am just trying to figure out some errors.

Where do I get the development builds?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 28, 2010, 05:09:42 PM
For charter members
http://www.simplemachines.org/community/index.php?topic=392498
Remember you will need to reinstall all mods if used and no support given for development builds
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: GohighVoltage on July 28, 2010, 05:19:35 PM
How safe is it to use the development build?  Is it easy to upgrade from RC3?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on July 28, 2010, 05:54:44 PM
Easy to upgrade I have used them on some of my sites. Generally they are fine to use since right now it is mostly just bug fixes.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: venex on August 10, 2010, 02:06:59 AM
Hey!

Any ideas of how to display special characters in the notifications???

Special characters such as: ¡¿áéíóúüñ and so forth... it just displays a question mark (firefox) or a box (Internet Explorer)...

Any ideas?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Propaganistas on August 21, 2010, 05:22:22 AM
Hi,

I'm getting this in my error log:

Quote
http://www.SITE/index.php?amp;action=enotify
8: Undefined index: href
File: SITE/public_html/Themes/default/Login.template.php (body_above sub template - eval?)
Line: 451

Quote
http://www.SITE/index.php?amp;action=enotify
8: Undefined index: title
File: SITE/public_html/Themes/default/Login.template.php (body_above sub template - eval?)
Line: 452

Any idea how to fix this? It's kinda spamming the log :)

Thanks!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: seelie on August 29, 2010, 01:53:26 PM
Hi there

I installed the mod and gave it a whirl and then uninstalled when members mentioned they were not fond of it.  Something I noticed is that after uninstallation, "Who's Online" came up with constant "Unknown Action" that referred to 'enotify'.  I reinstalled it, but turned it off, and "Who's Online" behaves normally again.

I'm using SMF 2.0 rc3

Any ideas on what to do?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on August 29, 2010, 02:13:20 PM
Sounds like it didn't uninstall completely the first time I would check all the code that it adds and remove any traces of enotify
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: seelie on August 29, 2010, 06:02:09 PM
Yeah ... I thought I'd done that after re-installing and re-uninstalling to make sure the behaviour was what I was seeing.

I'll comb though it again.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Grim Line on September 04, 2010, 06:32:45 AM
This mod works great! However! I do get problems when i add the following to my custom theme;

Code: [Select]
   // Enotify
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/jquery.jgrowl.css" />
   <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/enotify.js"></script>
   <script type="text/javascript">
      (function($){
         $(document).ready(function(){
        $.getJSON("', $scripturl, '?action=enotify",
                function(data){
                  $.each(data.items, function(i,item){
                    $.jGrowl(item.message, { header: item.title, life: ', $modSettings['enotify_life'], ' });
                  });
                });
            setInterval( function() {
          $.getJSON("', $scripturl, '?action=enotify",
                  function(data){
                    $.each(data.items, function(i,item){
                      $.jGrowl(item.message, { header: item.title, life: ', $modSettings['enotify_life'], ' });
                    });
                  });     
            } , ', $modSettings['enotify_refresh'], ' );
         });
      })(jQuery);
   </script>';
 
   
         

All my ajax related items stop working. My slide out menu (Them related), My awards mod/alternate user mod dont display the drop down predictive username your typing in aswell as if i send a PM to someone and begin to type their name it doesnt drop down and predict either.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 04, 2010, 11:25:14 AM
Tested the pm someone dropdown menu on my test forum with enotify works ok.

The other scripts might break depending if you are using other javascript frameworks such as mootools or other versions of jquery.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: Grim Line on September 04, 2010, 03:03:17 PM
So what should i do? :\
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: distante on September 06, 2010, 10:24:50 AM
nice mod!
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: XerraX on September 15, 2010, 08:46:01 AM
I think there is a need to set some limits for replies, like:

do not show replies of topics older than X days
only show X replies at once

and so on
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: rocknroller on September 15, 2010, 10:59:55 AM
Hi, this is great mod, thank you for it. but i have problem with same.

sometimes mod going crazy and start shoving old post. -that is annoying.

do u have ideas what that happens?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: voythas on September 21, 2010, 10:17:38 AM
This mod works great! However! I do get problems when i add the following to my custom theme;

All my ajax related items stop working.

Same here! Nneonneo's shoutbox just stopped working. It uses mootools. What should we do then?
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 21, 2010, 10:25:17 AM
Mootools and jquery do not mix that is the issue.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: voythas on September 21, 2010, 10:28:14 AM
Are you planning to release the mootools edition of your modification? Would be great.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 21, 2010, 10:30:04 AM
No not planning
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: voythas on September 21, 2010, 10:34:54 AM
Too bad, because almost every DzinerStudio theme uses mootools.

I found this: http://davidwalsh.name/jquery-mootools and I'll try to use it with your modification.

Good luck on future mods!

Regards.

Edit//It works, I just added this:
Code: [Select]
jQuery.noConflict(); after:
Code: [Select]
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/enotify.js"></script>
<script type="text/javascript">
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 21, 2010, 11:10:48 AM
The mod works fine with jQuery.noConflict(); ? If so I will add this at once.
Title: Re: ENotify - Updated for SMF 2.0 RC3
Post by: voythas on September 21, 2010, 11:14:29 AM
So far I don't see any problems with mootools after adding jQuery.noConflict();
Shoutbox works.
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 21, 2010, 11:35:35 AM
New version released!
Version 2.0!

+Works better on all themes now!
+Fixed conflict with mootools. Should now work better with other mods that use their own javascript libraries.
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: Raffaele1977 on September 22, 2010, 01:35:26 AM
2 things:

1) italian translation for you
Code: [Select]
<?php
// ENotify Language 1.0

// Frontend strings
$txt['notification_feed'] = 'Vedi le notifiche';
$txt['notification_generator'] = 'ENotify Mod per SMF';
$txt['notification_pm_sent'] = 'ti ha inviato un messaggio personale:';
$txt['notification_pm_new'] = 'Nuovo Messaggio Personale';
$txt['notification_reply_sent'] = 'ha risposto a questo post:';
$txt['notification_reply_new'] = 'Nuova Risposta al tuo Post';

// Backend strings
$txt['enotify_admin'] = 'Pannello di amministrazione di ENotify';
$txt['enotify_replies'] = 'Abilita le notifiche delle risposte ai topic?';
$txt['enotify_pms'] = 'Abilita le notifiche dei messaggi personali?';
$txt['enotify_refresh'] = 'Intervallo di refresh per le notifiche:<div class="smalltext"><strong>Importante:</strong> Impostare questo valore troppo basso pu&ograve; causare conflitti con il tuo server! (Default: 10000 ms {dieci secondi})</div>';
$txt['enotify_life'] = 'Durata della notifica sullo schermo:';
$txt['enotify_exp'] = 'Tempo di scadenza dei log delle notifiche:';


?>

i attached for you the files already modified and working...


2) when enotify works, and the title of the topic that in notified appears, if the title has this characters inside "à, è, é, ò, ù" they appears in a strange manner... as if they weren't correctly read by php or html...
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: Sirius OCTeam on September 22, 2010, 01:55:49 AM
Hello

Thanks for this work

French translation
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 22, 2010, 11:26:04 AM
Thanks for all the translations!
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: searchgr on September 25, 2010, 02:20:35 PM
Is it compatible to smf 2.0 rc2?
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 25, 2010, 03:03:54 PM
It maybe but you would have to install it manually
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: ishy on September 27, 2010, 04:09:37 PM
I have to admit that I'm not terribly happy about the copyright line added because of this mod, especially since that was not noted in the description of the mod.
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: visualuser on September 28, 2010, 01:49:20 PM
i install the mod,
but the porblem with the "????!!???"
and other uknown characters still remains.......



So if i cannot fix the problem,
i must take this out, as it does not help as it should be.
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 28, 2010, 01:51:02 PM
Try converting your database tables for enotify to utf8 in phpmyadmin
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: visualuser on September 29, 2010, 10:55:30 AM
Try converting your database tables for enotify to utf8 in phpmyadmin


this is a great risk.....
 O:)
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: vbgamer45 on September 29, 2010, 10:57:46 AM
Shouldn't be since it wasn't working before
Title: Re: ENotify
Post by: ormuz on October 12, 2010, 11:37:43 AM
I can probably port it to SMF 1.1.x for a donation of $25 to $30

Please send me info who to pay, I need it to 1.1.x

Thanks.
Title: Re: ENotify - New Version 2.0! - Updated for SMF 2.0 RC3
Post by: vbgamer45 on October 12, 2010, 12:47:23 PM
PM sent
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 12, 2010, 03:01:52 PM
Updated and now works with SMF 1.1.x
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on October 12, 2010, 04:08:04 PM
Some issues...

Doesn't support titles with non-english characters.
The notification appears to everyone, but not to me. I don't know if is because i'm using ff. But I suppose not. Other users with firefox works great. I try with a test account, and it works, with my account, nothing shows... lol
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 12, 2010, 04:38:40 PM
For non English character support you need to convert the two enotify tables to UTF8 using phpmyadmin
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on October 12, 2010, 04:48:10 PM
For non English character support you need to convert the two enotify tables to UTF8 using phpmyadmin

Ok, can u help me with that?

I suppose this code, can do the work. What are the tables name?

Code: [Select]
ALTER TABLE table_name CHARACTER SET utf8;
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 12, 2010, 05:30:32 PM
Tables names log_enotify_pms And log_enotify_replies
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on October 12, 2010, 06:03:45 PM
Something strange.

I've topics in the unread link, and none notification have appear in my screen... What could be wrong?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 12, 2010, 06:14:55 PM
The notifications happen really fast so if you not watching for a split second they could disappear.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on October 12, 2010, 06:18:54 PM
The notifications happen really fast so if you not watching for a split second they could disappear.

I've understand that. And I've defined the time to show the notifications to 40000ms (40 seconds). And nothing appear. This mod doesn't have nothing to do with the notifications options in the profile? Its really strange, in my test account, the notifications had appear, in my default account hadn't...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on October 12, 2010, 06:43:34 PM
When I try to access to the link forum.com/index.php?action=enotify it gives me this message:

Code: [Select]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'morcego'','1285307597','forum.com/index.php?topic=16837.msg278' at line 4
File: /home/maistraf/public_html/comunidade/Sources/ENotify1.php
Line: 70
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 12, 2010, 07:21:02 PM
Copy this file to your sources folder and see if it fixes that mysql error.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on October 12, 2010, 07:41:44 PM
Copy this file to your sources folder and see if it fixes that mysql error.
Its working! thanks a lot for your time and help.
Title: Re: ENotify - Problem with Persian language
Post by: IdanC on October 13, 2010, 07:01:29 AM
are there any tips on how to fix the utf-8 issue? characters show up as question marks.

i'm sure i can do it myself, but i can't seem to find the "bottle neck".

thanks...

Hi,
This is a great mod but apparently does not work with Persian language. I installed the mod on my forum which is a Persian forum. The problem I'm having is that the user names and topic titles that are is Persian are not showed in the message that pops up on the screen. Instead I can only see "?" characters for every character that is in Persian. I'm using Persian UTF-8. I think Arabic UTF-8 would have the same issue.
Would you please try to resolve this problem?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 13, 2010, 09:34:08 AM
IdanC you need to convert the two database tables to utf8 look up a couple posts for said to the last guy
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on October 13, 2010, 12:20:06 PM
For non English character support you need to convert the two enotify tables to UTF8 using phpmyadmin

Ok, can u help me with that?

I suppose this code, can do the work. What are the tables name?

Code: [Select]
ALTER TABLE table_name CHARACTER SET utf8;

This solution doesn't work. Any more ideas?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 13, 2010, 12:27:11 PM
I don't know if that is the same as changing the table type to utf8?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: IdanC on October 15, 2010, 06:19:58 AM
IdanC you need to convert the two database tables to utf8 look up a couple posts for said to the last guy

worked like a charm!   ;D

for the replies -
Code: [Select]
ALTER TABLE `smf_log_enotify_replies` CHANGE `enot_title` `enot_title` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE `smf_log_enotify_replies` CHANGE `enot_sender` `enot_sender` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;

for the pms -
Code: [Select]
ALTER TABLE `smf_log_enotify_pms` CHANGE `enot_title` `enot_title` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE `smf_log_enotify_pms` CHANGE `enot_sender` `enot_sender` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;


Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: gbsothere on October 21, 2010, 10:54:36 AM
Hi, vbgamer45.   :)

I'm helping a member with his 1.1.11 forum (Custom theme "Reference" but this is also happening in default):

Quote
Hacking attempt...
INSERT IGNORE INTO smf_log_enotify_replies
(enot_item_id,enot_title,enot_time,enot_link,enot_sender,enot_sender_link,id_member)
VALUES
('28351','Re: Nice things you can't get','1286646164','http://www.website.com/forum/index.php?topic=1681.msg28351;topicseen#msg28351','Jean','http://www.website.com/forum/index.php?action=profile;u=423','745')


File: /mnt/target02/348462/377604/www.website.com/web/content/forum/Sources/ENotify1.php
Line: 70


Not a bonafide "hacking attempt", right?  Have you seen this happen before?  (ENotify was working fine, then suddenly stopped and this is what's filling up the error log.)

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 21, 2010, 02:40:24 PM
Not sure why it would do that looks escaped
Change
Code: [Select]
// This is our query we use ignore to make sure we don't get an error if the record exists (unique field defined to avoid the extra select query)
db_query("INSERT IGNORE INTO {$db_prefix}log_enotify_replies
(enot_item_id,enot_title,enot_time,enot_link,enot_sender,enot_sender_link,id_member)
VALUES
('" .$topic['last_post']['id'] . "','" . mysql_escape_string($topic['last_post']['subject']). "','" .  $topic['last_post']['timestamp'] . "','" .  $topic['last_post']['href'] . "','" .  $topic['last_post']['member']['name'] . "','" .  $topic['last_post']['member']['href'] . "','" .  $ID_MEMBER . "')

", __FILE__, __LINE__);

To
Code: [Select]
// This is our query we use ignore to make sure we don't get an error if the record exists (unique field defined to avoid the extra select query)
db_query("INSERT IGNORE INTO {$db_prefix}log_enotify_replies
(enot_item_id,enot_title,enot_time,enot_link,enot_sender,enot_sender_link,id_member)
VALUES
('" .$topic['last_post']['id'] . "','" .  htmlspecialchars($topic['last_post']['subject'],ENT_QUOTES). "','" .  $topic['last_post']['timestamp'] . "','" .  $topic['last_post']['href'] . "','" .  $topic['last_post']['member']['name'] . "','" .  $topic['last_post']['member']['href'] . "','" .  $ID_MEMBER . "')

", __FILE__, __LINE__);
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: gbsothere on October 21, 2010, 06:00:06 PM
Thanks, I've edited the file and I'm just watching now to see if anything else shows up. 

 ;)





EDIT:   That's sorted it and thanks! 
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: flutter on November 07, 2010, 04:36:09 AM
I had to uninstall because of a theme and then reinstall.  I now have two enotify links at the bottom of the page.  Can you tell me where I have to look to remove one of them please?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: petesky on November 07, 2010, 10:37:40 AM
I recently installed also this mod from vbgamer and get strange question marks instead of my öäü. I don't have UTF-8 in my german forum.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on November 07, 2010, 02:13:06 PM
I had to uninstall because of a theme and then reinstall.  I now have two enotify links at the bottom of the page.  Can you tell me where I have to look to remove one of them please?
Check Sources/Subs.php

I recently installed also this mod from vbgamer and get strange question marks instead of my öäü. I don't have UTF-8 in my german forum.
Check that the tables for the tagging system are set to utf8.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: flutter on November 08, 2010, 04:59:05 AM
Thanks, Spuds fixed it for me, among other things
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: petesky on November 08, 2010, 05:46:59 AM
I converted like in this thread: http://www.simplemachines.org/community/index.php?topic=343151.msg2818947#msg2818947

...but still have question marks when getting the popup.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: petesky on November 09, 2010, 10:35:15 AM
Hi vbgamer !

Is it possible, that encoding problems in notify window with my german threads where öüä are wrong encoded has to do with encoding in JS and not collation of database ?! Because your js is minified i cannot read :-) but AFAIK there is an option to set setRequestHeader along with charset=UTF-8 ?!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: alsaka on November 25, 2010, 02:50:51 PM
hello

i install mod ENotify  i have problem with arabic i see arabic like this ?   ?  ?  ?  ?  ?  ?  ? ?  ?  ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on November 25, 2010, 02:56:50 PM
hello

i install mod ENotify  i have problem with arabic i see arabic like this ?   ?  ?  ?  ?  ?  ?  ? ?  ?  ?
You have converted your database to UTF-8?

If yes then it's the mods fault.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on November 25, 2010, 04:12:37 PM
Read up a couple posts there is a couple users that have it working on utf8 after making the changes above
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: petesky on November 26, 2010, 03:20:40 AM
UTF-8 is not the problem afaik.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on November 26, 2010, 08:52:12 AM
UTF-8 is not the problem afaik.
Well, indeed it is.

If you don't convert your database and stuff to UTF-8 you don't have support for things like áéíóú etc.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: rocknroller on November 26, 2010, 01:01:02 PM
what is new from 1.0.8?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: metalerke on November 29, 2010, 04:58:32 AM
Can anyone explain me what the last option stands for?

Code: [Select]
Expiration duration of log items:
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: petesky on November 29, 2010, 06:15:12 AM
I already converted as described some threads ago. No change - i assume that ajax is talking in wrong encoding.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: IdanC on November 29, 2010, 11:04:34 AM
if i may, ajax doesn't "talk". it just passes the values in the db.

take a look for a second inside the mentioned tables, see how the data is stored there. if the text is scrambled (as i expect it to be), it means you haven't really changed the encoding.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: petesky on November 29, 2010, 11:55:09 AM
if i may, ajax doesn't "talk". it just passes the values in the db.

It talks to the appropriete script by using either

Code: [Select]
header ("Content-Type: text/html; charset=iso-8859-1");
or

Code: [Select]
xmlHttp2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');

..but i'm sure you know this much better rather then me.

take a look for a second inside the mentioned tables, see how the data is stored there. if the text is scrambled (as i expect it to be), it means you haven't really changed the encoding.

So enotify fetches the entries from the forum database, the values have to be passed by js (ajax) to the script. This may cause the problem with encoding and not the database kollation itself. But anyway all my tabels except the ones in this thread are latin1_general_ci

It's not scrambled in the database bzw.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: hellboysk on December 02, 2010, 09:58:20 AM
No New Posts       8: Undefined index: viewer_text
File: /home/www/forum.bezvrska.com.mk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 134


i get this error on my forum .. i dunno what to do i use smf 1.1.12 can u please he lp me p.s if u need to look at it yourself here is a link forum.bezvrska.com
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sharks on December 02, 2010, 11:03:01 AM
I like the 2.0 but i don't like this at the bottom of my forum: Enotify by CreateAForum.com
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 02, 2010, 12:21:41 PM
http://www.smfhacks.com/copyright_removal.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sharks on December 03, 2010, 11:54:02 AM
Please update this mod to add the option for any member to disable enotify in his/her forum profile. Some of my forum members do not want the enotify feature on their screens, so how to disable it only for those members? I think an option in the member profile under the section "Notifications and Email" would be ideal. Thank you in advance. In the meantime, i will have to remove this mod to avoid alienating my members.

For the option "Expiration duration of log items:" is that relative to the number of hours or minutes or days?? By default its value is 48.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sharks on December 06, 2010, 04:42:03 AM
I also found a problem, as i had to ban a spammer from my forum and my error log filled up to 20 pages of this error:

http://www.sharks.com/smf/index.php?action=enotify
Sorry bannedmember, you are banned from using this forum!

I don't understand what enotify has to do with the banning process...???
I also noticed that the time between each error from my error log is at logged at exactly 10 seconds intervals.

I clicked on the error link: http://www.sharks.com/smf/index.php?action=enotify
I get this error on a white page:
({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: w0lfman on December 06, 2010, 10:26:35 AM
My users are very pleased with this MOD.  However, is there a way to set the notify's to display a few seconds longer than they currently are set to by default? 

One thing I notice in my Admin Control panel.  The Features and Options location has the ENotify link, but when I click the link it doesnt take me away from the Basic Features page.  I'm using the default template version 1.1.12.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: w0lfman on December 07, 2010, 09:38:30 AM
Just curious if this mod has any support considering no responses?  No big deal if it doesnt.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 07, 2010, 10:22:53 AM
Support really depends on my schedule if I don't see a bug I won't respond. feature requests are low priority at this point.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: InsaneMustang on December 08, 2010, 11:23:53 AM
How do I move it to the bottom of the page?  Love the mod, but I think it would be more efficient coming from the bottom right than the top right.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: w0lfman on December 09, 2010, 07:20:57 PM
Support really depends on my schedule if I don't see a bug I won't respond. feature requests are low priority at this point.
Isnt the eNotify link that is added supposed to take me to a control panel for the mod?  If so the link doesnt work for me.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on December 10, 2010, 11:21:18 AM
Support really depends on my schedule if I don't see a bug I won't respond. feature requests are low priority at this point.
Isnt the eNotify link that is added supposed to take me to a control panel for the mod?  If so the link doesnt work for me.
No.

Admin > Configuration > Modification Settings > eNotify
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: w0lfman on December 10, 2010, 06:12:32 PM
Yoshi, I think I see the problem.  I dont have Admin > Configuration > Modification Settings > eNotify 

Below is the view of my admin panel...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 10, 2010, 06:42:12 PM
Its not there in 1.1.x

But from your screenshot I see a tab for enotify on the same page for edits features and otpiosn.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sharks on December 11, 2010, 11:36:43 AM
This is a nice mod, but i think it would not be honest of me not to warn all other users of this mod... my host just suspended my account due to high server resource usage due to this mod, as they showed me the log and the last requests came from this mod. I uninstalled it and my forum used much less server resource. I just wanted to leave feedback about this and hopefully this can be optimized for future releases. This will particularly affect busy/large forums.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ormuz on December 11, 2010, 04:47:08 PM
This is a nice mod, but i think it would not be honest of me not to warn all other users of this mod... my host just suspended my account due to high server resource usage due to this mod, as they showed me the log and the last requests came from this mod. I uninstalled it and my forum used much less server resource. I just wanted to leave feedback about this and hopefully this can be optimized for future releases. This will particularly affect busy/large forums.

You right, I've paid vbgamer for the conversion to v1.1.x, and the mod is useless in big foruns... With this mod, my server load go from a 7 to a 18.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sharks on December 11, 2010, 09:51:45 PM
Maybe vbgamer can add another option to this mod, such that only posts for the concerned member is notified, instead of notifying ALL new posts by ALL members for every single member, which is currently the case. The same PM option algorithm should be used for the new posts/replies, as it relates to the user's posts only instead of monitoring the entire forum's updates.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on December 14, 2010, 02:21:07 PM
Maybe vbgamer can add another option to this mod, such that only posts for the concerned member is notified, instead of notifying ALL new posts by ALL members for every single member, which is currently the case. The same PM option algorithm should be used for the new posts/replies, as it relates to the user's posts only instead of monitoring the entire forum's updates.
Maybe he can also make an option to only apply it to a certain board (or boards), like announcements.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sharks on December 19, 2010, 11:46:17 PM
Maybe he can also make an option to only apply it to a certain board (or boards), like announcements.

That would also help to reduce the load on the server, by limiting the number of queries.

Honestly, i love this mod for being practical, but it's just too resource hungry!! :(
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: w0lfman on December 25, 2010, 12:51:50 PM
Just wanted to follow up to see if anyone knew why I dont have a Modification Settings as an option whenthis mod is installed.  Its being installed on the default template SMF 1.1.12

Errormessage below when I click on the eNotify tab in my control panel

Fatal error: Call to undefined function ENotify() in /home/mmmm/public_html/12thman/Sources/ModSettings.php on line 206
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Bob Marley on December 26, 2010, 07:13:18 PM
I have uninstall this modification (no problems in uninstall) from my smf 1.1.12 forum but at the bottom there is still Enotify by CreateAForum.com where can i find this and remove it? (All ready done searching index.template.php and nothing there)

Help pls.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 26, 2010, 07:44:24 PM
Check out QueryString.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Bob Marley on December 26, 2010, 07:52:25 PM
Quote
   // enotify
   $buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><span class="smalltext">Enotify by <a href="http://www.createaforum.com" title="Forum Hosting">CreateAForum.com</a></span>', $buffer);
   // End enotify

Here it is! Thx vbgamer45
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: teos55 on December 28, 2010, 12:22:00 PM
  Trying to install enotify on smf1.1.12  theme pdx-dk 1.1.9
Getting error message :
   ./Sources/ModSettings.php  test failed.
  I couldnt dare to go further. What might be the cause ? Thanks in advance.

Packages attached.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 28, 2010, 01:01:19 PM
Other mods modified the same code so it is no longer can find it.  You would have to install it manually at this point
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: teos55 on December 28, 2010, 01:10:03 PM
Thanks for the info.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on December 28, 2010, 02:03:00 PM
Click the little pencil icon before the error, and it should give you instructions :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: teos55 on December 29, 2010, 12:17:40 PM
Sorry, I missed your update.
  here is the output of enotify after apply , but there is no pencil icon before the error.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on December 29, 2010, 12:33:32 PM
Sorry, I missed your update.
  here is the output of enotify after apply , but there is no pencil icon before the error.
Expand the spoiler (clicking the little arrow before the error) and then click the pencils on all errors you get, to get installation info :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: teos55 on December 29, 2010, 03:22:44 PM
Sorry but I see no little arrow or pencil in whole panel.  I treid both english/turkish and default theme/pdx-dk. Maybe I miss something. Spoiler is not expandable. The output is as I attached before.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on December 29, 2010, 05:37:12 PM
Sorry but I see no little arrow or pencil in whole panel.  I treid both english/turkish and default theme/pdx-dk. Maybe I miss something. Spoiler is not expandable. The output is as I attached before.
I guess the 1.X series don't have that option.

Parse it online.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on January 03, 2011, 07:05:20 AM
Wicked mod, thank you vbgamer45. I've noted the server load issues others have reported so I have increased the refresh interval setting from 10 seconds to 60 seconds to prevent this. So far it hasn't been a noticible change in load with up to 100 users online, still less than 0.5 on my dedi.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on January 03, 2011, 10:00:04 AM
Glad you enjoy it!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on January 03, 2011, 02:57:53 PM
Of course I have a few members who don't like it so I've added a Profile option to disable it.

Profile.template.php, find:
Code: [Select]
</tr><tr>
<td colspan="2">
<input type="hidden" name="default_options[view_newest_pm_first]" value="0" />
<label for="view_newest_pm_first"><input type="checkbox" name="default_options[view_newest_pm_first]" id="view_newest_pm_first" value="1"', !empty($context['member']['options']['view_newest_pm_first']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['recent_pms_at_top'], '</label>
</td>

Add after:
Code: [Select]
</tr><tr>
<td colspan="2"><label for="profile_enotify_disable">Enotifications</label>
<select name="default_options[profile_enotify_disable]" id="profile_enotify_disable">
<option value="0"', empty($context['member']['options']['profile_enotify_disable']) ? ' selected="selected"' : '', '>Enabled</option>
<option value="1"', !empty($context['member']['options']['profile_enotify_disable']) ? ' selected="selected"' : '', '>Disabled</option>
</select>
</td>

And in Load.php, find:
Code: [Select]
// enotify
global $settings, $modSettings, $scripturl;

$context['html_headers'] .=  '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/jquery.jgrowl.css" />
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/enotify.js"></script>
<script type="text/javascript">
jQuery.noConflict();
(function($){
$(document).ready(function(){
        $.getJSON("' . $scripturl . '?action=enotify",
                function(data){
                  $.each(data.items, function(i,item){
                    $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                  });
                });
setInterval( function() {
          $.getJSON("' . $scripturl . '?action=enotify",
                  function(data){
                    $.each(data.items, function(i,item){
                      $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                    });
                  });
} , ' . $modSettings['enotify_refresh'] . ' );
});
})(jQuery);
</script>';
//end enotify

Replace with:
Code: [Select]
// enotify
global $settings, $modSettings, $scripturl, $options;
$options['profile_enotify_disable'] = !isset($options['profile_enotify_disable']) ? 0 : $options['profile_enotify_disable'];
if ($options['profile_enotify_disable'] == 0):
$context['html_headers'] .=  '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/jquery.jgrowl.css" />
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/enotify.js"></script>
<script type="text/javascript">
jQuery.noConflict();
(function($){
$(document).ready(function(){
        $.getJSON("' . $scripturl . '?action=enotify",
                function(data){
                  $.each(data.items, function(i,item){
                    $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                  });
                });
setInterval( function() {
          $.getJSON("' . $scripturl . '?action=enotify",
                  function(data){
                    $.each(data.items, function(i,item){
                      $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                    });
                  });
} , ' . $modSettings['enotify_refresh'] . ' );
});
})(jQuery);
</script>';
    endif;
//end enotify

There's probably a better way than using the $options as a global.
Edited to correct undefined index.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on January 03, 2011, 04:04:04 PM
Nice edit great idea!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sharks on January 03, 2011, 07:29:09 PM
Hopefully, this can be added in the next release of this mod.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sir Kaos on January 04, 2011, 09:10:14 AM
Forum version: 1.1.12
Theme: Reference
Enotify: 2.0

Looks like Enotify doesnt work fine with me. Sometimes it appears and sometimes it doesnt. And sometimes it appears when no one even replied or posted to threads.

help?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: agent47 on January 05, 2011, 11:53:30 PM
Amazing mod mate.
Great stuff!
I hope I'll be able to make a donation sometime.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sir Kaos on January 07, 2011, 09:12:36 AM
Forum version: 1.1.12
Theme: Reference
Enotify: 2.0

Looks like Enotify doesnt work fine with me. Sometimes it appears and sometimes it doesnt. And sometimes it appears when no one even replied or posted to threads.

help?

anyone experiencing this issue?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: !RFAN on January 07, 2011, 09:40:53 AM
enotify is conflicting with SA Facebook connect mod..
anyone experienced the same problem??
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on January 16, 2011, 05:45:20 PM
Forum version: 1.1.12
Theme: Reference
Enotify: 2.0

Looks like Enotify doesnt work fine with me. Sometimes it appears and sometimes it doesnt. And sometimes it appears when no one even replied or posted to threads.

help?

I notice that the notifications appear for me until I've read the thread or marked everything as read, have you tried this?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sirius OCTeam on January 17, 2011, 02:16:18 AM
Forum version: 1.1.12
Theme: Reference
Enotify: 2.0

Same for me, I had to uninstall it, because of users complaints.
Looks like Enotify doesnt work fine with me. Sometimes it appears and sometimes it doesnt. And sometimes it appears when no one even replied or posted to threads.

help?

I notice that the notifications appear for me until I've read the thread or marked everything as read, have you tried this?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: !RFAN on January 17, 2011, 04:01:57 AM
enotify is conflicting with SA Facebook connect mod..
anyone experienced the same problem??

this error:

({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: mibodega on January 19, 2011, 07:35:52 PM
I'm getting an error message  -    Execute Modification   ./Sources/ModSettings.php   Test failed

1.1.12 - SMF Default Theme -Core
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: !RFAN on January 19, 2011, 07:37:38 PM
^^ you must have rcvd error notification during installation?

now you can manually edit your modsettings.php file
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Thrilling on January 24, 2011, 07:46:17 PM
Working great on my forum at www.geeksoup.net, thank you ;)!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Tunz Master on January 27, 2011, 05:36:53 PM
I wish it worked great for me.....sometimes it's right on the money & other times 20 of them come thru at once???

http://bootlegtunzworld.org/communityarea/  is where it's installed if you wanna take a look?  maybe I have conflicting mods installed?

really like the idea & hope the bugs get worked out

thanks for the mod & good luck with it
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on February 02, 2011, 10:11:49 AM
I just installed this on SMF 1.1.12, and I also have SA Facebook Connect installed. It seems to not work at all when that is enabled. When it is disabled, it works randomly. I'm just testing it with PMs from one account to another.

Anyone know what is going on and/or have a fix? I have nothing in the forum error logs or server error logs.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: !RFAN on February 02, 2011, 12:27:22 PM
I just installed this on SMF 1.1.12, and I also have SA Facebook Connect installed. It seems to not work at all when that is enabled. When it is disabled, it works randomly. I'm just testing it with PMs from one account to another.

Anyone know what is going on and/or have a fix? I have nothing in the forum error logs or server error logs.

http://www.simplemachines.org/community/index.php?topic=343151.msg2917443#msg2917443
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Stigmartyr on February 02, 2011, 04:53:11 PM
Compatibility Issue Found with: http://custom.simplemachines.org/mods/index.php?mod=2714

When I asked the above mentioned mod owner about why I couldn't install his mod with yours his reply was he didn't know how eNotify worked so....

On the 3rd of (3) edits to ./Sources/LogInOut.php the 'Remember Position' mod is looking for:

Code: [Select]
if (empty($_SESSION['login_url']))
redirectexit();



....I'm asking you guys.  ./Sources/LogInOut.php is already modified by eNotify that causes it to break.

What it wants to do is replace the above code with:


Code: [Select]
if (empty($_SESSION['login_url']))
{
//Let's see if the REFERER is empty if it's no, take the next step
if (!empty($_SERVER['HTTP_REFERER']))
{
//verify if we are in the login page or some other place.
if ($_SERVER['HTTP_REFERER']==$boardurl.'/index.php?action=login' or $_SERVER['HTTP_REFERER']==$boardurl.'/login/')
{
redirectexit(); //Let's go to the main page!
}
else
{
redirectexit($_SERVER['HTTP_REFERER']); //Go back to the page where we login
}
}
else
{
redirectexit(); //There's no HTTP_REFERER, go to the main page.
}
}





ANY INSIGHT into making that work with eNotify??
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on February 04, 2011, 01:42:15 PM
I removed the SA Facebook mod, and now Enotify works fine.

I have my forum integrated with a site, however, and would like Enotify to appear on the rest of it. I copied the main index header that loads the proper .js and creates some script. This works fine, but it only appears on window/tab if I have multiple windows/tabs open on the site.

Why does it only appear on one, and how does it decide which one to appear on?

Great mod!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Kolya on February 07, 2011, 07:31:53 AM
I cannot recommend this mod.

First it installs an ad-link in the copyright line. No other mod I've ever installed did this an I don't think it's appropriate.
Then it hits the server like an iron gloved fist, sending requests every 10 seconds for every member who's online. As Arantor has observed, this isn't even a mistake but by design. Just to give you an impression: In 5 days this mod amassed as many page views as we'd had in the whole last year. And chances are your host will kick you out swiftly just for the dent this makes in server memory and computing power.

But the real fun starts, after you uninstall it, as you sooner or later will: Because it doesn't uninstall completely. I ran into the same problem described by others above. I have now around 30 guests with "unknown action" in the online list. Considering guests should at no point be able to use Enotify, this is a bit weird. But I looked them up in the database (Table: smf_log_online) and sure enough these guests do call Enotify, example:
Code: [Select]
a:2:{s:6:"action";s:7:"enotify";s:10:"USER_AGENT";s:112:"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)";}
At this point I have replaced all files Enotify touches from backup and searched all files from the sources and themes folders for the word "enotify" and there's nothing there. I have also deleted 2 tables in the database that Enotify left behind (smf_log_enotify_pms & smf_log_enotify_topics).

I did all of this yesterday, so it's unlikely that 30 guests still have a tab open, not even mentioning they shouldn't have been able to call Enotify in the first place.

If this mod sounded too good to be true to you, you got it right the first time. Unless you like a big resource hog screwing up your forum permanently, keep your hands off it.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on February 07, 2011, 07:40:59 AM
Quote
As Arantor has observed, this isn't even a mistake but by design.

I should note that I raised this with its original author during its original review prior to approval. There isn't a way to directly avoid it if you want current notifications, at least not on a stock Apache server (since the sanest way is to implement Comet notifications not AJAX, but that's not viable on Apache+PHP)

As for the uninstall issue, the problem is likely that there's fragments of code in your custom theme that aren't uninstalled (either due to SMF not being able to apply it to custom themes, or due to a bug in some versions of 2.0 that meant it didn't remove from custom themes anyway even when it was supposed to), but it *can* be caused by not having a page refresh so the code is still firing as you've indicated (or having some kind of cached content)

As for guests calling enotify, no idea why that happens. I can't remember if the original version I saw did or not, though.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Kolya on February 07, 2011, 08:08:44 AM
I understand that asynchronously pushed notifications do need some sort of time scale. And it can even be set in the options of the mod.
But it's a lose-lose situation this mod puts you in: Either you set it to some extremely long interval, which makes the mod pointless (instant notifications aren't instant anymore) or you beat the server to pulp with Enotify's constant requests.

As I've said I have searched the entire "Themes" folder for any files containing the word "enotify", so that includes my custom theme. The only file I found is a false positive: Profile.Template.php contains a function "populateNotifyTemplate".
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Kolya on February 07, 2011, 08:58:58 AM
The thing with this mod is that it seems to address an actual problem of SMF: Regular SMF does a poor and confusing job of guiding users to new posts (PM notifications are fine). It requires a user to check 3 pages:

1. New Replies
2. New Posts since your last visit
3. Unread posts since forever

With 1. it is left unexplained what exactly counts as a " new reply". Is that any post in a thread I've started? Any post in a thread I've posted in? Or just the post that comes right after mine in some thread? Or is it when someone clicks the REPLY button in my post?
Yeah, who knows.

2. and 3. are obviously aimed at large forums. In a small forum you will just want to read all that's new and mark as read what does not interest you, instead of missing posts again that you missed on your last visit.

SMF's depiction of new posts on the boards is even worse: As soon as you've visited a forum's message index that has new posts, the forum is not flagged as containing new posts anymore, whether you read them or not.

And if you come in from any other place than the message index and read all new posts in a forum (eg via RSS links), then the forum is still flagged as containing new posts, although you read them all.

I have actually discussed this here before and was told this was intentional behaviour, despite it resulting in completely unreliable "unread" indicators.

That's why I was interested in Enotify. But in the end it doesn't solve this problem and adds its own more severe problems on top. So I'm cured for now.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on February 07, 2011, 09:16:08 AM
Well, for 1. the default text is 'view unread replies to your posts' which while it might be vague it does at least imply that it's all of your posts, not just in your topics.

It is intentional if not entirely desirable behaviour.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on February 07, 2011, 03:36:53 PM
I think this is a really good mod. I've already made some modifications so it also works with MonoTiz's SMF Social Network Pro. There are two suggestions I would make for future versions:

1) A way for members to control what they get notifications for, like some may want PM notifications, but not post replies.

2) A page, possibly popup, that lists the most recent notifications, even if they have been read. FB has a drop down menu that shows you the most recent. This way, if you missed one that came in, you can review it.

As for the problems that been mentioned here, if a person could turn off the post notifications, that could ease that issue. Also, as to the strain on the server.. just change the frequency to a higher delay. I don't think people will really notice a difference between something like 10 seconds and 2 minutes. Is it "instant" then? No. But will it matter? Not really.



Thanks for this mod.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: .ABM. on February 17, 2011, 06:40:58 AM
Hello

Install the mod eNotify manually, using the parse (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2198;attach=169074;smf_version=1.1.11), but I'm not getting notifications.

What is the reason the rpoblema?

I can create some tables in database? How?

Log:
Code: [Select]
Visitante Hoy a las 03:27:34
Aplicar filtro: Mostrar solamente los mensajes de error de esta dirección IP 186.124.55.154    Aplicar filtro: Mostrar solamente los mensajes de error de esta sesión 18b9107cfedb4aef6f27a94c83588ac0
Aplicar filtro: Mostrar solamente los mensajes de error de este URL http://aportesydescargas.com.ar/foro/index.php?action=enotify
Aplicar filtro: Mostrar solamente los mensajes de error con el mismo mensaje
8: Undefined index: default_username
Archivo: /home/martin/domains/aportesydescargas.com.ar/public_html/foro/Themes/default/Login.template.php
Línea: 101



Theme default
version 1.1.11
www.aportesydescargas.com.ar
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: FragaCampos on February 17, 2011, 05:11:28 PM
Just to warn people that are going to install this mod:

The mod is great. Neat, clean, and useful, but for the first time ever, i got my account cancelled because of it.
I've changed the interval to 45 seconds, and even with a relatively small forum (11000 registered members) i got shut down in less than 24 hours.

Think twice before installing this.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: .ABM. on February 19, 2011, 02:01:12 PM
Just to warn people that are going to install this mod:

The mod is great. Neat, clean, and useful, but for the first time ever, i got my account cancelled because of it.
I've changed the interval to 45 seconds, and even with a relatively small forum (11000 registered members) i got shut down in less than 24 hours.

Think twice before installing this.

Thanks for the info.

Mod off for not having received support from the author of the mod.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: FragaCampos on February 20, 2011, 01:27:31 PM
Now that i got my forum back and uninstalled the mod i noticed that enotify doesn't erase it's entries in the database.
I managed to delete smf_log_enotify_pms & smf_log_enotify_topics but i have a doubt:
how can i restore only certain tables instead of the entire database?



But the real fun starts, after you uninstall it, as you sooner or later will: Because it doesn't uninstall completely. I ran into the same problem described by others above. I have now around 30 guests with "unknown action" in the online list. Considering guests should at no point be able to use Enotify, this is a bit weird. But I looked them up in the database (Table: smf_log_online) and sure enough these guests do call Enotify, example:
Code: [Select]
a:2:{s:6:"action";s:7:"enotify";s:10:"USER_AGENT";s:112:"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)";}
At this point I have replaced all files Enotify touches from backup and searched all files from the sources and themes folders for the word "enotify" and there's nothing there. I have also deleted 2 tables in the database that Enotify left behind (smf_log_enotify_pms & smf_log_enotify_topics).
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: aerolite on March 04, 2011, 07:03:18 AM
This mod is very proo! but can you put something like notification bar? if they didn't check the thread, it keeps adding and adding? and once they click the notification bar, it will show un-read threads by the owner.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on March 04, 2011, 08:49:48 AM
This mod is very proo! but can you put something like notification bar? if they didn't check the thread, it keeps adding and adding? and once they click the notification bar, it will show un-read threads by the owner.

If I understand your question correctly, when a notification is given, it won't be given again. If someone posts another new thing, it will give a new notification (I am assuming).

My concern was that if a person misses a notification (like they weren't looking at the screen during the 5 seconds it was there), how can they see if they missed any? So I built in a Notifications box, like on FB, that shows the recent notifications.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: MATTEK on March 15, 2011, 04:46:10 PM
Question - I just installed the mod after upgrading to RC5. Seems to be working fine, but every once in a while I'll get like 13 notifications from posts made months ago. Any one know why?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on March 15, 2011, 08:08:48 PM
Has a new reply been added to them?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: MATTEK on March 15, 2011, 08:17:50 PM
Has a new reply been added to them?
No.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on March 15, 2011, 08:20:45 PM
Not sure what would would it then unless it is erroring out if you see the same topics over and over again.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: MATTEK on March 15, 2011, 08:23:35 PM
Not sure what would would it then unless it is erroring out if you see the same topics over and over again.

It
s not the same topics. It's random. For instance I just had a notification, clicked on it and it brought me to a post made on March 1st.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Zirc on March 19, 2011, 05:20:45 PM
I had to parse one of the database changes manually and I found an error.  Here is what is displayed on the mod site.
Code: [Select]

INSERT IGNORE INTO {db_prefix}settings
(variable, value)
VALUES ('enotify_life', '5000'),
('enotify_refresh', '10000'),
('enotify_pms', '1'),
('enotify_replies', '1'),
('enotify_exp

And it should be the following correct?  The last line got some things cut off.
Code: [Select]
INSERT IGNORE INTO {db_prefix}settings
(variable, value)
VALUES ('enotify_life', '5000'),
('enotify_refresh', '10000'),
('enotify_pms', '1'),
('enotify_replies', '1'),
('enotify_exp', '48');

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ljunatic on April 07, 2011, 10:17:14 PM
But the real fun starts, after you uninstall it, as you sooner or later will: Because it doesn't uninstall completely. I ran into the same problem described by others above. I have now around 30 guests with "unknown action" in the online list. Considering guests should at no point be able to use Enotify, this is a bit weird.

Has anyone found a way to end this behaviour?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: FragaCampos on April 08, 2011, 11:27:25 AM
I just deleted the enotify entries in my database. Everything is fine now.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on April 16, 2011, 10:25:04 PM
Is there a way of putting the [ X ] on top as opposed to on the bottom?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on April 28, 2011, 12:07:32 AM
Another excellent mod from vbgamer!
Perfect! Smooth installation and not problem even in a highly customized theme. Thank you.



Is there a way to change the notification color? My forum is dark and the notifications look a little unmatching.
Also Is there a way to add a sound too? I think that would be cool.
or like every member can adjust their own settings would be the best.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sheree on May 03, 2011, 06:55:39 PM
Hi there is there A way members can view a list of the notifications?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 03, 2011, 07:30:59 PM
Not at this time.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sheree on May 03, 2011, 07:36:22 PM
tnx for the reply :)  ;)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on May 04, 2011, 08:58:49 AM
Hi there is there A way members can view a list of the notifications?

I wanted the same, so made my own.

I have taken out some of the specializations and hopefully got it down to a more generic form.
Save it as a .php file in your forum root path. It's meant to be called using a pop up window.

Hope it helps someone.

Code: [Select]
<? require("SSI.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
<head>
<title>ENotifications</title>
<style type="text/css">
.enotify_list_holder { width: 400px; height: 400px; }
.enotify_top_cell { background-color: #990404; }
.enotify_list_div { height: 330px; overflow-x: hidden; overflow-y: scroll; border: 1px solid #999999; }
.enotify_list_table { width: 100%; border-collapse: collapse; }
.enotify_list_table td { vertical-align: top;  }
.enotify_list_table2 { width: 100%; border-collapse: collapse; }
.enotify_list_table2 td { font-size: 12px; vertical-align: top; line-height: 100%; apadding: 4px; }
.enotify_center_cell { text-align: center; font-size: 120%; padding: 4px; font-weight: bold; }
</style>
</head>
<body>
<?
require('Sources/ENotify1.php');
ENotifyLoad(1);

function get_userid_from_link($tlink) {
   $p1 = strpos($tlink, ';u=');
   if ($p1 !== false) {
      $uid = (substr($tlink, $p1 + 3));
   } else { $uid = -1; }
   return $uid;
}

function create_entry($enot) {
   global $txt;
   $estrarr = array ('Post Reply', 'Private Message');
   $etype = $enot['etype'];
   $uid = get_userid_from_link($enot['sender-href']);
   echo '<tr><td style="padding: 4px;">
   <table class="enotify_list_table2">
   <tr><td colspan="2"><b>'.$estrarr[$etype].'</b></td></tr>
   <tr><td><a href="'. $enot['sender-href']. '" target="_blank">'. $enot['sender']. '</a></td>
   <td style="text-align: right;">'. date('d-m-Y',$enot['time']) .'</td></tr>
   <tr><td colspan="2"><a href="'. $enot['href']. '" target="_blank">'. $enot['title']. '</a></td></tr>
   </table></td></tr>
   ';
}

$allnotes = array();
if (isset($context['enot']['replies'])) {
   foreach ($context['enot']['replies'] as $enot)  { $enot['etype'] = 0;  array_push($allnotes, $enot); }
}
if (isset($context['enot']['pms'])) {
   foreach ($context['enot']['pms'] as $enot)      { $enot['etype'] = 1;  array_push($allnotes, $enot); }
}

for ($i=0; $i < sizeof($allnotes); $i++) {
   $date1 = $allnotes[$i]['time'];
   for ($j=$i; $j < sizeof($allnotes); $j++) {
      $date2 = $allnotes[$j]['time'];
      if ($date2 > $date1) {
         $temp = $allnotes[$i];
         $allnotes[$i] = $allnotes[$j];
         $allnotes[$j] = $temp;
         $date1 = $date2;
      }
   }
}   

?>

<div class="enotify_list_holder">
<table class="enotify_list_table">
<tr><td class="enotify_top_cell enotify_center_cell"><? echo $txt['enotifications'] ?><a href="javascript:self.close();" style="float: right;">[close]</a></td></tr>
<tr><td><div class="enotify_list_div"><table class="enotify_list_table">
<?
foreach ($allnotes as $enot) {
   create_entry($enot);
}
?>
</table></div></td></tr>
<tr><td class="enotify_center_cell"><input type="button" value="Reload" onclick="window.location = '<? echo $PHP_SELF ?>'" /></td></tr>
</table></div>

</body>
</html>
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge D. Fuentes on May 05, 2011, 02:30:20 PM
I installed it and like it for what it does...

However, like the people above, my members complain that if there are many replies, they will not get to click on a 'show all notifications' page like in Facebook.  There is also no numerical notifier on the pages (again, like in Facebook).
Yeah, we're Facebook-spoiled. :P

I like the mod a lot though, but I've had some people asking me to uninstall it, which leads me to my question...

...I cannot seem to uninstall it!  When I tried to, SMF kicks up a "Test Failed" on Modsettings.   I'm now afraid of removing it lest a problem happens to the board.
"4.    Execute Modification    ./Sources/ModSettings.php    Test failed"
I'm using SMF 1.1.13

EDIT: I took a look at the response with the custom notifications page.  Where would I add that so that it adds this functionality?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on May 08, 2011, 01:02:22 PM
EDIT: I took a look at the response with the custom notifications page.  Where would I add that so that it adds this functionality?

Save that code as a file in the forum directory, like "enotifications.php", then put in a link wherever you want to be able to open it from:

Code: [Select]
<a href="javascript:openWindow('enotifications.php', 'enotifications', 400, 400);">ENotifications</a>
and put this javascript code into a linked in js file:


Code: [Select]
function openWindow(url, name, width, height, options) {
    width = width ? width : 800;
    height = height ? height : 600;
    options = options ? options : 'resizable=no,location=0';
    name = name ? name : 'openWindow';
    window.open(url, name, 'screenX=' + (screen.width - width) / 2 + ', screenY=' + (screen.height - height) / 2 + ', width=' + width + ', height=' + height + ', ' + options);
}
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on May 08, 2011, 01:44:12 PM
Is there a way of putting the (X) [Closed notifications] as the first thing that pops up and then everything else follows? Currently it's the opposite way around  :-[
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on May 10, 2011, 04:31:37 AM
Just installed it, seems to work fine but I'm having some issues with my Admin panel and can't find it. Could someone give me the direct link to its options?

Thanks!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on May 10, 2011, 12:55:28 PM
It should be in features and it should have its own tab.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on May 10, 2011, 01:23:07 PM
It should be in features and it should have its own tab.

Thanks - but as I said, I can't find it, can you give me the link to it?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 10, 2011, 01:28:23 PM
Features Options -> Enotify
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on May 10, 2011, 01:33:21 PM
Features Options -> Enotify

Maybe I'm not clear enough :) I'm not asking for the path I need to take; I'm asking for the relative URL to it!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on May 10, 2011, 01:34:34 PM
index.php?action=featuresettings;sa=enotify
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on May 10, 2011, 01:36:19 PM
Thanks! That's it. Unfortunately it goes back to the forum homepage, but that's probably something to do with my whole config... thanks again.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 10, 2011, 02:09:39 PM
Yeah probably a missing edit in the Admin.php or Subs.php depending on your SMF version
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on May 10, 2011, 03:27:37 PM
Can someone show me how to do this?

Is there a way of putting the (X) [Closed notifications] as the first thing that pops up and then everything else follows? Currently it's the opposite way around 
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on May 11, 2011, 03:02:10 AM
Yeah probably a missing edit in the Admin.php or Subs.php depending on your SMF version

Actually, I found the problem. Each edit was done twice in each file, probably due to a failed installation, and this caused ALL kinds of problems with the Admin panel... Thanks for the idea!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on May 11, 2011, 01:32:15 PM
Great mode!! Thanks.


I have a question, what is this for? "Expiration duration of log items: 48" 48 months?

Thanks!!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on May 11, 2011, 01:35:36 PM
48 seconds?

Indeed it's a great mod but I really disagree with the footer it inserts to index.template.php. Imagine if every mod inserted its own footer, we'd have a page three feet long!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on May 11, 2011, 03:04:52 PM
It can be removed in sources/querystring.php

But this mod is not always working, dunno why...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on May 11, 2011, 03:15:30 PM
I answer myself: 48 is 48 hours.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on May 11, 2011, 06:28:54 PM
This mod is not working fine in SMF 1.1.13

Let's say there are 3 users, A, B and C.

Everyone wrote something in one particular topic, then A answer to this topic but only one of the others can see the notification, once its viewed by B, C will not see it. :(
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: DHC on May 14, 2011, 03:05:59 PM
Of course I have a few members who don't like it so I've added a Profile option to disable it.

Profile.template.php, find:
Code: [Select]
</tr><tr>
<td colspan="2">
<input type="hidden" name="default_options[view_newest_pm_first]" value="0" />
<label for="view_newest_pm_first"><input type="checkbox" name="default_options[view_newest_pm_first]" id="view_newest_pm_first" value="1"', !empty($context['member']['options']['view_newest_pm_first']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['recent_pms_at_top'], '</label>
</td>

Add after:
Code: [Select]
</tr><tr>
<td colspan="2"><label for="profile_enotify_disable">Enotifications</label>
<select name="default_options[profile_enotify_disable]" id="profile_enotify_disable">
<option value="0"', empty($context['member']['options']['profile_enotify_disable']) ? ' selected="selected"' : '', '>Enabled</option>
<option value="1"', !empty($context['member']['options']['profile_enotify_disable']) ? ' selected="selected"' : '', '>Disabled</option>
</select>
</td>

And in Load.php, find:
Code: [Select]
// enotify
global $settings, $modSettings, $scripturl;

$context['html_headers'] .=  '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/jquery.jgrowl.css" />
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/enotify.js"></script>
<script type="text/javascript">
jQuery.noConflict();
(function($){
$(document).ready(function(){
        $.getJSON("' . $scripturl . '?action=enotify",
                function(data){
                  $.each(data.items, function(i,item){
                    $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                  });
                });
setInterval( function() {
          $.getJSON("' . $scripturl . '?action=enotify",
                  function(data){
                    $.each(data.items, function(i,item){
                      $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                    });
                  });
} , ' . $modSettings['enotify_refresh'] . ' );
});
})(jQuery);
</script>';
//end enotify

Replace with:
Code: [Select]
// enotify
global $settings, $modSettings, $scripturl, $options;
$options['profile_enotify_disable'] = !isset($options['profile_enotify_disable']) ? 0 : $options['profile_enotify_disable'];
if ($options['profile_enotify_disable'] == 0):
$context['html_headers'] .=  '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/jquery.jgrowl.css" />
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/enotify.js"></script>
<script type="text/javascript">
jQuery.noConflict();
(function($){
$(document).ready(function(){
        $.getJSON("' . $scripturl . '?action=enotify",
                function(data){
                  $.each(data.items, function(i,item){
                    $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                  });
                });
setInterval( function() {
          $.getJSON("' . $scripturl . '?action=enotify",
                  function(data){
                    $.each(data.items, function(i,item){
                      $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                    });
                  });
} , ' . $modSettings['enotify_refresh'] . ' );
});
})(jQuery);
</script>';
    endif;
//end enotify

There's probably a better way than using the $options as a global.
Edited to correct undefined index.

Which version does this apply to?

Can the ability for each user to enable/disable ENotify be made available for RC5?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge D. Fuentes on May 17, 2011, 02:16:56 AM
The members of my forum have brought up to my attention some issues similar, if not identical, to the questions/comments people are posing.

Because of this, I've decided to remove eNotify... except I can't.  It gives me a failure to remove a few key files (I think I mentioned it before).
Can anyone help me remove this?  I'm on SMF 1.1.13. :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on May 17, 2011, 02:58:24 AM
Which version does this apply to?


I'm on SMF 1.1.13 with Enotify 2.0.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on May 17, 2011, 02:51:30 PM
Is this mod going to be fixed?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on May 17, 2011, 03:01:50 PM
Is there a way of putting the (X) [Closed notifications] as the first thing that pops up and then everything else follows? Currently it's the opposite way around 
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge D. Fuentes on May 21, 2011, 10:00:12 AM
No response, huh...
I don't know what to do.  I really need to get this thing uninstalled, but I don't want to wreck my forum because of it.
If anyone knows what modifications I need to do to remove the error here:
4.    Execute Modification    ./Sources/ModSettings.php    Test failed
please let me know.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OnlineFunCorner on May 25, 2011, 10:35:36 AM
hy
nice mod
but why my users getting again and again same notification
sometimes me got the notification of 6 months old reply of post
plz help
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on May 26, 2011, 01:06:12 AM
hy
nice mod
but why my users getting again and again same notification
sometimes me got the notification of 6 months old reply of post
plz help

Same problem here.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on May 26, 2011, 03:40:45 AM
It would be my guess that for some reason those old posts are still marked as unread in the database because this mod checks that, does anyone try Mark All Posts Read? Are those posts being notified for appearing in the unread posts page? Typically when my users have read/unread issues I tell them to delete their cookies, mark all posts as read, and it fixes the problem. If not that, then try check/repairs on the database.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on May 26, 2011, 05:22:30 AM
most of My members including me dont really use that button. So that may be the problem i donno. But it is definetely a wierd problem.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on June 07, 2011, 06:25:21 AM
Hello,

I just found out that, with the mod installed login is not working perfectly. Enotify's is the only modification that I see in /sources/LogInOut.php, that's why I think it's the mod's fault.

What happens is that after logging in the user is not redirected to the last page he was reading (HTTP referral) but instead goes to the forum's main page...

Any help?

Thanks!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 07, 2011, 06:53:59 AM
Hello,

I just found out that, with the mod installed login is not working perfectly. Enotify's is the only modification that I see in /sources/LogInOut.php, that's why I think it's the mod's fault.

What happens is that after logging in the user is not redirected to the last page he was reading (HTTP referral) but instead goes to the forum's main page...

Any help?

Thanks!
Posted an update let me know if it helps
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: MissyNL on June 07, 2011, 07:12:43 AM
Nice :)

does the member also have option to enable / disable?

I can imagine that the member would like to have notification for the email... but maybe not for the forum part..
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 07, 2011, 07:13:33 AM
No member options at this time
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on June 07, 2011, 09:39:00 AM
Hello,

I just found out that, with the mod installed login is not working perfectly. Enotify's is the only modification that I see in /sources/LogInOut.php, that's why I think it's the mod's fault.

What happens is that after logging in the user is not redirected to the last page he was reading (HTTP referral) but instead goes to the forum's main page...

Any help?

Thanks!
Posted an update let me know if it helps

That was fast!!

Could you tell me what change you did so I can do it manually? Thanks!!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 07, 2011, 09:44:28 AM
Made a change to Subs.php check the file .xml file for details
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on June 07, 2011, 10:02:12 AM
Made a change to Subs.php check the file .xml file for details

I guess the change is action=viewsmfile-->action=entofiy so that the "remember URL' section reads:

Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=entofiy') === false
$_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

Is this a typo? But even correcting entofiy to enotify makes my forum unable to load... can anyone else confirm?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on June 07, 2011, 10:16:38 AM
What about the other issues? Are you planning to fix them?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 07, 2011, 10:23:18 AM
What about the other issues? Are you planning to fix them?
No. Not aware of anything else.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on June 07, 2011, 11:23:06 AM
Can I ask if the latest version works for you - typo or no typo?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 07, 2011, 11:37:02 AM
Haven't tried just made that quick change typo?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on June 07, 2011, 11:48:15 AM
What about the other issues? Are you planning to fix them?
No. Not aware of anything else.

Really? a lot of people is getting the same error, and i explained an huge bug. Here it is...

This mod is not working fine in SMF 1.1.13

Let's say there are 3 users, A, B and C.

Everyone wrote something in one particular topic, then A answer to this topic but only one of the others can see the notification, once its viewed by B, C will not see it. :(
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on June 07, 2011, 04:22:06 PM
Haven't tried just made that quick change typo?

Well, it broke my forum altogether... :(
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 07, 2011, 04:27:10 PM
With package manager? If so I will check it.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on June 08, 2011, 12:52:18 AM
No, I did it manually; I don't see much point in installing the whole mod just for one tiny change. I find the package manager very inadequate and a weak part of the software since more often than not it will throw errors... a user can't really hope to have lots of mods installed without manual intervention.

But what difference would it make, if I did it with the manager or not?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge D. Fuentes on June 14, 2011, 10:26:07 PM
Nobody has posted a way to help me uninstall this mod... :(
Should I just try and uninstall anyway, even though the Package Manager is coughing up a "TEST FAILED" on the modsettings file?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: eric1234 on June 15, 2011, 03:22:40 AM
Hi, can you make a mod to has this function? It was a function in IPB board where the user are in a topic, whenever someone reply a post in the topic, i will pop out a message in the topic only(if the user was still viewing the topic) that someone has posted something. Just like in the attachment.

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Ilkharnos on June 16, 2011, 10:04:30 AM
Nobody has posted a way to help me uninstall this mod... :(
Should I just try and uninstall anyway, even though the Package Manager is coughing up a "TEST FAILED" on the modsettings file?

Same problem here.

./Sources/ManageSettings.php   Test failed

I tried to remove other mods before trying to uninstall ENotify, but it didn't work. I can't risk uninstalling the mod this way and I need your help. If you have an idea about how to solve this problem, I would be grateful.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Gryzor on June 16, 2011, 10:12:20 AM
It's my view that the SMF package manager sucks big, pure and simple. It only works until you install the first modification, after that it's all up to luck. It's very unfortunate and, lately, I've been installing mods manually because the manager just screws things up.

You can do the uninstall, nothing will be hurt, really, but you need to go into the files by hand and remove the mod's edits yourself.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on June 16, 2011, 10:13:37 AM
Has anyone else been getting various error messages in the log file from this mod? The reference page is "...forum/index.php?action=enotify" and the errors are varied on things that do work. It only lists for "Guest", which means it's probably a bot trying to access the enotify system directly.

Any ideas?

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on June 16, 2011, 10:33:19 AM
For those with issues uninstalling, I personally run an exact duplicate of my live site (code/templates) for development/testing, you can then try the mod install/uninstall or manual edits without having to worry about borking your live site.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Kolya on June 17, 2011, 06:49:06 AM
Has anyone else been getting various error messages in the log file from this mod? The reference page is "...forum/index.php?action=enotify" and the errors are varied on things that do work. It only lists for "Guest", which means it's probably a bot trying to access the enotify system directly.

Yes, when I had this mod installed a whole bunch of bots started constantly accessing enotify, despite the fact they shouldn't even be able to see it since checking for new posts and PMs is obviously a members only feature. I wrote about this and other downsides of enotify (server overload by design, impossible uninstall) here before. (http://www.simplemachines.org/community/index.php?topic=343151.msg2943213#msg2943213)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on June 20, 2011, 01:13:22 PM
vbgamer45, can you tell me how to place the [X] (close button) as the first button that pops up?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on June 20, 2011, 05:51:22 PM
vbgamer45, can you tell me how to place the [X] (close button) as the first button that pops up?

Yeah i need that too. i think that change would be very useful.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on June 22, 2011, 12:27:24 AM
vbgamer45, can you tell me how to place the [X] (close button) as the first button that pops up?

Yeah i need that too. i think that change would be very useful.

Bump for this option :-\
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: IDunc on June 23, 2011, 10:07:44 AM
Fatal error: Cannot redeclare enotify() (previously declared in /home/mwhead/public_html/Sources/ManageSettings.php:2163) in /home/mwhead/public_html/Sources/ManageSettings.php on line 2755

With Enotify installed with no Test Failures, I get this message when I try to access Admin -> Core Features, Admin -> Features and Options, and Admin -> Misc.

Please help!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 23, 2011, 01:20:31 PM
Looks like was installed twice recheck your files you the package parser to find which files were modified and remove the duplicate code
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: IDunc on June 23, 2011, 01:24:57 PM
I don't know what a package parser is....
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 23, 2011, 01:27:02 PM
Go on the modsite and find the manual install instructions for this mod then edit the files in reverse
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: IDunc on June 23, 2011, 01:45:24 PM
Frick this is way too hard!!!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on June 26, 2011, 08:27:27 PM
I get this error in my error log only from one of my members.

Quote
Wrong value type sent to the database. Integer expected. (enot_time)

Any ideas? Solutions? Reasons?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on June 26, 2011, 08:34:47 PM
Do you have a line number/file
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on June 26, 2011, 08:41:02 PM
Sorry i removed all of my errors to see if im gonna get the same errors again. But this is what i could find out when i clicked on "Back Button"
Ask me if you need any translation.

http://www.site.com/forum/index.php?action=enotify
Filtreyi Uygula: Sadece aynı iletiye ait hata iletilerini görüntüle
Wrong value type sent to the database. Integer expected. (enot_time)
Function: ENotifyUpdateUnreadReplies
Filtreyi Uygula: Sadece bu dosyaya ait hataları göster
Dosya: /home/site/public_html/forum/Sources/ENotify.php
Satır: 70
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Harvest on July 02, 2011, 05:57:54 PM
I seem to get an error for one perticular user:
Quote
http://forum.sevenstring.pl/index.php?action=enotify8:
Undefined index: id_member
File: forum.sevenstring.pl/Sources/Security.php
Line: 231

Do you have any ideas what could cause this error?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: hcfwesker on July 06, 2011, 12:06:16 AM
What's the edit to remove the copyright.  The copyright has nothing to do with this MOD being installed.

EDIT: 

Just decided to uninstall.  I'd always give credit for a MOD author, but not a backlink to a site for advertisement :P
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on July 06, 2011, 10:06:35 AM
I really like this mod, and have enhanced it a bit to work more completely with the rest of my site. However, I have had to disable it, and will have to remove it if the constant errors from "Guests" accessing the forum issue isn't fixed. As it's been mentioned before, a Guest shouldn't even be able to access ENotify.

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OCJ on July 07, 2011, 09:32:21 AM
Everyone seems to like this mod (on our site) but also getting a lot of error messages - 600 this evening.

This is from logged in users but they have permission restrictions until they complete their membership;

http://#######.com/events/index.php?action=enotify
No valid boards were selected!


Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PenelopeQ on July 08, 2011, 11:01:47 AM
My servere deactivated my site due to overload.

I have been running a thread here: http://www.simplemachines.org/community/index.php?topic=441509.0;all

Someone pointed out this thread here http://www.simplemachines.org/community/index.php?topic=420223.msg2938099#msg2938099
where there was an issue with enotify

Eveything looked okay in my settings.php so I next thought enotify could be the problem. I uninstalled it and deleted it. A couple minutes later I got an enotify pop-up notice? Huh...I'd just deleted it--after uninstalling. My host activated me just so I could uninstall it and see if that was the issue.

The overload issue is continuing, but I am not certain that enotify is not the problem since I still had activity from it.

So I don't know what to do now?
Sorry, but I wasn't liking enotify anyway--it was constantly sending notices from threads I had posted on months ago and it was notofying me of months-old responses. And there were tons of notices--since it was going back months I guess there would be tons.

So did enotify change something in my other files that I need to fix?
What can I do now?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on July 13, 2011, 11:10:18 AM
DO NOT INSTALL THIS MOD, IT BRINGS A TERRIBLE HEADACHE!!!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 13, 2011, 12:38:30 PM
DO NOT INSTALL THIS MOD, IT BRINGS A TERRIBLE HEADACHE!!!
Why?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Kolya on July 13, 2011, 02:25:40 PM
Maybe you missed that several people in this thread had their websites closed down due to the massive abuse of resources by this mod.
Or the fact that this mod provably opens up access to member functions for bots.
And that it doesn't uninstall correctly as noted by a lot of people in this thread.
Not to mention the link to an advertising site that it places in the forum footer.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 13, 2011, 02:30:10 PM
Resources is not the issue at all as long as you have high timeouts. That is poor hosting otherwise this is mod is without any issues.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Kolya on July 13, 2011, 03:06:23 PM
When people can run SMF without problems and then get kicked by their host after installing this mod, it's not poor hosting.
By default Enotify requests and then displays the PMs and new messages of every member online every 10 seconds. That by itself is a massive increase of resource usage.

And my other points stand. I have proven in this thread before that Enotify gets accessed by guests and bots which further increases the resource needs and calls in question the security of this mod, as these are member functions.

Many others have described how Enotify doesn't uninstall correctly and they continue to have problems with bots accessing Enotify after uninstallation.

I'll give you that the advertising link is an ethical question which might be arguable.

The least you could do is put up a warning on the Enotify mod page that this mod significantly increases resource usage and should preferably be used on a self-hosted site to avoid problems with hosts, like the ones we've seen.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on July 14, 2011, 03:24:45 AM
When people can run SMF without problems and then get kicked by their host after installing this mod, it's not poor hosting.
By default Enotify requests and then displays the PMs and new messages of every member online every 10 seconds. That by itself is a massive increase of resource usage.

People need to learn to research mod's and RTFM (including comments) before installing.

Quote
And my other points stand. I have proven in this thread before that Enotify gets accessed by guests and bots which further increases the resource needs and calls in question the security of this mod, as these are member functions.

In the day of context sensitive advertising and endless browser add-ons, in page links ( to enotify) is passed to bots for many reasons and is not exclusive to enotify.

Quote
Many others have described how Enotify doesn't uninstall correctly and they continue to have problems with bots accessing Enotify after uninstallation.

Any mod can have issues uninstalling, if people use modules they need to learn how to do it manually.

Quote
I'll give you that the advertising link is an ethical question which might be arguable.

You must be joking, countless themes include copyright links, and several modules. You can pay a donation to remove some of them.

Quote
The least you could do is put up a warning on the Enotify mod page that this mod significantly increases resource usage and should preferably be used on a self-hosted site to avoid problems with hosts, like the ones we've seen.

99% of people won't read it anyway.

I love this mod, it's slick. With the correct settings, it didn't negatively affect my resources and it increased the amount of time my users were spending on the site which = increased ad revenue. Thank you vbgamer.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 15, 2011, 01:47:53 AM
Quote
DO NOT INSTALL THIS MOD, IT BRINGS A TERRIBLE HEADACHE!!!

I love this mod. It keeps the members in the forum and keep them active. Yes it pushes the resources a bit but its not because of this mod is bad, its because we are cheap and our shared hosting companies are crappy. If we had a nice VPS this mod is sooo cool!


Quote
Resources is not the issue at all as long as you have high timeouts.

Which timeouts and how do you increase it?



Adding something like this to this mod...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F222%2Fimmiyfscreenshot1.png&hash=e0bcf79b258b62a627b822d13fb58a84)

would be a very nice feature. So we can write stuff for the visitors and put a link for registering.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: !RFAN on July 15, 2011, 03:45:37 AM
i second u^^
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on July 15, 2011, 10:01:34 AM
I also like this mod, and have added my own customizations.

However, until it stops being activated by bots, I've had to disable it. The bot access causes the log file to fill with errors because pages are accessed improperly and thus many variables are not defined.

Has anyone else that is praising it found this problem?

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on July 15, 2011, 12:37:18 PM
Adding something like this to this mod...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F222%2Fimmiyfscreenshot1.png&hash=e0bcf79b258b62a627b822d13fb58a84)

would be a very nice feature. So we can write stuff for the visitors and put a link for registering.

You can parse it and add the code needed
http://custom.simplemachines.org/mods/index.php?mod=3107
(if you want to use that feature now)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 15, 2011, 01:30:43 PM
Quote
You can parse it and add the code needed
http://custom.simplemachines.org/mods/index.php?mod=3107
(if you want to use that feature now)

Adress is broken. There is no mod in the adress.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on July 15, 2011, 01:46:54 PM
Thats pretty odd... where you get the screenshot then?

Its used in that mod (not aproved yet, but I guess it is visible with a warning)

Edit: it looks like only the autor can see it... lol... anyway where you found the screenshot??
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 15, 2011, 01:50:49 PM
I got the shot from one of the espanol topics :D
No habla espanol :D
Therefore i just got the picture and put it here :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on July 15, 2011, 02:04:28 PM
I got the shot from one of the espanol topics :D
No habla espanol :D
Therefore i just got the picture and put it here :)

Ohh, I see, hehehe... http://www.simplemachines.org/community/index.php?topic=418697.0
There you can download the file and watch the code/files, it is not too complicated to install (if you are using enotify do not add the jquery library call again).
The latest/better is version 0.2.2 (0.2 for smf < 2.0 gold)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 15, 2011, 02:12:13 PM
I dont even understand what is the topic about there? Therefore i wouldnt really want to download and install the file. But if there is a mod will be coming up, i can definetely check that out. Just lemme know the link when its approved.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 16, 2011, 10:30:57 PM
So right now i have 3 issues about this mod if somebody help me about them i would be very grateful...

1- How to place the [X] (close button) as the first button that pops up? so like on the top instead of bottom.



2- adding this to enotify would be very nice and useful.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F222%2Fimmiyfscreenshot1.png&hash=e0bcf79b258b62a627b822d13fb58a84)



3- I "still" get lots of this error in my error log.
http://www.site.com/forum/index.php?action=enotify
Wrong value type sent to the database. Integer expected. (enot_time)
Function: ENotifyUpdateUnreadReplies
Filtreyi Uygula: Sadece bu dosyaya ait hataları göster
Dosya: /home/site/public_html/forum/Sources/ENotify.php
Line: 70

This is the part of the ENotify.php
It maybe useful

Code: [Select]
      // This is our query we use ignore to make sure we don't get an error if the record exists (unique field defined to avoid the extra select query)
      $smcFunc['db_insert']('ignore',
    '{db_prefix}log_enotify_replies',
    array('enot_item_id' => 'int', 'enot_title' => 'string-255', 'enot_time' => 'int', 'enot_link' => 'text', 'enot_sender' => 'string-255', 'enot_sender_link' => 'text', 'id_member' => 'int'),
    array($topic['last_post']['id'], $topic['last_post']['subject'], $topic['last_post']['timestamp'], $topic['last_post']['href'], $topic['last_post']['member']['name'], $topic['last_post']['member']['href'], $context['user']['id']),
    array('id_enot')
    );    <<<< LINE 70
    }
  }
}
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 18, 2011, 02:00:18 AM
Any help?
I need help especially for the issue #1
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Jorge_CS_ on July 18, 2011, 04:18:11 PM
This mod is not working fine in SMF 1.1.13

Let's say there are 3 users, A, B and C.

Everyone wrote something in one particular topic, then A answer to this topic but only one of the others can see the notification, once its viewed by B, C will not see it. :(

What about this vbgamer?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 18, 2011, 04:23:08 PM
I don't know busy at the moment may look at it in a couple weeks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on July 18, 2011, 07:29:21 PM
So right now i have 3 issues about this mod if somebody help me about them i would be very grateful...

1- How to place the [X] (close button) as the first button that pops up? so like on the top instead of bottom.

see http://stanlemon.net/projects/jgrowl.html (position?)

2- adding this to enotify would be very nice and useful.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F222%2Fimmiyfscreenshot1.png&hash=e0bcf79b258b62a627b822d13fb58a84)

Until vbgamer have more time you may want to watch the files that I have pointed you before: http://www.simplemachines.org/community/index.php?topic=418697.0
It is not too dificult to implement by your own adding a few codes and files

(I have no idea when the smf team will aprove that mod)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 18, 2011, 09:02:00 PM
So right now i have 3 issues about this mod if somebody help me about them i would be very grateful...

1- How to place the [X] (close button) as the first button that pops up? so like on the top instead of bottom.

see http://stanlemon.net/projects/jgrowl.html (position?)

2- adding this to enotify would be very nice and useful.

Until vbgamer have more time you may want to watch the files that I have pointed you before: http://www.simplemachines.org/community/index.php?topic=418697.0
It is not too dificult to implement by your own adding a few codes and files

(I have no idea when the smf team will aprove that mod)

Cool... Thank you...
Now my major problem is the X... Do you think you can help me out on how to put the X(Close) button come up on the top, instead of bottom?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfturk.net%2Fforum%2Findex.php%3Faction%3Ddlattach%3Btopic%3D6841.0%3Battach%3D913&hash=d5b36e10df8caa8d3f57290890cbd778)

I would really appreciate... if you can do this.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on July 18, 2011, 10:38:51 PM
Code: [Select]
Now my major problem is the X... Do you think you can help me out on how to put the X(Close) button come up on the top, instead of bottom?
I really need this also, many members are starting to complain :-\
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: David111567 on July 21, 2011, 02:15:23 AM
Can anybody tell me why this mod doesn't work in Firefox or Safari?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OCJ on July 21, 2011, 02:55:16 AM
I use firefox and it works fine - maybe your security setting and popup rules.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 25, 2011, 02:27:04 AM
Quote
How to place the [X] (close button) as the first button that pops up? so like on the top instead of bottom.

I found the solution guys!

add this
Code: [Select]
div.jGrowl:first-child {
margin-top: 18px;
}

div.jGrowl div.jGrowl-closer {
position: fixed;
top: 0;
}

at the end  of jquery.jgrowl.css

Thas it!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 25, 2011, 02:32:45 AM
Can somebody please tell me how to add an option for each member to turn off this feature?
This is very critical for me!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ms_ukyankee on July 25, 2011, 02:49:05 AM
Can somebody please tell me how to add an option for each member to turn off this feature?
This is very critical for me!

I posted 1.x code for the member option here:
http://www.simplemachines.org/community/index.php?topic=343151.msg3044440;topicseen#msg3044440
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 25, 2011, 02:57:13 AM
How do i modify this into 2.0? Codes are different.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PenelopeQ on July 25, 2011, 10:43:41 AM
I uninstalled and delted the mod. I was just trying a few mods to see if we liked them. I may not have had the settings right and don't know how to use it. But no one likes it.
The problem is, it is still functioning. My people don't like the black boxes popping up all the time and want it gone--but technically it should be gone.

What do I do?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on July 30, 2011, 10:36:06 PM
Quote
How to place the [X] (close button) as the first button that pops up? so like on the top instead of bottom.

I found the solution guys!

add this
Code: [Select]
div.jGrowl:first-child {
margin-top: 18px;
}

div.jGrowl div.jGrowl-closer {
position: fixed;
top: 0;
}

at the end  of jquery.jgrowl.css

Thas it!


No it actually didnt work.
Can somebody help about this please? I just want to move the X (closing div) to top.

This is the related code in themes/default/jquery.jgrowl.css
Code: [Select]
div.jGrowl div.jGrowl-closer {
height: 15px;
padding-top: 4px;
padding-bottom: 4px;
cursor: pointer;
font-size: 11px;
font-weight: bold;
text-align: center;
}

and this is the related code in themes/default/enotify.js

Code: [Select]
(function($){$.jGrowl=function(m,o){if($('#jGrowl').size()==0)$('<div id="jGrowl"></div>').addClass($.jGrowl.defaults.position).appendTo('body');$('#jGrowl').jGrowl(m,o);};$.fn.jGrowl=function(m,o){if($.isFunction(this.each)){var args=arguments;return this.each(function(){var self=this;if($(this).data('jGrowl.instance')==undefined){$(this).data('jGrowl.instance',$.extend(new $.fn.jGrowl(),{notifications:[],element:null,interval:null}));$(this).data('jGrowl.instance').startup(this);}
if($.isFunction($(this).data('jGrowl.instance')[m])){$(this).data('jGrowl.instance')[m].apply($(this).data('jGrowl.instance'),$.makeArray(args).slice(1));}else{$(this).data('jGrowl.instance').create(m,o);}});};};$.extend($.fn.jGrowl.prototype,{defaults:{pool:0,header:'',group:'',sticky:false,position:'top-right',glue:'after',theme:'default',corners:'10px',check:250,life:3000,speed:'normal',easing:'swing',closer:true,closeTemplate:'&times;',closerTemplate:'<div>[ X ]</div>',log:function(e,m,o){},beforeOpen:function(e,m,o){},open:function(e,m,o){},beforeClose:function(e,m,o){},close:function(e,m,o){},animateOpen:{opacity:'show'},animateClose:{opacity:'hide'}},notifications:[],element:null,interval:null,create:function(message,o){var o=$.extend({},this.defaults,o);this.notifications[this.notifications.length]={message:message,options:o};o.log.apply(this.element,[this.element,message,o]);},render:function(notification){var self=this;var message=notification.message;var o=notification.options;var notification=$('<div class="jGrowl-notification'+((o.group!=undefined&&o.group!='')?' '+o.group:'')+'"><div class="close">'+o.closeTemplate+'</div><div class="header">'+o.header+'</div><div class="message">'+message+'</div></div>').data("jGrowl",o).addClass(o.theme).children('div.close').bind("click.jGrowl",function(){$(this).parent().trigger('jGrowl.close');}).parent();(o.glue=='after')?$('div.jGrowl-notification:last',this.element).after(notification):$('div.jGrowl-notification:first',this.element).before(notification);$(notification).bind("mouseover.jGrowl",function(){$(this).data("jGrowl").pause=true;}).bind("mouseout.jGrowl",function(){$(this).data("jGrowl").pause=false;}).bind('jGrowl.beforeOpen',function(){o.beforeOpen.apply(self.element,[self.element,message,o]);}).bind('jGrowl.open',function(){o.open.apply(self.element,[self.element,message,o]);}).bind('jGrowl.beforeClose',function(){o.beforeClose.apply(self.element,[self.element,message,o]);}).bind('jGrowl.close',function(){$(this).data('jGrowl').pause=true;$(this).trigger('jGrowl.beforeClose').animate(o.animateClose,o.speed,o.easing,function(){$(this).remove();o.close.apply(self.element,[self.element,message,o]);});}).trigger('jGrowl.beforeOpen').animate(o.animateOpen,o.speed,o.easing,function(){$(this).data("jGrowl").created=new Date();}).trigger('jGrowl.open');if($.fn.corner!=undefined)$(notification).corner(o.corners);if($('div.jGrowl-notification:parent',this.element).size()>1&&$('div.jGrowl-closer',this.element).size()==0&&this.defaults.closer!=false){$(this.defaults.closerTemplate).addClass('jGrowl-closer').addClass(this.defaults.theme).appendTo(this.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){$(this).siblings().children('div.close').trigger("click.jGrowl");if($.isFunction(self.defaults.closer))self.defaults.closer.apply($(this).parent()[0],[$(this).parent()[0]]);});};},update:function(){$(this.element).find('div.jGrowl-notification:parent').each(function(){if($(this).data("jGrowl")!=undefined&&$(this).data("jGrowl").created!=undefined&&($(this).data("jGrowl").created.getTime()+$(this).data("jGrowl").life)<(new Date()).getTime()&&$(this).data("jGrowl").sticky!=true&&($(this).data("jGrowl").pause==undefined||$(this).data("jGrowl").pause!=true)){$(this).trigger('jGrowl.close');}});if(this.notifications.length>0&&(this.defaults.pool==0||$(this.element).find('div.jGrowl-notification:parent').size()<this.defaults.pool)){this.render(this.notifications.shift());}
if($(this.element).find('div.jGrowl-notification:parent').size()<2){$(this.element).find('div.jGrowl-closer').animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){$(this).remove();});};},startup:function(e){this.element=$(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){$(e).data('jGrowl.instance').update();},this.defaults.check);if($.browser.msie&&parseInt($.browser.version)<7&&!window["XMLHttpRequest"])$(this.element).addClass('ie6');},shutdown:function(){$(this.element).removeClass('jGrowl').find('div.jGrowl-notification').remove();clearInterval(this.interval);}});$.jGrowl.defaults=$.fn.jGrowl.prototype.defaults;})(jQuery);
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on August 01, 2011, 01:02:31 PM
Why did it work in the beginning and then stopped? :-\
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on August 01, 2011, 05:34:23 PM
Good question. I donno. I think i got confused with the X sign which comes on top right corner of every popup.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on August 06, 2011, 08:41:03 PM
Wrong value type sent to the database. Integer expected. (enot_time)
Function: ENotifyUpdateUnreadReplies
Filters: Sadece bu dosyaya ait hataları göster
File: /home/site/public_html/forum/Sources/ENotify.php
Line: 70

Is there a solution for this?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on August 09, 2011, 12:45:37 PM
No solution at this time
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on August 09, 2011, 12:51:54 PM
So is everybody getting tons of this error? or am i the only one? I mean what is the cause of it?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on August 09, 2011, 12:54:27 PM
Don't know don't have the time to look into now.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on August 10, 2011, 08:42:53 AM
To get rid of all the error messages in your logs from guests and bots trying to access enotify:

1) open the file Sources/ENotify1.php
2) find the function ENotifyMain
3) After the line
   
Code: [Select]
is_not_guest();
put:
   
Code: [Select]
if ($context['user']['is_logged']) {4) at the end of the function, before
      
Code: [Select]
// We use this to deactivate the SMF Wrapping Templates   put
     
Code: [Select]
}
It just skips over the calls to do things if the person isn't logged in.

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on August 10, 2011, 12:55:36 PM
Thank you. I also have this error.

http://www.site.com/forum/index.php?amp;action=enotify

8: Undefined index: allow_moderation_center

file: /home/site/public_html/forum/Sources/Subs.php
line: 4448
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on August 14, 2011, 09:46:08 PM
Is it possible to configure this so that the last 10 updates are shown only.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on August 15, 2011, 11:37:01 AM
Is it possible to configure this so that the last 10 updates are shown only.
In ENotifyLoad() from Enotify.php

it's probably sufficient to change
ORDER BY enot_time DESC , to   ORDER BY enot_time DESC LIMIT 10',
in the two queries.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ubaidrehman on August 16, 2011, 08:49:28 AM
hey a big problem i m using vertex theme ! bulletinblips.com the problem when i installed this working fine but when someone reply me ! its appears in the box and vanish but after that reply my theme crush ? its not even working properly please guide me how to use it with my theme ? drop down menu not closing now my hollow ball is not moving as well !
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sci-Fi_Fan on August 17, 2011, 02:10:28 PM
Hi, just a (hopefully) quick question:

Is there a way to change the username displayed on the alerts from the actual login name to the user's display name? For example, my login name might be "john12345" but my display name is "John Smith" - I'd like "John Smith" to show up on eNotify alerts instead of "john12345."

Thanks in advance for any help.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on August 22, 2011, 09:33:15 PM
What does this mean: Expiration duration of log items, what's the best number to put so the server doesn't get affected.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: babalola olasehinde on August 29, 2011, 09:50:08 PM
i am seeing enotify by createsAforum.com 3 times and on 3 different lines in my footer and now i cannot access features and options and also modefication settings in my admin panel, it always come-up with this error

Fatal error: Cannot redeclare enotify() (previously declared in /
home/seeker/public_html/Sources/ManageSettings.php:2254) in /
home/seeker/public_html/Sources/ManageSettings.php on
line 2387

pls what can i do to this,becos i tried uninstalling this mod, it un-install but i am still get the error

thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on August 29, 2011, 09:57:18 PM
Attach your Sources/QueryString.php and Sources/ManageSettings.php

This occurred since it was installed over another install of enotify which caused the code to be installed twice.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: babalola olasehinde on August 29, 2011, 10:21:36 PM
i just attached the 2 files QueryString.php and ManageSettings.php

thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on August 30, 2011, 06:04:06 AM
beware this mod could become a serious hog when your posts count rise above 100k. Indeed this is caused by the Create Temporary tables used in Recent.php, which is switched on when posts count rise avove 100k.
In my experience this trick is absolutly not necessary and could be severely counterproductive, so if you encounter severe performance problems edit the Recent.php and raise the 100k limit to 1M or whatever.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on August 30, 2011, 09:11:59 AM
Fixed files attached
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on August 30, 2011, 02:48:35 PM
beware this mod could become a serious hog when your posts count rise above 100k. Indeed this is caused by the Create Temporary tables used in Recent.php, which is switched on when posts count rise avove 100k.
In my experience this trick is absolutly not necessary and could be severely counterproductive, so if you encounter severe performance problems edit the Recent.php and raise the 100k limit to 1M or whatever.

How?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on August 30, 2011, 04:59:53 PM
Check the two lines in Recent.php with
Code: [Select]
$modSettings['totalMessages'] > 100000 and replace the 100000 by whatever value you want which is greater than your number of posts. This code is particularly inneficient and cause many problems not only with Enotify.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on August 30, 2011, 09:01:08 PM
Check the two lines in Recent.php with
Code: [Select]
$modSettings['totalMessages'] > 100000 and replace the 100000 by whatever value you want which is greater than your number of posts. This code is particularly inneficient and cause many problems not only with Enotify.

Thanks.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on August 30, 2011, 09:13:16 PM
Can somebody PLEASE make the "X [Close]" button appear first before any recent message is being listed.??? I desperetaly need it. My members complaint so much about this and i feel like i will end up uninstalling this mod only because they cant disable this feature nor, they can close it easily.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on August 31, 2011, 06:42:56 AM
Why do they complain exactly ?
Because of scrolling down to reach the "close all" ?

If so you can limit the number of items displayed at a time by using
$.jGrowl.defaults.pool = 5; in the js inserted in index.template.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on August 31, 2011, 06:50:57 AM
You need to modify the jGrowl source.
Change
Code: [Select]
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
.bind("click.jGrowl", function() {
$(this).siblings().trigger("jGrowl.beforeClose");
into
Code: [Select]
.prependTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
.bind("click.jGrowl", function() {
$(this).siblings().trigger("jGrowl.beforeClose");
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on August 31, 2011, 09:33:59 AM
You need to modify the jGrowl source.
Change
Code: [Select]
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
.bind("click.jGrowl", function() {
$(this).siblings().trigger("jGrowl.beforeClose");
into
Code: [Select]
.prependTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
.bind("click.jGrowl", function() {
$(this).siblings().trigger("jGrowl.beforeClose");


Which file is this code exactly? I couldnt find it.
Is this gonna make "Close All" button appear the first, before the messages on the top?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on August 31, 2011, 10:11:56 AM
check enotify.js (i heavily modded this mod but this is the file to check.)

Yes it would append the [X] before the notification rahter than after
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on September 01, 2011, 02:32:26 AM
I couldnt find this code so i can change it.
Quote
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
               .bind("click.jGrowl", function() {
                  $(this).siblings().trigger("jGrowl.beforeClose");

Can you please tell me the exact name and path of the file?
 Because i couldnt find it in enotify.js either.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on September 01, 2011, 05:26:07 PM
I couldnt find this code so i can change it.
Quote
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
               .bind("click.jGrowl", function() {
                  $(this).siblings().trigger("jGrowl.beforeClose");

Can you please tell me the exact name and path of the file?
 Because i couldnt find it in enotify.js either.

I found it but it didn't work ???
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on September 01, 2011, 05:31:52 PM
Why do they complain exactly ?
Because of scrolling down to reach the "close all" ?

If so you can limit the number of items displayed at a time by using
$.jGrowl.defaults.pool = 5; in the js inserted in index.template.php

Could you explain this better. This mod doesn't make modifications to index.template.php.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on September 01, 2011, 05:44:44 PM
Would probably in sources/load.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on September 01, 2011, 07:35:20 PM
I couldnt find this code so i can change it.
Quote
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
               .bind("click.jGrowl", function() {
                  $(this).siblings().trigger("jGrowl.beforeClose");

Can you please tell me the exact name and path of the file?
 Because i couldnt find it in enotify.js either.

I found it but it didn't work ???

Its not in enotify.js
Where is it exactly?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on September 02, 2011, 12:24:08 AM
I couldnt find this code so i can change it.
Quote
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
               .bind("click.jGrowl", function() {
                  $(this).siblings().trigger("jGrowl.beforeClose");

Can you please tell me the exact name and path of the file?
 Because i couldnt find it in enotify.js either.

I found it but it didn't work ???

Its not in enotify.js
Where is it exactly?

It is, at the end, look closer, took me sometime to find it.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on September 04, 2011, 04:41:29 PM
Attached is my enotify.js

Can you show my where is
Code: [Select]
.appendTo(self.element).animate(this.defaults.animateOpen, this.defaults.speed, this.defaults.easing)
               .bind("click.jGrowl", function() {
                  $(this).siblings().trigger("jGrowl.beforeClose");
   

Because i cant find it at all???
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on September 05, 2011, 05:41:08 AM
Personally i use the latest version of jGrowl javascript file not the one shipping with the mod, i suggest you do the same as the one in the mod is quite old. You need to replace the enotify.js file with the jgrowl.js file and you are good to go.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: niires1204 on September 08, 2011, 07:47:50 AM
Code: [Select]

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /home/wwwkill/public_html/Sources/Subs.php on line 797

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /home/wwwkill/public_html/Sources/Subs.php on line 803

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /home/wwwkill/public_html/Sources/Subs.php on line 821

This is the error which i get when i try to make database
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on September 08, 2011, 09:13:46 AM
It's a php issue.
Verify your timezone settings in php.ini
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OCJ on September 13, 2011, 10:42:01 AM
I use a lot of vbgamers mods (no smiley bowing - wish there was one)... but every time i check new replies to enotify its always busy  :P
Does this mod carry a health warning? server and admin?

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on September 14, 2011, 03:59:58 AM
Check my recommandation about the 100k messages limit. Indeed the create temporary table used by SMF is a server killer, it raises the server load to very high level, disabling it solves most performance issues encountered with this mod.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: kb3rcl on September 15, 2011, 11:34:39 PM
First off, I absolutely love this mod, as do many people on my forum.  However, each time I try to apply it, it works great....until I start getting 503 Errors due to capacity loads...

At first, I assumed it was my web host having issues, but as soon as I disabled ENotify, the issues went away, and they return each time I re-apply the mod.

I thought it may have to do with butch's mention of the 100K thing, however, our forum is quite small.  The highest post count is only ~500, and we never have more than 25-50 people online at a time.

Any idea?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on September 16, 2011, 04:06:11 AM
The 100k isssue applies to the total number of messages posted since the beginning of your forum, it's not a per/day or per thread value.

It was the root of all my issues with this mod. Indeed i tested it on my beta board which is a subset of my live board and did not encounter any issue (i was under 100k messages) and when applying the mod on my live board the cpu load skyrocketed and i easily traced the issue to the temporary table creation through innotop.

It creates a lot of contentions especially with persistant connections. Indeed temporary tables are dropped when the connection close yet with persistant connections those tables are not dropped automatically as persistant connections do not close.

The whole temporary table creation is an ugly mess that causes more troubles than it solves, i firmly believe it should be removed from newer version of SMF.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on September 16, 2011, 09:55:27 PM
The 100k isssue applies to the total number of messages posted since the beginning of your forum, it's not a per/day or per thread value.

It was the root of all my issues with this mod. Indeed i tested it on my beta board which is a subset of my live board and did not encounter any issue (i was under 100k messages) and when applying the mod on my live board the cpu load skyrocketed and i easily traced the issue to the temporary table creation through innotop.

It creates a lot of contentions especially with persistant connections. Indeed temporary tables are dropped when the connection close yet with persistant connections those tables are not dropped automatically as persistant connections do not close.

The whole temporary table creation is an ugly mess that causes more troubles than it solves, i firmly believe it should be removed from newer version of SMF.

Could you tell me how to disable the temporary creation of tables? I'm using 1.x
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on September 17, 2011, 08:25:41 AM
check for the 100000 value in Recent.php. IIRC 1.1.x use the same file as 2.0, and replace 100000 by whatever number is greater than your total number of posts by a large margin.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: soulgeek on October 02, 2011, 11:26:24 PM
I have used Enotify our forum, which was hoster on Shared Host.

And i had to take it down, Enotify causes many processors running in BAckend, its resource consuming.

Even on VPS it causes Resourses.

New Version Any better?

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Shrink on October 03, 2011, 12:01:12 AM
Can we attach Facebook account to this mod.?? ???
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 03, 2011, 01:24:02 AM
Can we attach Facebook account to this mod.?? ???
Don't understand. What are you trying to do
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on October 03, 2011, 03:45:06 AM
Adding notifications from FB account into SMF ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: kenng on October 25, 2011, 03:37:23 AM
something it works something it don't. It doesnt work everytime. best option?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on October 25, 2011, 03:59:21 AM
This mod have a huge potential but it definetely needs to be upgraded.

1- Each user should be able to change their settings and turn it on/off
2- X (close) button should definitely appear on the top. Not the bottom of 50 new warnings every time a person signs in.
3- Adding the fb account into smf would also be pretty cool.
4- It can also be combined with this the "Invitation Message In Your Face (IMIYF)" mod because its about the same thing but for visitors only.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: thegto on December 03, 2011, 06:23:45 AM
Hi, i'm going to install on my 1.1.14
of you version ENotify2.0.1

but I got an error

   Execute Modification    ./Sources/ModSettings.php    Test failed
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on December 03, 2011, 04:26:30 PM
Hi, i'm going to install on my 1.1.14
of you version ENotify2.0.1

but I got an error

   Execute Modification    ./Sources/ModSettings.php    Test failed

I disabled this mod a long time ago because it eats up your resources like crazy.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: die2mrw007 on December 04, 2011, 04:06:06 PM
Unable to integrate "sa facebook connect" plugin and "Enotify" plugin both at a forum. It clashes or give errors after integration.

This is the error:

Code: [Select]
({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })

Please help me install both this plugin as I need it much !!!

Where might be the issue ?
If anyone guide me which file should be modified, I will do it and try :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sefket on December 10, 2011, 11:09:59 PM
Parse error: syntax error, unexpected $end, expecting '(' in /home/thrscom/public_html/foetest/Sources/ModSettings.php on line 340

1.1.15
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: snadge on December 15, 2011, 05:45:31 PM
getting hundreds of errors per hour with this mod...works though

Apply Filter: Only show the error messages of this URL
http://www.tech4talk.net/index.php?action=enotify
Apply Filter: Only show the errors with the same message
8: Undefined index: title
Apply Filter: Only show the errors from this file
File: /home/techtalk/public_html/Themes/ds-natural_20/index.template.php
Line: 364


can anyone tell me why?  is it to do with the 10 second refresh/check?

thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 15, 2011, 05:49:03 PM
Whats on line
File: /home/techtalk/public_html/Themes/ds-natural_20/index.template.php
Line: 364
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: snadge on December 15, 2011, 06:02:36 PM
Hi vbgamer45

just want to say thanks for all your mods, they are brilliant.

anway, in Dreamweaver at line 364 for that PHP file is

               <a class="', $button['active_button'] ? 'active ' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '><span>', $button['title'], '</span></a>';

thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 15, 2011, 06:56:27 PM
Looks like a theme issue since $button['title'] is not getting defined in that case
You can try code like
if (!isset($button['title']))
$button['title'] = '';
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: snadge on December 15, 2011, 07:02:12 PM
thanks for reply.

exactly where.how would i put that into the existing code? (i dont know PHP etc..) but i could insert it if i was told what to remove and where to add it.

thanks again
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 15, 2011, 07:15:41 PM
I would put above before the echo statement.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: snadge on December 15, 2011, 07:25:54 PM
sorry I still unclear as to where it goes...

here is code from it if it helps you explain what to change?:

Code: [Select]
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

echo '
<ul id="topnav">';

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '><span>', $button['title'], '</span></a>';

if (!empty($button['sub_buttons']))
{
echo '
<ul>';

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</a>';
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 15, 2011, 07:38:41 PM
Right after

   foreach ($context['menu_buttons'] as $act => $button)
   {
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: snadge on December 15, 2011, 07:46:50 PM
I put it right where you said and all my buttons/links disappeared apart from LOGOUT

here is what it looked like:

Code: [Select]
foreach ($context['menu_buttons'] as $act => $button)
if (!isset($button['title']))
$button['title'] = '';
{
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '><span>', $button['title'], '</span></a>';
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sefket on December 15, 2011, 08:06:22 PM
Aw, you ignored my reply or probably didn't see.

Parse error: syntax error, unexpected $end, expecting '(' in /home/thrscom/public_html/foetest/Sources/ModSettings.php on line 340

1.1.15
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 15, 2011, 09:53:20 PM
After the {
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: snadge on December 16, 2011, 06:39:54 AM
ok thanks

here is what its at now and forum seems to be operating just fine, is this correct?
will keep eye on errors:

Code: [Select]
foreach ($context['menu_buttons'] as $act => $button)
{
if (!isset($button['title']))
$button['title'] = '';
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '><span>', $button['title'], '</span></a>';

thanks again VBgamer45
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 16, 2011, 03:46:43 PM
yup that looks good
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: meetdilip on December 17, 2011, 03:27:35 PM
Brillaint work. Thanks a lot. Would be great, if you can add FB like ever last notification like 5, 2 etc so that people know there are alerts even when the black box disappears.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: snadge on December 17, 2011, 04:53:10 PM
now having new problems, SA Facebook and Twitter integration mods login wont work with E-NOTIFY installed - when its installed and try to login using FB or TW buttons we get a white page with:
({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })

when E-Notify is uninstalled the login works fine

I have told SA about this too

if I have uninstalled E-Notify, will I have to remove that code I added to try and help with the errors?

thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: babalola olasehinde on January 06, 2012, 11:21:32 AM
pls i mistakingly install this mod 3 time in my forum and it cause some icon in my admin panel not to open . Now i went back to my package manager to uninstall it ,now i can see only 2 Enotify by CreateAForum.com in my footer even when there is none installed in my package manager, pls what can i do
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on January 06, 2012, 11:29:53 AM
Attach your Sources/QueryString.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: babalola olasehinde on January 07, 2012, 06:28:19 AM
Attach your Sources/QueryString.php
pls see attached file for the Sources/QueryString.php you requested for and this is the error i am always getting in my cpanel

Fatal error: Cannot redeclare enotify()
(previously declared in /home/seeker/
public_html/Sources/
ManageSettings.php:2254) in /home/
seeker/public_html/Sources/
ManageSettings.php on line 2387

 thx
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on January 07, 2012, 10:29:37 AM
Attach ManageSettings.php too

Updated QueryString attached
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: babalola olasehinde on January 07, 2012, 01:42:21 PM
@ vbgamer45 sorry for disturbing you i just realise you have once helped me to solve this particular problem on page 27 and i just used it and it worked well and i can now use all menu on my cpanel but the only problem now is that i may not be able to use this enotify on my forum again until i remove the last enotify showing on my footer . I.e it will 3 before and i use the package manager to uninstall 1 and the solution you gave me above also uninstall another 1, so i am lefte with 1 . Pls what can i do? Thx for your time

pls note that the 2 files you ask  for are already on page 27
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Yağız... on January 07, 2012, 07:14:38 PM
I'm facing a weird problem. For example I have 3 tabs open: X Topic, BoardIndex and Admin Panel. Admin Panel is the last tab I opened. When I go to X Topic and receive a notification, it doesn't show in the active tab (X Topic), but on the last opened tab (Admin Panel). I can't see the notification until I go back to last opened tab. Anyone have the same problem or any idea why this happens?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: akbora on January 15, 2012, 07:20:26 PM
I'm facing a weird problem. For example I have 3 tabs open: X Topic, BoardIndex and Admin Panel. Admin Panel is the last tab I opened. When I go to X Topic and receive a notification, it doesn't show in the active tab (X Topic), but on the last opened tab (Admin Panel). I can't see the notification until I go back to last opened tab. Anyone have the same problem or any idea why this happens?
Dear vbgamer what about this problem. I have the same problem. Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on January 15, 2012, 07:54:13 PM
Not sure if I can fix that one. I think one tab takes control since the script is loaded in three tabs then so it will update one of them.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: SA™ on January 21, 2012, 01:04:29 PM
there is a typo in the code vb both install1.xml and install.xml

Code: [Select]
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=entofiy') === false
should be

Code: [Select]
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=enotify') === false
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on January 21, 2012, 01:49:02 PM
Thanks SA updated and fixed!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Heardy on January 22, 2012, 04:53:20 PM
I'm getting this error when I'm trying to install it.

5.   Execute Modification   ./Sources/Admin.php   Test failed
1.   Replace   ./Sources/Admin.php   Test failed

Could you tell me what code I have to put into Admin.php so I can do it manually? :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: City Builder on February 05, 2012, 11:08:27 AM
Is there an option in the users profiles where they can turn it off?  I looked through my own profile but I could not see the option, maybe I'm blind.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 05, 2012, 11:46:07 AM
I don't believe there is.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on February 05, 2012, 08:16:23 PM
The Alerts Pro mod has that option (at least they can setup wich notifications to receive... if they put all off, it is almost the same)
http://www.smfpacks.com/alertmod
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Heardy on February 07, 2012, 05:05:35 PM
Is there any way to make the notification stay up longer?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 07, 2012, 05:15:17 PM
I think there is timeout setting that can be set in enotify to allow to stay longer. Or at least how quick notifications are checked
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Heardy on February 07, 2012, 06:00:13 PM
I guess you mean in the Enotify.php? I can't find anything that pops out at me to be honest, I'll try searching more but if you could tell me exactly what to look for that would be great!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 07, 2012, 06:03:24 PM
There should be a settings area in the admin panel for entofiy i think under features and options
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Heardy on February 07, 2012, 06:12:02 PM
Oh I found it, thanks!

I was missing the:
Code: [Select]
'enotify' => array('ENotify'),
From my admin.php, added it in and now it works!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 07, 2012, 07:10:59 PM
Glad you got it working!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: braddasexy on February 07, 2012, 07:17:35 PM
Is there a way to put it on custom themes?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 07, 2012, 07:29:04 PM
It should work on custom themes ok.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on February 08, 2012, 03:53:22 AM
When i modified Enotify in order to reduce the load incured to the server, i added the option to stop Enotify from querying the server after X requests. It definitely helps reducing the load when someone opens up 10 tabs in his browser and leave them open all day long w/o even touching them...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: braddasexy on February 08, 2012, 06:18:11 PM
Is there a way to make it leave the notifications up until the person x's them out?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 08, 2012, 06:25:54 PM
Is there a way to make it leave the notifications up until the person x's them out?
No way currently
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on February 09, 2012, 01:23:09 AM
Is there a way to make it leave the notifications up until the person x's them out?

You may try setting sticky to true, no idea if that is what you want
http://stanlemon.net/pages/jgrowl
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on February 09, 2012, 02:24:31 AM
Yes it will do the trick, that's what i use on my server.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: braddasexy on February 10, 2012, 06:37:08 PM
Is there a way to make it leave the notifications up until the person x's them out?

You may try setting sticky to true, no idea if that is what you want
http://stanlemon.net/pages/jgrowl

How would I do that?  I have no clue how to make that setting or where.  Thanks for the help!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on February 10, 2012, 09:03:33 PM
Try on $sourcedir/Load.php

2 lines (two times)
Code: [Select]
$.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
to
Code: [Select]
$.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' , sticky: true });
I have not tested it...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: kachan64 on February 11, 2012, 09:06:13 AM
Can I make the notification for profile comment mods as well?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 11, 2012, 09:41:18 AM
You can make it but it is not built in.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: kachan64 on February 11, 2012, 11:12:12 AM
Thx, wondering what files to I need to edit?
Thx
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Datahopa on February 11, 2012, 09:22:54 PM
This is a really nice mod, been using it on one of my sites for over a year, recently I added a sound effect, just plays a sound when a notification is made, it was easy to do by adding an HTML5 audio tag to the ENotify1.template.php.

Might be an option others would like.

EDIT:
Or maybe not.   
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Datahopa on February 18, 2012, 09:22:29 AM
I’ve been testing the added sound to this Enotify across browsers and think I have it working on them all now. 

The sound will only work in HTML5 browsers but we all have up-to-date browsers don’t we?

To make it work on all boards in the forum I have hard wired the sound URL into the template, not being an expert with SMF there might be a better way of doing it but for me this is working fine, you will need to put your URL in the code. 

You will also need to make a notify.mp3 and a notify.ogg that you up-laod to your site, we need both mp3 and the ogg for cross browser support.

In ENotify1.template.php

Find:
Code: [Select]
$message = '<a href=\''. $enot['href']. '\'>'. $enot['sender']. ' '. $txt['notification_reply_sent']. ' \''. $enot['title']. '\'.</a>
add after:
Code: [Select]
<audio autoplay><source src=http://your-site-url/notify.mp3 type=audio/mp3 /><source src=http://your-site-url/notify.ogg type=audio/ogg /></audio>

Find:
Code: [Select]
$message = '<a href=\''. $enot['href']. '\'>'. $enot['sender']. ' '. $txt['notification_pm_sent']. ' \''. $enot['title']. '\'.</a>
add after:
Code: [Select]
<audio autoplay><source src=http://your-site-url/notify.mp3 type=audio/mp3 /><source src=http://your-site-url/notify.ogg type=audio/ogg /></audio>
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on February 18, 2012, 02:03:13 PM
What sound do you have?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Datahopa on February 18, 2012, 10:23:52 PM
Its just a short sound I made on the PC, the mp3 is only 3k and the ogg is 18k all you need is a short sound, there are plenty out there if you google free sound effects or something like that and also sites that do free file type conversion online too.

Don’t think this site would let me give you a link to mine yet.

Or would it:

http://homepage.ntlworld.com/datahopa/downloads/Notify%20Sounds.zip

Kind of, try them if you like.


EDIT:
And one other thing:
For some reason I had to restart my browser to get Enotify to work after I made the changes to ENotify1.template.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: impreza on February 20, 2012, 07:30:39 AM
great and useful modification.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Datahopa on February 20, 2012, 08:05:19 AM
Maybe the HTML5 sound could be added to the next version of Enotify, with an option for the members to turn it on or off, but with the default being set to on of course  ;)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 20, 2012, 11:02:42 AM
Maybe the HTML5 sound could be added to the next version of Enotify, with an option for the members to turn it on or off, but with the default being set to on of course  ;)
I like the idea as an option
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Datahopa on February 20, 2012, 12:04:13 PM
Hi vbgamer45, I thought it would appeal to more people if it had the option to turn off.

Frankly my php skills are not up to the job, and I have the feeling yours are, then do it :) and if you like you can use my sounds, I made them and in affect own the copyright on them, you have my permission to use them for this mod and distribute them with the mod.

I like the sound and have grown use to it  8)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Yngwiedis on February 22, 2012, 12:00:38 PM
Hello...

I just install Enotify 2.0.2

When i go to Enotify settings and press Submit button i get this error :

Fatal error: Call to undefined function saveDBSettings() in /home/vinilio/public_html/Sources/ManageSettings.php on line 2358

Can somebody help me?

Thank you very much.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: EddieC on March 12, 2012, 10:36:19 PM
Hi vbgamer45, I thought it would appeal to more people if it had the option to turn off.

Frankly my php skills are not up to the job, and I have the feeling yours are, then do it :) and if you like you can use my sounds, I made them and in affect own the copyright on them, you have my permission to use them for this mod and distribute them with the mod.

I like the sound and have grown use to it  8)

http://www.simplemachines.org/community/index.php?topic=343151.msg2900862#msg2900862 (http://www.simplemachines.org/community/index.php?topic=343151.msg2900862#msg2900862)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on March 12, 2012, 11:14:41 PM
Don't have the time at the moment.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: EddieC on March 13, 2012, 11:16:08 AM
Any chance of letting us know what edits I'd have to make to make the notifications show in the bottom left corner?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on March 13, 2012, 11:30:32 AM
I don't know them offhand.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on March 13, 2012, 12:40:19 PM
Any chance of letting us know what edits I'd have to make to make the notifications show in the bottom left corner?

look at jGrowl Options on
http://stanlemon.net/pages/jgrowl
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: EddieC on March 13, 2012, 12:53:47 PM
Any chance of letting us know what edits I'd have to make to make the notifications show in the bottom left corner?

look at jGrowl Options on
http://stanlemon.net/pages/jgrowl

Nice one mate :)

For anyone else interested it's the file enotify.js you need to edit, search the file for 'top-right' (W/O quotes, only appears once in the file) and replace with 'bottom-left'.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on March 15, 2012, 11:30:47 PM
I cannot recommend this mod.

First it installs an ad-link in the copyright line. No other mod I've ever installed did this an I don't think it's appropriate.
Then it hits the server like an iron gloved fist, sending requests every 10 seconds for every member who's online. As Arantor has observed, this isn't even a mistake but by design. Just to give you an impression: In 5 days this mod amassed as many page views as we'd had in the whole last year. And chances are your host will kick you out swiftly just for the dent this makes in server memory and computing power.

But the real fun starts, after you uninstall it, as you sooner or later will: Because it doesn't uninstall completely. I ran into the same problem described by others above. I have now around 30 guests with "unknown action" in the online list. Considering guests should at no point be able to use Enotify, this is a bit weird. But I looked them up in the database (Table: smf_log_online) and sure enough these guests do call Enotify, example:
Code: [Select]
a:2:{s:6:"action";s:7:"enotify";s:10:"USER_AGENT";s:112:"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729)";}
At this point I have replaced all files Enotify touches from backup and searched all files from the sources and themes folders for the word "enotify" and there's nothing there. I have also deleted 2 tables in the database that Enotify left behind (smf_log_enotify_pms & smf_log_enotify_topics).

I did all of this yesterday, so it's unlikely that 30 guests still have a tab open, not even mentioning they shouldn't have been able to call Enotify in the first place.

If this mod sounded too good to be true to you, you got it right the first time. Unless you like a big resource hog screwing up your forum permanently, keep your hands off it.

Amen, does not uninstall properly and had to drop these tables as well.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on March 16, 2012, 10:54:40 AM
I never drop any tables with any of mods since that can result in data loss.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OzzyMozzy on May 07, 2012, 11:01:56 PM
Love this Mod, Is there any way of changing the background color of the Notification popup box?

My forum uses a black background with a grey boarders and box’s so it would like real nice if I could make it the same color as these.

I did a search but couldnt find anything that sounds like it worked...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on May 07, 2012, 11:52:08 PM
Love this Mod, Is there any way of changing the background color of the Notification popup box?

My forum uses a black background with a grey boarders and box’s so it would like real nice if I could make it the same color as these.

I did a search but couldnt find anything that sounds like it worked...
Make sure you check whether it generates any errors. That could potentially slow your site down.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OzzyMozzy on May 08, 2012, 12:06:33 AM
Where do i check for errors?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on May 08, 2012, 04:18:47 PM
Where do i check for errors?

Error logs... Report back to use if you see anything related to "enotify"
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OzzyMozzy on May 08, 2012, 08:14:52 PM
No error's Logged...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on May 08, 2012, 09:00:04 PM
Good!!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: diontoradan on May 24, 2012, 06:30:42 AM
i like this mod, how can i use it outside SMF???

can i just copy the javascript?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 24, 2012, 02:05:30 PM
i like this mod, how can i use it outside SMF???

can i just copy the javascript?
Possibly yeah you would have to look at the code. The javascript part should work ok.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: diontoradan on May 25, 2012, 01:02:36 AM
good to hear that!

my members are excited with this mod.

So i just have to attach the js? or is there any other file i have to include in the php?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Exsharaen on June 30, 2012, 05:08:24 AM
Unfortunately I had to uninstall this mod because of strange guests behavior ("Unknown Action") after applying this mod. On a daily basis my forum has only 11 guests maximum, but this morning after I installed ENotify, it peaked to 45 guests, all of them had "unknown action". As others had already the same issue but still unsolved, I think I'll wait for some more before reinstalling it.

Oh, and somehow the copyright bottom line for ENotify appeared twice, so even after the uninstall it still appeared. Had to make manual edit to remove them.

Thanks,
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on July 01, 2012, 10:21:46 AM
Unfortunately I had to uninstall this mod because of strange guests behavior ("Unknown Action") after applying this mod. On a daily basis my forum has only 11 guests maximum, but this morning after I installed ENotify, it peaked to 45 guests, all of them had "unknown action". As others had already the same issue but still unsolved, I think I'll wait for some more before reinstalling it.

Oh, and somehow the copyright bottom line for ENotify appeared twice, so even after the uninstall it still appeared. Had to make manual edit to remove them.

Thanks,
Hi there,

This is indeed not the behavior expected. Probably the mod reloaded the page for the user but forgot to close the other connection, so the same user appeared as double.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: lifeguard81 on July 02, 2012, 11:05:31 AM
Thanks for this mod. I was looking for something like this.
Can i change the colors?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 02, 2012, 11:46:27 AM
I think you need to check the css files it edits and adjust there.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: lifeguard81 on July 02, 2012, 01:29:51 PM
I think you need to check the css files it edits and adjust there.
Ok thanks. I will take a look :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: D.Joe on July 07, 2012, 04:05:50 AM
i have a little bug with this mod: when someone replies to a topic i made or replied, instead of showing a notification, it shows a lot. How do i fix that, i dont want to uninstall this mod
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on July 11, 2012, 12:06:15 AM
i have a little bug with this mod: when someone replies to a topic i made or replied, instead of showing a notification, it shows a lot. How do i fix that, i dont want to uninstall this mod

I believe that was one of the reasons I uninstalled it. There is no limit, it just keeps showing endless replies. Has anyone managed to limit the number of updates shown?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Srinib on August 05, 2012, 03:00:02 PM
For those of you who have installed this MOD and have been using it,
what is the impact on the server because of this MOD?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on August 05, 2012, 03:15:43 PM
Significant. It's essentially like every user (not guest) is refreshing the page every few seconds. And if they have multiple tabs open, each tab is generally also refreshing the page.

It magnifies the load per user by a significant factor.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Srinib on August 06, 2012, 06:52:49 AM
In that case i would better stick with the standard feature Show a popup when I receive new messages for the time being. But still, this is a good MOD. Thank you.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on August 09, 2012, 10:17:37 PM
In that case i would better stick with the standard feature Show a popup when I receive new messages for the time being. But still, this is a good MOD. Thank you.

Or maybe you can use Alerts of smfpacks.com, it has a few options to prevent server hammering... and other interesting features

It is paid... but it worths it
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ocmdiaz714 on August 25, 2012, 05:40:37 PM
Is there any way to change position? I would like it on the bottom left. And is there any way to change the background color from black to gray? Thanks.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on August 25, 2012, 06:41:47 PM
Is there any way to change position? I would like it on the bottom left. And is there any way to change the background color from black to gray? Thanks.

http://www.simplemachines.org/community/index.php?topic=343151.msg3292863#msg3292863

For the background, use firebug on firefox, or something similar, to find wich CSS lines change
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Rain Forest on September 20, 2012, 05:44:43 AM
Great mod, thanks!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on September 20, 2012, 02:18:22 PM
Glad you enjoy it!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on October 03, 2012, 02:57:32 AM
I have 2 requests
1- Please, please move the X Close button on the top of all the notifications
2- Please add sound feature to it also. So we can upload and use a sound for each notification.

Thank you.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: pevanis on December 21, 2012, 05:59:43 PM
Hi,
I instaled ENotify2.0.2.zip and forum crashed :-( can I download somewhere ENotify2.0.1.zip which is working ?? i'll try to install again old version


Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 21, 2012, 06:02:07 PM
There should almost be no difference between versions. What was the error?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: pevanis on December 22, 2012, 09:41:57 AM
In install mode it says that's everything ok.
After instal when i click on modifications settins i have white screen with that error.
Fatal error: Cannot redeclare ENotify() (previously declared in /home/***/public_html/Sources/ManageSettings.php:2070) in /home/bdsmhrva/public_html/Sources/ManageSettings.php on line 2306

I have done one mistakes :-) before istal 2.2 i didn't deinstall 2.1 and that wass error notificaton like' don't istall there is something wrong'
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Shambles on December 22, 2012, 09:56:50 AM
Well the "do not uninstall" warning was there for a reason - it was telling you that the uninstall action would not be complete if you continued. Well, by continuing you left some v2.1 code in there which is now causing the conflict that you can see.

See if the v2.2 will uninstall. If it will, you'll then need to manually remove the superfluous v2.1 code (to complete the uninstallation of that version). Only then should you proceed to attempt to install v2.2
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: pevanis on December 23, 2012, 06:05:33 AM

See if the v2.2 will uninstall. If it will, you'll then need to manually remove the superfluous v2.1 code (to complete the uninstallation of that version). Only then should you proceed to attempt to install v2.2

Thank You, very kind of You  :)
Is there some Way to locate files for manually deleting ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: akbora on December 25, 2012, 05:16:08 PM
Notify seems bad character. Not turkish utf8 sample: açıldı=a??ld?
How can I correct it?

Edit: Previous version wasn't like that turkish utf8 characters were correct.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on December 25, 2012, 05:46:43 PM
can somebody please tell me how to move the X closer button from the bottom to the top of the notifications?

When you have tens of notifications, is pain to close each of them individually until you can actually see the close button on the bottom
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: WantSome on December 29, 2012, 05:30:38 AM
Hi vbgamer45...

I really like this mod, but it is throwing out these two errors (version 2.0.3):

Guest
Type of error: General
http://www.wantsome.co.uk/forum/index.php?action=enotify
2: in_array() expects parameter 2 to be array, null given
File: /forum/Sources/Security.php
Line: 831

Guest
Type of error: Undefined
http://www.wantsome.co.uk/forum/index.php?action=enotify
8: Undefined index: permissions
File: /public_html/forum/Sources/Security.php
Line: 831

This is the code in security.php at line 830 - 832 (the middle line being the issue although I don't know what's wrong with it):

Code: [Select]
// Check if they can do it.
if (!is_array($permission) && in_array($permission, $user_info['permissions']))
return true;

I have no idea why it's only showing the error for guests - they shouldn't be able to see much of anything on my forum, and they can't post/pm so they shouldn't be getting notifications.  When I click on the link that says 'action=enotify' I get a white screen with the following text:

Quote
({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })

Generally the forum & this mod are working, so it's not terribly urgent, I'd appreciate help when you have time.

Even less urgent (but really helpful) is if you were to help me move the main X button to the top of the notifications.   I think a couple of other people also wanted this (from reading through this thread). 

And, if it's possible, I'd like to allow individual users to turn off the notifications (possibly through their profile settings?).  Some people use small screens and the notifications bother them.

Even with all the above, I really like this modification.  Thanks for all the hard work!

WS
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Skaty on January 11, 2013, 09:10:54 PM
i finaly got it work enotify but now is getting me error when i try to login or register with facebook.

({ "title": "Bildirim Beslemesi", "generator": "Simple Machines Forum İçin ENotify Modu", "items": [ ] })

any idea for this ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: DAVID. D.A on February 02, 2013, 08:01:39 AM
when registering with sa facebook, error comes up

 ({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Abavagada on February 09, 2013, 12:51:34 PM
when registering with sa facebook, error comes up

 ({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })

I am getting this as well after I installed OneAll to log in using Facebook and tried to remove the enotify redirect on login.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on February 09, 2013, 12:55:12 PM
Known issue a bug with enotify haven't had time to track it down though.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: DAVID. D.A on February 09, 2013, 01:53:45 PM
enotify and one all work well with me
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: PLAYBOY on February 11, 2013, 03:04:00 AM
3 things;
1- I wish people could be able to limit how many notifications they will get at once.
2- I wish close X button was on the top. <<< I have been complaining about that forever.
3- I wish we could adjust the size of the notification popups. Because in some cell phones, notifications cover the entire page and you have to close each and every one of them to see your forum.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: perfec2 on March 25, 2013, 02:50:51 PM
Is there a way one can make the notification steady until one clicks cancel. As I notice that refreshing or going to one of notified pages clears all the notifications.

I also notice that when notification comes it display in one windows not all. For example if you open multiple  sections or posts of the forum, the notification only appears in one of the windows instead of all. Is there a way out of this.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on March 25, 2013, 03:03:26 PM
Not way to do it at the moment.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on March 25, 2013, 06:37:10 PM
3 things;
1- I wish people could be able to limit how many notifications they will get at once.
2- I wish close X button was on the top. <<< I have been complaining about that forever.
3- I wish we could adjust the size of the notification popups. Because in some cell phones, notifications cover the entire page and you have to close each and every one of them to see your forum.

You could try to get someone to do it for a little cash, i.e. a treelancer.
Title: Maybe a new mod?
Post by: thisizaremix on March 26, 2013, 05:58:45 PM
What I can't understand is why can't a mod just use the built in function that emails a member when a reply is posted.
Have that same function also post something to the screen while it sends the email, instead of having this mod hammer the server all the time.

Can this be done?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on March 26, 2013, 06:01:05 PM
Because that's fundamentally not how any of this stuff works?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: thisizaremix on March 26, 2013, 06:02:21 PM
any what stuff works?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on March 26, 2013, 06:05:26 PM
The internet, servers, PHP, that kind of thing.

You physically cannot do what you are suggesting in PHP and a conventional web server.

ETA: To explain: people browsing the forum are not continually 'connected' to the server. They press a button, loads a page, and then the connection *breaks*. You then press another button, load another page, the connection is established, then breaks again.

This is how HTTP works, has always worked and is likely to continue working.

What you're talking about essentially is the server pushing notifications to the user. Now, there are ways to do this, through Comet or long polling setups, for which Node.js is ideal. But it *cannot be done* with PHP. If you *do* attempt to create a Comet style server in PHP, it's going to be taken down forcibly by most hosts, and is going to be woefully and chronically inefficient.

The reason it is 'hammering' the server is because it has to call the server every few seconds to see if there's been an update. Just like Facebook actually does.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: thisizaremix on March 26, 2013, 06:18:38 PM
Gotcha
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: acsieben on April 23, 2013, 09:10:54 PM
Hi, I installed this plugin some time ago and I think it messed up my forum real bad. :S

I have downloaded it, installed it, and I guess it messed up my mod list somehow in the process. Beside that the main issue is that the board is apparently creating enotify smf_sessions like crazy, consuming a lot of  bandwidth (from 600mb to 6Gb daily) and overloading the server, and I don't have any clue from where it could come from.
 
After that I uninstalled it, by checking manually if all entries had been removed against the parsed instructions, deleted enotify references from the database. I checked twice and found nothing, but apparently the plugin is still creating smf_sessions - I can find dozens of entries per minute on "Latest visitors" in cpanel calling http://mysite.com/index.php?action=enotify, referred from all sorts of urls from the board.



What can be going on? I'd be thankful for any assistance as my host is requiring me to have this sorted in 24 hours.

THanks

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on April 23, 2013, 09:13:44 PM
Grab the manually install instructions from the mod site and remove any mod edits any of the mod files that fill fix your issue if it was by enotify
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: acsieben on April 23, 2013, 09:20:28 PM
Grab the manually install instructions from the mod site and remove any mod edits any of the mod files that fill fix your issue if it was by enotify

Hi, thanks for the reply. I did that and checked it manually twice afterwards...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on April 23, 2013, 09:25:44 PM
That should do it then if there nothing left in the files and delete the files enotify copied over
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: acsieben on April 23, 2013, 09:27:08 PM
I attached a screenshot of the log I mentioned. The referral URLs are just forum topics, most them very old, that haven't been updated or commented in a long time.

As for the files, I checked  and those were deleted as well..
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on April 23, 2013, 09:39:12 PM
They should have no affect then if you click the url for enotify you should go back to the homepage
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: acsieben on April 23, 2013, 09:58:36 PM
They should have no affect then if you click the url for enotify you should go back to the homepage

The issue is that these redirections or whatever they are are being created someway unknown. If you click the link it doesn't do nothing, but each redirect is 8Kb, and there are dozens every minute.

If I go to phpmyadmin and search the smf_sessions database for %enotify% there are always around 20 entries there. If I delete those, when the process finishes I already have another 5 to 10 new entries.

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on April 23, 2013, 10:19:30 PM
That's isn't a lot of traffic at a dozen a minute 96kb
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Stanley41now on April 23, 2013, 11:53:44 PM
It kind of looks like facebook notifications and uses JGrowl for the user interface.(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fxiye521.info%2F15.jpg&hash=84eb8be448f33428c52768be56336ff2)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: acsieben on April 24, 2013, 04:30:50 AM
That's isn't a lot of traffic at a dozen a minute 96kb

It was meant to be non literal. And even so, "dozens" and not dozen.

Do you have any actual ideas on the issue itself?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on April 24, 2013, 11:02:11 AM
did you remove enotify calls from every templates ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: acsieben on April 25, 2013, 11:19:14 AM
did you remove enotify calls from every templates ?

Yes, I have only three (including default and core), so I manually went by all of them.

Below is an entry of the smf_sessions table:

Quote
session_value|s:32:"914949faa02031e71a93ec7721eb8311";session_var|s:9:"b82b2641e";mc|a:7:{s:4:"time";i:1366768628;s:2:"id";i:0;s:2:"gq";s:3:"0=1";s:2:"bq";s:3:"0=1";s:2:"ap";a:0:{}s:2:"mb";a:0:{}s:2:"mq";s:3:"0=1";}ban|a:5:{s:12:"last_checked";i:1366768628;s:9:"id_member";i:0;s:2:"ip";s:14:"136.177.xxx.xxx";s:3:"ip2";s:14:"136.177.xxx.xxx";s:5:"email";s:0:"";}
log_time|i:1366863362;timeOnlineUpdated|i:1366768628;old_url|s:51:"http://mysite?action=enotify";USER_AGENT|s:72:"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0";fb_133106873420199_state|s:32:"1c8cbee6e701e3e4088b8d394fc2ded7";

Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: acsieben on April 25, 2013, 01:38:28 PM
Hi, I guess this must be somehow server related or some odd issue with the database. I have disabled the board (maintenance = 2), and I still see those entries on the latest visitors info. I'll look for the error somewhere else. Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on April 27, 2013, 11:42:00 AM
Is there a way one can make the notification steady until one clicks cancel. As I notice that refreshing or going to one of notified pages clears all the notifications.

look at jGrowl Options on
https://github.com/stanlemon/jGrowl
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Zaiken64 on May 10, 2013, 04:18:12 AM
I have Enotify installed on smf 2.0.4 and users are complaining that it floods them with every post that they made since the forum was made, even if they haven't been replied to in years. But doesn't notify them of new posts and I have noticed it doesn't show messages if you didn't create the thread yourself. I tried to uninstall it, but then the who's online list shows UNKNOWN ACTION for just about everything. Is there any way to turn it off per user? If not how can I uninstall it?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 10, 2013, 09:34:29 AM
There is no currently no way to turn it off per user. To uninstall use the package manager to uninstall the mod.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: akbora on May 16, 2013, 07:19:32 PM
I am getting errors like that turkish character why?

xxxxx şu iletine yanıt yazdı: 'K?l?çdaro?lu Tek Millet diyemiyormu? sen de onun ad? nedir diyemiyorsun!'.

Where can I correct it? Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 16, 2013, 08:08:12 PM
Make sure all the enotify tables are set to utf8
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: akbora on May 17, 2013, 12:13:02 PM
Make sure all the enotify tables are set to utf8
A lot of thanks, I set it to utf8 now very well...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 17, 2013, 12:17:44 PM
Glad that has helped!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: akbora on May 17, 2013, 01:26:17 PM
I'm facing a weird problem. For example I have 3 tabs open: X Topic, BoardIndex and Admin Panel. Admin Panel is the last tab I opened. When I go to X Topic and receive a notification, it doesn't show in the active tab (X Topic), but on the last opened tab (Admin Panel). I can't see the notification until I go back to last opened tab. Anyone have the same problem or any idea why this happens?
Dear vbgamer what can you say about this? Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: livingunique on May 17, 2013, 02:52:25 PM
I installed this on my forum, but it was preventing new members from registering. Possibly it's a conflict with my Alerts Pro mod, but I haven't really taken the time to investigate. I just wanted to let you know. I'm disappointed, I like this mod a lot and wish it would have worked.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 17, 2013, 04:35:37 PM
Yeah can't really help with that since I do not have access to alerts mod since that is a paid addon.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on May 20, 2013, 07:41:57 AM
I installed this on my forum, but it was preventing new members from registering. Possibly it's a conflict with my Alerts Pro mod, but I haven't really taken the time to investigate. I just wanted to let you know. I'm disappointed, I like this mod a lot and wish it would have worked.

So... you tries to use two mods that do the same task? :-/
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 25, 2013, 10:31:38 PM
Please i need help.
I want to uninstall enotify completely from my forum. But when i tried to run uninstall it i got this error
Quote
   Type    Action    Description
*    1.    Execute Modification    ./index.php    Test failed
      1.    Replace    ./index.php    Test failed
*    2.    Execute Modification    ./Sources/LogInOut.php    Test successful
      1.    Replace    ./Sources/LogInOut.php    Test successful
*    3.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test successful
*    4.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Replace    ./Sources/ManageSettings.php    Test successful
      2.    Replace    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
*    7.    Execute Modification    ./Sources/QueryString.php    Test failed
      1.    Replace    ./Sources/QueryString.php    Test failed
   8.    Delete File    ./Sources/ENotify.php    
   9.    Delete File    ./Themes/default/ENotify.template.php    
   10.    Delete File    ./Themes/default/scripts/enotify.js    
   11.    Delete File    ./Themes/default/css/jquery.jgrowl.css    
   12.    Delete File    ./Themes/default/languages/ENotify.english.php    
   13.    Delete File    ./Themes/default/languages/ENotify.english-utf8.php    
   14.    Delete File    ./Themes/default/languages/ENotify.turkish.php    
   15.    Delete File    ./Themes/default/languages/ENotify.turkish-utf8.php
Pleasse what do i do? I dont want this Enotify mod anymore. My host warned that my will be banned in two days time.
Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Siphix on May 25, 2013, 10:44:05 PM
I am having an issue. I uninstalled enotify but in the error logs for every member im getting

Unable to load the 'AdkPif.english' language file.

Any idea how to get rid of this error?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: TheListener on May 25, 2013, 10:56:26 PM
Do you have any ADK mods installed?

Have you checked the mods parser?

The forums error log?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 26, 2013, 01:39:11 AM
Please i need help.
I want to uninstall enotify completely from my forum. But when i tried to run uninstall it i got this error
Quote
   Type    Action    Description
*    1.    Execute Modification    ./index.php    Test failed
      1.    Replace    ./index.php    Test failed
*    2.    Execute Modification    ./Sources/LogInOut.php    Test successful
      1.    Replace    ./Sources/LogInOut.php    Test successful
*    3.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test successful
*    4.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Replace    ./Sources/Admin.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Replace    ./Sources/ManageSettings.php    Test successful
      2.    Replace    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
*    7.    Execute Modification    ./Sources/QueryString.php    Test failed
      1.    Replace    ./Sources/QueryString.php    Test failed
   8.    Delete File    ./Sources/ENotify.php    
   9.    Delete File    ./Themes/default/ENotify.template.php    
   10.    Delete File    ./Themes/default/scripts/enotify.js    
   11.    Delete File    ./Themes/default/css/jquery.jgrowl.css    
   12.    Delete File    ./Themes/default/languages/ENotify.english.php    
   13.    Delete File    ./Themes/default/languages/ENotify.english-utf8.php    
   14.    Delete File    ./Themes/default/languages/ENotify.turkish.php    
   15.    Delete File    ./Themes/default/languages/ENotify.turkish-utf8.php
Pleasse what do i do? I dont want this Enotify mod anymore. My host warned that my will be banned in two days time.
Thanks

Please i need urget direction on the proper steps i need to take to uninstall this Enotify.
Please i need step by step guide.
Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: TheListener on May 26, 2013, 01:43:33 AM
Using the parser you will have to follow the steps in reverse order.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 26, 2013, 02:10:30 AM
Using the parser you will have to follow the steps in reverse order.
I guess this same enotify mod added advert which is running my website now.
Please i dont know how to use parse. I dont have much php knowledge that is why i always make use of mode.
Please tell me in step by step how i'm going to locate(e.g index.template, enotify.index.php,...) and remove the parse php bb code.
Thank you your patience.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: TheListener on May 26, 2013, 02:13:53 AM
http://custom.simplemachines.org/mods/index.php?action=parse
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 26, 2013, 04:06:04 AM
./Sources/LogInOut.php
Quote
Find: [Select]

if (empty($_SESSION['login_url']))

Replace With: [Select]

if ((!empty($_SESSION['login_url']) && strpos($_SESSION['login_url'], 'enotify')) || empty($_SESSION['login_url']))


In my own directory i found this
Quote
if (empty($_SESSION['login_url']) && isset($_SESSION['old_url']) && strpos($_SESSION['old_url'], 'dlattach') === false && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
      $_SESSION['login_url'] = $_SESSION['old_url'];
Pls tell me what to do. I have reversed index.php
./Sources/LogInOut.php is what i'm not unable to change.

Thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: gay on May 26, 2013, 02:01:04 PM
Enotify with Smf 2.0.4 manual install

when i install.php and install1.php

install.php
Code: [Select]
Fatal error: Function name must be a string in /home/public_html/install.php on line 5
install1.php
Code: [Select]
Notice: Undefined index: enotify_life in /home/public_html/Sources/Load.php on line 1573

Notice: Undefined index: enotify_life in /home/public_html/Sources/Load.php on line 1580

Notice: Undefined index: enotify_refresh in /home/public_html/Sources/Load.php on line 1583

Fatal error: Call to undefined function db_query() in /home/public_html/install1.php on line 9


when i modify Subs.php , error
Code: [Select]
Strict Standards: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/public_html/Sources/Subs.php on line 2832

Parse error: syntax error, unexpected T_VARIABLE in /home/public_html/Sources/Subs.php on line 2832


Subs.php
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
//if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false)
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=enotify') === false
$_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

i selected timezone "America/Chicago"

does't work
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 26, 2013, 04:39:04 PM
Any reason why you are  manually installing it?
You want to use install.php but it looks like that file may require an include SSI.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: gay on May 27, 2013, 02:30:26 AM
my forum : /home/public_html/
my ssi.php : /home/public_html/
my intall.php : /home/public_html/
my install1.php : /home/public_html/
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 27, 2013, 09:04:40 AM
Open install.php

Find
Code: [Select]
<?php

Add after
Code: [Select]
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
  require_once(dirname(__FILE__) . '/SSI.php');
// Hmm... no SSI.php and no SMF?
elseif (!defined('SMF'))
  die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');



And try to install it in the browser again
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: gay on May 27, 2013, 09:17:24 AM
Thank you very much for support.

but doesn't work, now i uninstall complete.

Thank you.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NanoSector on May 27, 2013, 01:20:42 PM
install1.php is for 1.1.x, not for 2.0.x.

vbgamer45: You most likely forgot to global $smcFunc; in your install.php file.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 28, 2013, 08:15:39 AM
Please how can i locate and remove my Enotify Ads on my forum footer. Its annoying
Or if possible how i can edit.
Please give me step by method.

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 28, 2013, 08:17:53 AM
Please how can i locate and remove my Enotify Ads on my forum footer. Its annoying
Or if possible how i can edit.
Please give me step by method.

I offer copyright removal
http://www.smfhacks.com/copyright_removal.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 28, 2013, 08:41:07 AM
Please how can i locate and remove my Enotify Ads on my forum footer. Its annoying
Or if possible how i can edit.
Please give me step by method.

I offer copyright removal
REMOVED

By my own understanding, I should remove it from /Sources/QueryString.php
But i dont know how to edit.
Please i need help.
Thanks.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 28, 2013, 09:13:12 AM
Please how can i locate and remove my Enotify Ads on my forum footer. Its annoying
Or if possible how i can edit.
Please give me step by method.

I offer copyright removal
REMOVED

By my own understanding, I should remove it from [hidden by Colin]
But i dont know how to edit.
Please i need help.
Thanks.

Ok.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 28, 2013, 09:41:39 AM
That is not legal you need to pay for removal. I will send you an invoice.

It is extremely disrespectful to remove without payment since we spend our time developing these mods for the community.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: akbora on May 28, 2013, 01:01:57 PM
Mod makers gave us a lot of things here. In fact, they just want to copyright. They deserve it. Thanks to all who contributed.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: peterwaalker on May 28, 2013, 08:28:22 PM
thanks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Colin on May 28, 2013, 08:54:54 PM
Peter,

We do not condone this behavior. I implore you to restore the copyright or legally pay to remove the copyright. Threats are also not welcome on this forum.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on May 29, 2013, 10:36:39 PM
LOL
#727 should be saved for posterity
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Zaiken64 on May 30, 2013, 01:57:35 PM
There is no currently no way to turn it off per user. To uninstall use the package manager to uninstall the mod.
I tried using the package manager, but that breaks my whois screen. All I see after uninstalling the mod is "unknown action", also it wont let me choose themes I want to remove it from, which may be the problem. I'm going to try the manual uninstall.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on May 30, 2013, 10:39:18 PM
If you need the manually install instructions you can upload the package zip to http://www.smfhacks.com/smf-package-parser.html
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sandiplfcg on July 18, 2013, 12:34:46 PM
There is no notification on my screen, but mysql is running the queries. Am I, missing anything? FYI i'm using different theme.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 18, 2013, 01:01:35 PM
Make sure if the mod does theme edits that the edits are applied to your theme.

The mod uses jquery to show the notifications
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sandiplfcg on July 18, 2013, 01:13:06 PM
Thanks for the reply. I'm a newbie in editing and SMF. Don't know what to edit and where to in the file? Sorry for the trouble ! Could you help please ? I'm using ProRedV1 theme, and have include the files in the directory but don't what to edit in the template file.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sandiplfcg on July 18, 2013, 05:40:28 PM
This is the link to the forum. Maybe you could  look and tell me where it went wrong.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: TiPsY on July 22, 2013, 07:39:39 PM
Is there any way to re-locate the floating notification from the top right to the lower left?
Also, how to convert it to utf-8? Some people use greek letters and they appear as question marks
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 22, 2013, 09:13:06 PM
Maybe possible you would have to look at the css/javascript positioning

Ask in the general support forums on how to convert to utf8
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: OzzyMozzy on July 28, 2013, 05:43:31 AM
Enotify is killing my forum, i uninstalled it and it's still a problem. I had a look at the Sources/load file and i found this in it

Code: [Select]
// enotify
global $settings, $modSettings, $scripturl;

$context['html_headers'] .=  '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/jquery.jgrowl.css" />
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/enotify.js"></script>
<script type="text/javascript">
jQuery.noConflict();
(function($){
$(document).ready(function(){
        $.getJSON("' . $scripturl . '?action=enotify",
                function(data){
                  $.each(data.items, function(i,item){
                    $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                  });
                });
setInterval( function() {
          $.getJSON("' . $scripturl . '?action=enotify",
                  function(data){
                    $.each(data.items, function(i,item){
                      $.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
                    });
                  });
} , ' . $modSettings['enotify_refresh'] . ' );
});
})(jQuery);
</script>';
//end enotify

Can i manually delete this section out?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Game.ruler on July 28, 2013, 07:30:40 AM
Hi everyone, this is a great mod. I have installed and and is working fine, except some mysql errors in error logs.
Code: [Select]
http://......./index.php?action=enotify
The database value you're trying to insert does not exist: enot_title
Function: ENotifyUpdateUnreadReplies
File: /home/sharespark/public_html/Sources/ENotify.php
Line: 70
Please help me with this problem.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: electricwildflower on August 12, 2013, 05:47:47 PM
Came across this today must admit it's fantastic i love it. did a test with my test forum works like a charm and then installed it in my main forums which i have yet to see it in action. Exactly the type of thing that is perfect for my website & forums.

Quick question.

My forum is built into my website using SSI. Is there anyway i could show the notifications on my php files that include SSI like my index.php, radio.php, about.php files. As it would feel much more integrated into my site if i could and users wouldnt have to keep going to the forums to get notified.

quick idea for you is there any chance of getting notification sounds added so when we get a notify it bleeps or something. nor sure if it's already added or not but would be a cool feature.

Cheers again for fantastic mod.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: littlenicki on September 16, 2013, 04:22:24 PM
Hello, what's new in the latest update? Thank you
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on September 16, 2013, 04:29:08 PM
Probably bug fixes that's mainly what I work on.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: littlenicki on September 16, 2013, 06:09:10 PM
Is there a change log?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on September 16, 2013, 06:28:01 PM
On the modsite maybe for the listing.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: live627 on September 16, 2013, 10:06:34 PM
Hey vb, I'm not sure this mod works properly.

Shouldn't unique database index enot_item_id also cover id_member so that each member can get a notification to the same topic?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on September 17, 2013, 12:34:20 AM
Will double check the indexes on the mod remind me if I forget.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on October 06, 2013, 05:03:26 PM
I've had this installed for some time, and I want to remove it. No offence to the mod at all, it's just not really needed and I have a chat bar which is more useful and active for my members which is polling away too. Anyway, that's kind of irrelevant....

The point is, I can't quite remember why but I had to manually install it way back when I put it on. Possibly theme related, I'm not sure, it was a while ago. I've been through and reversed all the mod parse info in the various files, but when I did, login on the forum stopped working all together.

I've tried simply removing just the inline js bit, the theory being if it wasn't there then the enotify calls wouldn't happen so it would be as good as uninstalled from that perspective. But even doing that somehow interfered with the login. I've had to put it all back in just so the forum can be used.

Any ideas how I can remove it and not break the most important function of any member driven forum?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 07, 2013, 01:35:41 PM
To uninstall visit the mod still for uninstall instructions
Or upload the mod to http://www.smfhacks.com/smf-package-parser.html and reverse the install instructions to uninstall.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on October 07, 2013, 02:20:50 PM
Sadly, the steps detailed are precisely those which I have tried numerous times. However, the very instant that the js which is added to $context in load.php is removed, login ceases to function. For some reason, once that's removed, submitted login details are redirected to the forum home page without the login being processed.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: hannes_kann_es on October 15, 2013, 05:59:10 PM
Sadly, this mod doesn't work properly. Only one user gets notified about replies. (Checked with several accounts)

Improvement: Don't call the ajax-request for guest-users. Would reduce server load, right?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: littlenicki on October 15, 2013, 06:06:13 PM
Good point to not call it for guests.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: hannes_kann_es on October 16, 2013, 08:52:21 AM
Just an example to make things clear:
User1, User2 and User3 discuss in Thread1. User2 and 3 reply to User1. User 2 get's a notification -> enotify sets status to "read" and User3 won't get the notification.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on October 16, 2013, 08:15:58 PM
Is there any way to re-locate the floating notification from the top right to the lower left?

This is your friend https://github.com/stanlemon/jGrowl
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: live627 on October 16, 2013, 09:24:35 PM
Sadly, this mod doesn't work properly. Only one user gets notified about replies. (Checked with several accounts)
Try what I suggested http://www.simplemachines.org/community/index.php?topic=343151.msg3609576#msg3609576
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Game.ruler on November 12, 2013, 04:52:30 AM
my users (including me) are getting notifications for only pms not replies??

it was working great before but from few weeks they're not getting notifications for post replies..
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bahgheera on December 16, 2013, 08:48:29 PM
I installed this mod a few days ago. I just noticed today that the error log filled up rapidly (over 800 million errors) and almost every error was related to enotify. So I cleared the error log and within five minutes it was back up to around 10,000 errors. So, it's related to something I've done in index.template.php in my custom theme. Here's the errors I get:
Code: [Select]
http://www.theflipsideforum.com/index.php?action=enotify
8: Undefined offset: 1
File: /home5/theflips/public_html/Themes/FLipside Dark III/index.template.php
Line: 324

http://www.theflipsideforum.com/index.php?action=enotify
8: Use of undefined constant linktree - assumed 'linktree'
File: /home5/theflips/public_html/Themes/FLipside Dark III/index.template.php
Line: 324

This is between enotify and a line of code that I put in referencing $context[linktree], but I don't know 1) why enotify has a problem with that 2) why it's still happening after I uninstalled enotify.

Any insight would be greatly appreciated - please let me know what other info you'd need to know.

This is SMF 2.0.4 with a custom theme based on Curve, at http://www.theflipsideforum.com.

Thanks!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on December 16, 2013, 09:06:25 PM
What's the 5 lines before and after 324 in that template file?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bahgheera on December 16, 2013, 09:13:23 PM
Code: [Select]
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="align_right">' . $settings['site_slogan'] . '</div>', '

                </div>
                <div id="spacer">
                </div>';
        if (!$context[linktree][1] || $context[linktree][1][url] === "http://www.theflipsideforum.com/index.php?page=portal") {
          echo '
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>

<div id="slider_div">
                            <ul id="slider">

Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on December 16, 2013, 09:32:40 PM
Firstly, the reason that's happening is enotify is polling your site every so many seconds x however many people are online. That depends on your settings, but if you've removed it fully it shouldn't be doing it at all.

I suspect you probably have bits of it left in Sources/Load.php, which is where it injects the javascript. Open that file, search for "// enotify" and put "/*" just before it, then find "// end enotify"  and put "*/" just after it.

Check the logs again for errors, and your site overall for functionality, specifically logging in. I'm still having a nightmare with logins after trying to remove enotify, I don't understand why it's not working if I remove it.

If all is well after that, you can delete that whole chunk of code between and including /* .....*/
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on December 16, 2013, 09:34:05 PM
Quote
That depends on your settings, but if you've removed it fully it shouldn't be doing it at all.

Even if you remove it fully, anyone who still has an old page in their browser will see it just carry on triggering it anyway until they move to another page.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on December 16, 2013, 09:43:59 PM
True of course, but they're talking about 10,000 such errors in 5 minutes. That's a lot of people not doing much if that's the case.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on December 16, 2013, 09:48:35 PM
Doesn't take many users with multiple tabs open on your site to accumulate that. Right now, for example, I have about 6 tabs open on this website ;)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bahgheera on December 16, 2013, 09:55:53 PM
I couldn't find any trace of enotify in Load.php. I'm going to go look at the parse and check any other files that might have leftover code. Thanks for the reply.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on December 16, 2013, 09:56:28 PM
Still seems quite high, default heartbeat is 10 seconds, so your 6 tabs is 6x6x5 = 180.

I'm also still miffed at why when I remove it completely as per destructions, I loose login functionality.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bahgheera on December 16, 2013, 10:05:12 PM
So I just went through the parse instructions and checked everything, can't find any trace of enotify in my forum. Yet guest ip's are still hitting that "action=enotify" link. ???

Is there a page somewhere here that explains the error messages? Undefined offset? I don't know what that means.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: TheListener on December 16, 2013, 10:07:15 PM
http://lmgtfy.com/?q=undefined+offset
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on December 16, 2013, 10:13:15 PM
You could try -
Code: [Select]
Change this :-
if (!$context[linktree][1] || $context[linktree][1][url] ===
To :-
if (isset($context[linktree][1]) && !$context[linktree][1] || $context[linktree][1][url] ===

That error means it's trying to reference something that isn't set, which it wouldn't be if called by enotify.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: CoreISP on December 16, 2013, 10:13:38 PM
Quote
Yet guest ip's are still hitting that "action=enotify" link

If memory serves right, they actually keep doing that until closing screen or refreshing the page, because of the way the mod is built.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on December 16, 2013, 10:18:43 PM
They will, but I've just noticed, that code you copied.... shouldn't
Code: [Select]
if (!$context[linktree][1] || $context[linktree][1][url] actually be
Code: [Select]
if (!$context['linktree'][1] || $context['linktree'][1][url] complete with parentheses regardless of what enotify is doing?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bahgheera on December 16, 2013, 10:25:46 PM
Oooooh.... so the reason the enotify link keeps getting hit is from browsers with the page still open from before I modified it running the ajax script? Who are these people?! Don't they ever close my site! Heh heh, maybe if I wait a day or two the enotify traffic will die down.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bilbo32 on December 16, 2013, 10:28:14 PM
I still think you'll have the problem with the missing parenthesis, just less hits showing it up ;)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bahgheera on December 16, 2013, 10:36:15 PM
Derp, I am an idiot. I had all the parentheses, I forgot quotes around the array keys... I am so close to fixing this though! Thanks for all your help, you've set me on the right track.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: bahgheera on December 16, 2013, 10:50:35 PM
I think it's sorted - I replaced the entire line with
Code: [Select]
        if (!isset($context['linktree'][1])) {

And now, forum works, no errors so far. It wasn't a problem with enotify, per se, it was a problem with enotify scripts still running on browsers that haven't been refreshed. Thanks for the help everyone.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: mightyharimau on January 23, 2014, 10:19:18 PM
Hi, I'm not sure if this question has been asked, how do I extend the notification duration in Enotify?

Thanks
Selvan
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on January 24, 2014, 01:03:33 PM
life:3000 at enotify.js
Be careful when editing/saving it... it is a bunch of compressed JS files, long lines... do a backup

https://github.com/stanlemon/jGrowl/blob/master/README.md
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Raffaele1977 on January 25, 2014, 05:31:43 AM
Help please!!! :(

I uninstalled eNotify because the load of my server was crazy... but even after uninstalling, i have some strange logs.
I read in the log:
xxx.xxx.xxx.xxx - - [25/Jan/2014:02:22:02 -0800] "GET /index.php?action=enotify HTTP/1.1" 200 10396 "http://mydomain.com/index.php/topic,xxxx.0.html" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36"

How can stop it to continue to make request to my site?

Thanks! :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on January 26, 2014, 01:45:50 PM
Help please!!! :(

I uninstalled eNotify because the load of my server was crazy... but even after uninstalling, i have some strange logs.
I read in the log:
xxx.xxx.xxx.xxx - - [25/Jan/2014:02:22:02 -0800] "GET /index.php?action=enotify HTTP/1.1" 200 10396 "http://mydomain.com/index.php/topic,xxxx.0.html" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36"

How can stop it to continue to make request to my site?

Thanks! :)

This happened to me actually. The way I 'fixed' it is I went into the database, searched the keyword 'enotify' and deleted everything that was associated with that word. I don't recommend you do this, but if you do it with care, you might not end up wrecking your database.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on January 26, 2014, 01:47:59 PM
Well it would do... the pages that contain the 'call home' request were still loaded and still making requests until such time as they refresh. (Assuming uninstallation was complete anyway)
Title: MySQL Slow Queries
Post by: sah62 on January 29, 2014, 01:42:01 PM
I'm seeing a number of entries in my MySQL slow query log from actions performed by ENotify. Here's an example (with some server-specific information modified for privacy reasons):

Code: [Select]
# Time: 140129 12:41:12
# User@Host: db1[db1] @ localhost []
# Query_time: 1.944887  Lock_time: 0.000139 Rows_sent: 0  Rows_examined: 0
SET timestamp=1391017272;
INSERT IGNORE INTO smf_log_enotify_replies(`enot_item_id`, `enot_title`, `enot_time`, `enot_link`, `enot_sender`, `enot_sender_link`, `id_member`)
                VALUES
                        (66972, SUBSTRING('Re: Subject', 1, 255), 1224716956, 'http://www.myserver.org/forum/index.php?topic=11234.msg66972;topicseen#msg66972', SUBSTRING('user', 1, 255), 'http://www.myserver.org/forum/index.php?action=profile;u=101', 251);

Is there any reason these queries should be taking longer than 1 second to execute?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on January 29, 2014, 01:53:10 PM
I'm seeing a number of entries in my MySQL slow query log from actions performed by ENotify. Here's an example (with some server-specific information modified for privacy reasons):

Code: [Select]
# Time: 140129 12:41:12
# User@Host: db1[db1] @ localhost []
# Query_time: 1.944887  Lock_time: 0.000139 Rows_sent: 0  Rows_examined: 0
SET timestamp=1391017272;
INSERT IGNORE INTO smf_log_enotify_replies(`enot_item_id`, `enot_title`, `enot_time`, `enot_link`, `enot_sender`, `enot_sender_link`, `id_member`)
                VALUES
                        (66972, SUBSTRING('Re: Subject', 1, 255), 1224716956, 'http://www.myserver.org/forum/index.php?topic=11234.msg66972;topicseen#msg66972', SUBSTRING('user', 1, 255), 'http://www.myserver.org/forum/index.php?action=profile;u=101', 251);

Is there any reason these queries should be taking longer than 1 second to execute?

sah62, I have no idea, sorry...
But... how do you do that log?

(to see what interesting things we have in the forum...)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sah62 on January 29, 2014, 01:56:19 PM
sah62, I have no idea... but... how do you do that log?

(to see what interesting things we have in the forum...)

Add entries like these to /etc/mysql/my.cnf:

Code: [Select]
long_query_time=1
slow_query_log=1
slow_query_log_file=/var/log/mysql/log-slow-queries.log

The location of your my.cnf file may vary...
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: live627 on January 29, 2014, 06:45:54 PM
I'm seeing a number of entries in my MySQL slow query log from actions performed by ENotify. Here's an example (with some server-specific information modified for privacy reasons):

Code: [Select]
# Time: 140129 12:41:12
# User@Host: db1[db1] @ localhost []
# Query_time: 1.944887  Lock_time: 0.000139 Rows_sent: 0  Rows_examined: 0
SET timestamp=1391017272;
INSERT IGNORE INTO smf_log_enotify_replies(`enot_item_id`, `enot_title`, `enot_time`, `enot_link`, `enot_sender`, `enot_sender_link`, `id_member`)
                VALUES
                        (66972, SUBSTRING('Re: Subject', 1, 255), 1224716956, 'http://www.myserver.org/forum/index.php?topic=11234.msg66972;topicseen#msg66972', SUBSTRING('user', 1, 255), 'http://www.myserver.org/forum/index.php?action=profile;u=101', 251);

Is there any reason these queries should be taking longer than 1 second to execute?
Queries get slower on bigger tables.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sah62 on January 29, 2014, 06:57:31 PM
Queries get slower on bigger tables.

I see 441 rows in my database right now. Is that really that big?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on January 29, 2014, 07:09:16 PM
No, but the way the table works is that it's constantly being read and reads are table locking so no writes can occur.

You should probably change that table to InnoDB.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on January 29, 2014, 07:19:22 PM
Add entries like these to /etc/mysql/my.cnf:

Code: [Select]
long_query_time=1
slow_query_log=1
slow_query_log_file=/var/log/mysql/log-slow-queries.log

The location of your my.cnf file may vary...

Thanks a lot! will try it
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sah62 on January 29, 2014, 07:48:22 PM
You should probably change that table to InnoDB.

It already is.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on January 29, 2014, 08:01:01 PM
Wait, what?

1.9 seconds for that table would be quite legitimate on a MyISAM table because of table locking, but I really don't see how that table is bound to blocking an insert for almost 2 seconds on an InnoDB table.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sah62 on January 29, 2014, 08:45:02 PM
Right, and that's why I'm asking.  I just recently installed ENotify and these are the only slow queries I'm seeing logged. I don't see an obvious problem, but the query times are what they are. Is there any other info I can share to provide more detail?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on January 30, 2014, 08:34:57 AM
Wait, what?

1.9 seconds for that table would be quite legitimate on a MyISAM table because of table locking, but I really don't see how that table is bound to blocking an insert for almost 2 seconds on an InnoDB table.
The lock is quite fast, it's the fsync which is probably taking some time. Could you check your innodb settings and post them here ? i suspect innodb is configured to fsync on every write.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sah62 on January 30, 2014, 08:45:14 AM
InnoDB settings:

Code: [Select]
mysql> show variables like 'inno%';
+---------------------------------+------------------------+
| Variable_name                   | Value                  |
+---------------------------------+------------------------+
| innodb_adaptive_flushing        | ON                     |
| innodb_adaptive_hash_index      | ON                     |
| innodb_additional_mem_pool_size | 8388608                |
| innodb_autoextend_increment     | 8                      |
| innodb_autoinc_lock_mode        | 1                      |
| innodb_buffer_pool_instances    | 1                      |
| innodb_buffer_pool_size         | 134217728              |
| innodb_change_buffering         | all                    |
| innodb_checksums                | ON                     |
| innodb_commit_concurrency       | 0                      |
| innodb_concurrency_tickets      | 500                    |
| innodb_data_file_path           | ibdata1:10M:autoextend |
| innodb_data_home_dir            |                        |
| innodb_doublewrite              | ON                     |
| innodb_fast_shutdown            | 1                      |
| innodb_file_format              | Antelope               |
| innodb_file_format_check        | ON                     |
| innodb_file_format_max          | Antelope               |
| innodb_file_per_table           | OFF                    |
| innodb_flush_log_at_trx_commit  | 1                      |
| innodb_flush_method             |                        |
| innodb_force_load_corrupted     | OFF                    |
| innodb_force_recovery           | 0                      |
| innodb_io_capacity              | 200                    |
| innodb_large_prefix             | OFF                    |
| innodb_lock_wait_timeout        | 50                     |
| innodb_locks_unsafe_for_binlog  | OFF                    |
| innodb_log_buffer_size          | 8388608                |
| innodb_log_file_size            | 5242880                |
| innodb_log_files_in_group       | 2                      |
| innodb_log_group_home_dir       | ./                     |
| innodb_max_dirty_pages_pct      | 75                     |
| innodb_max_purge_lag            | 0                      |
| innodb_mirrored_log_groups      | 1                      |
| innodb_old_blocks_pct           | 37                     |
| innodb_old_blocks_time          | 0                      |
| innodb_open_files               | 300                    |
| innodb_print_all_deadlocks      | OFF                    |
| innodb_purge_batch_size         | 20                     |
| innodb_purge_threads            | 0                      |
| innodb_random_read_ahead        | OFF                    |
| innodb_read_ahead_threshold     | 56                     |
| innodb_read_io_threads          | 4                      |
| innodb_replication_delay        | 0                      |
| innodb_rollback_on_timeout      | OFF                    |
| innodb_rollback_segments        | 128                    |
| innodb_spin_wait_delay          | 6                      |
| innodb_stats_method             | nulls_equal            |
| innodb_stats_on_metadata        | ON                     |
| innodb_stats_sample_pages       | 8                      |
| innodb_strict_mode              | OFF                    |
| innodb_support_xa               | ON                     |
| innodb_sync_spin_loops          | 30                     |
| innodb_table_locks              | ON                     |
| innodb_thread_concurrency       | 0                      |
| innodb_thread_sleep_delay       | 10000                  |
| innodb_use_native_aio           | OFF                    |
| innodb_use_sys_malloc           | ON                     |
| innodb_version                  | 5.5.35                 |
| innodb_write_io_threads         | 4                      |
+---------------------------------+------------------------+
60 rows in set (0.00 sec)

mysql>
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: GamePersia on February 04, 2014, 11:15:59 PM
How to remove "Enotify by CreateAForum.com"
From footer ??......
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on February 05, 2014, 12:04:57 AM
Pay the fee to get it removed.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: butch2k on February 06, 2014, 07:06:17 AM
@Sah62
Set innodb_flush_log_at_trx_commit  to 2 it will fix your issue.
If you don't use binlogs set innodb_support_xa to OFF as well.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: sah62 on February 07, 2014, 06:35:08 AM
@Sah62
Set innodb_flush_log_at_trx_commit  to 2 it will fix your issue.
If you don't use binlogs set innodb_support_xa to OFF as well.

@butch2k: thanks, that seems to have done the trick. I haven't seen any slow queries since making those changes.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: hd00842 on February 13, 2014, 04:51:46 AM
hi, I'm using the SMF 2.0 RC1.2, the log errors system report the thousands of line:
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: live627 on February 19, 2014, 04:32:32 AM
SMF 2.0 RC1.2 is unsupported and has many security holes. Upgrade immediately!!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: GHarper on July 17, 2014, 04:24:31 PM
Hi, is there a way to make this compatible with Crip's Blackrain V3 theme? I'm currently on SMF 2.0.8. I'd love to use this mod but I'm not competent enough at coding to do it myself  :P.

Thanks,
Greg
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 17, 2014, 05:11:33 PM
Do you get an error on install on other themes when you try?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: GHarper on July 17, 2014, 10:46:21 PM
No, I have not tried to install it yet due to SMF recommending that I not install it, as several processes are not able to be completed.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ppedja on August 07, 2014, 03:00:46 PM
hy
nice mod
but why my users getting again and again same notification
sometimes me got the notification of 6 months old reply of post
plz help

Same problem here.

And here. Any solution or explanation?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on August 07, 2014, 03:26:42 PM
Could be if they mark stuff as unread again it comes back?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: samborabora on August 26, 2014, 07:42:09 PM
Can these notifications be viewed on their own page instead of a popup? Does it notify for quoted posts as well as replied topics?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on August 26, 2014, 09:51:59 PM
Not at the moment. Quoted posts if it is a reply yes it would
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: MarkJ on August 27, 2014, 06:29:49 AM
I've lost the notifications on forum replies but they still work on the pms.  Both are ticked in Admin.  A javascript conflict going on maybe?  I have recently installed Ultimate Profile but on uninstalling the package I still can't get the notifications back.

On checking the database the pms are being stored but not the enotify forum replies.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vkot on September 03, 2014, 01:49:50 AM
I am reading about problems because of heavy load, and I don't know if I should install this mod. Can you give me a hint?
My forum is running for 14 years now, and has about 400000 posts in 27000 topics from 38000 members. The members and guests online are about 100-200 (so, members only, are much less)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Obcy on October 12, 2014, 11:35:24 AM
Is it possible?
Enotify use to notifications for private messages
Name (This is the displayed name that people will see ) not username as it is now.
Sorry for my english
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sagar_king on October 13, 2014, 07:48:56 AM
how to remove it even I have uninstalled their is still say Enotify in footer
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 13, 2014, 07:59:16 AM
Attach your Sources/Querystring.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sagar_king on October 14, 2014, 02:33:07 AM
Attach your Sources/Querystring.php
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: konstantinos2424 on October 14, 2014, 05:30:08 AM
Hello, I installed Enotify and when I go to configuration tab every option gives me this error: Fatal error: Cannot redeclare enotify() (previously declared in /home/user/public_html/forum/Sources/ManageSettings.php:2141) in /home/user/public_html/forum/Sources/ManageSettings.php on line 2311. How do I fix this? Thank you! :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 14, 2014, 08:42:30 AM
Hello, I installed Enotify and when I go to configuration tab every option gives me this error: Fatal error: Cannot redeclare enotify() (previously declared in /home/user/public_html/forum/Sources/ManageSettings.php:2141) in /home/user/public_html/forum/Sources/ManageSettings.php on line 2311. How do I fix this? Thank you! :)
Attach your sources/managesettings.php file.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 14, 2014, 08:44:42 AM
Attach your Sources/Querystring.php
Updated file attached
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: konstantinos2424 on October 14, 2014, 12:23:16 PM
Hello, I installed Enotify and when I go to configuration tab every option gives me this error: Fatal error: Cannot redeclare enotify() (previously declared in /home/user/public_html/forum/Sources/ManageSettings.php:2141) in /home/user/public_html/forum/Sources/ManageSettings.php on line 2311. How do I fix this? Thank you! :)
Attach your sources/managesettings.php file.

Here it is.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 14, 2014, 12:37:37 PM
Updated file attached
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: konstantinos2424 on October 14, 2014, 04:57:30 PM
Updated file attached
Perfect! Thanks a lot! :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 14, 2014, 05:49:08 PM
Glad to help.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Sagar_king on October 16, 2014, 01:22:03 AM
Attach your Sources/Querystring.php
Updated file attached
Thanks buddy really helpful
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 16, 2014, 10:45:58 AM
No problem.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Elizabeth II on October 20, 2014, 06:55:47 PM
Just installed it no errors. When I try to go to the Enotify config page it doesn't load anything at all, just a blank page?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 20, 2014, 07:21:02 PM
Like a white blank page?
More than likely error in your Sources/ManageSettings.php file
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Elizabeth II on October 20, 2014, 08:29:58 PM
Yes a white blank page

I can't seem to see anything wrong?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 20, 2014, 10:39:53 PM
enotify was installed twice uploaded fixed file
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Elizabeth II on October 21, 2014, 07:29:33 AM
enotify was installed twice uploaded fixed file

Thank you for that!
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on October 21, 2014, 11:39:07 AM
Glad to help
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Ninja ZX-10RR on December 01, 2014, 08:54:42 PM
Hei vbgamer :) I'd like to know something about this... How much does this thing load the server? Somehow like a chatbar or a shoutbox or more? Perhaps less?
Thanks in advance :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 01, 2014, 08:56:07 PM
Closer to a  shoutbox in terms of resources.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Ninja ZX-10RR on December 02, 2014, 02:46:57 AM
Copy that, thanks! :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Obcy on December 05, 2014, 12:17:52 PM
(https://dl.dropboxusercontent.com/u/17000521/Forum/enotify.jpg)
I am not logged into the board. How to disable guest enotify ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 05, 2014, 12:47:01 PM
I need to double check but close any other browser windows that you might have open while you were still logged in.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Obcy on December 05, 2014, 01:04:00 PM
Clear all cache firefox. Not loged in site . Problem still exist
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: 420Connect.co.uk on December 10, 2014, 05:25:39 AM
I'm using this mod and Invitation Message In Your Face [IMIYF] (http://custom.simplemachines.org/mods/index.php?mod=3107)

Both use the jgrowl notification things and have slightly different set ups.

I found when I had them both installed, the coding of one, took over the other (made the pop-up's semi transparent white, instead of black)

I've played around with the #FFF and #000 but now seem to be stuck with a completely black pop up :(

Much appreciated if anyone who knows what they're doing can merge these files so they work nicely! :) (attached)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on December 10, 2014, 05:17:12 PM
Look at the page source, it is loading the css files twice (I mean, both files)... you should check it and left just 1 there... then try to addapt that to your needs

+

jquery.jgrowl.min.js is already present in the enotify.js (do not know which version is in there)

+

you are loading jquery file (the main function file, jquery) several times too
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: 420Connect.co.uk on December 13, 2014, 06:32:08 AM
I've only got one of them uploaded at a time and have no idea what jgrowl really is to be honest :P
another 'issue' i've found is sometimes, I get a HUGE stream of notifications, like I've never seen any of them before?

Any assistance appreciated! :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: luuuciano on December 13, 2014, 11:00:22 AM
jgrowl is the "engine" that shows the notifications, enotify uses it too (embed inside)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on December 17, 2014, 03:30:00 PM
Does eNotify use any sort of caching?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on December 17, 2014, 03:34:16 PM
None. The queries are different for each user.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on December 17, 2014, 04:10:19 PM
Can't you have one for each member by including their member ID?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on December 17, 2014, 04:14:54 PM
There really is no good way to do this.

Getting every user's data all at once and caching that would cause massive cache fragmentation (= very slow, screws everything else up)

Getting each individual user's data and caching those as individual items would also cause massive cache fragmentation since you'd have to rebuild it frequently causing stuff to be moved in and out of cache a lot.

This is not uncommon to other platforms that do this, e.g. this is the reason Discourse will not run on anything less than 1GB RAM VPS (at all, they recommend 2GB RAM minimum just to start out, and by the time you hit 100k posts you can expect to be on a 4GB RAM VPS for that)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on December 17, 2014, 05:00:11 PM
I think what I might do is simply incorporate the jgrowl to display PM popup notifications. It's the closest thing I believe to the notifications system incorporated in SMF 2.1. Real-time notifications, while convenient aren't really necessary, since most users get notifications via PM anyway. Correct me if I'm wrong.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on December 17, 2014, 05:02:07 PM
Only if you added it.

Users do not get notifications of anything by PM in 1.1. There's PMs, there's newsletters as PMs, but that's about it; 1.1 doesn't even have a warning system (which in 2.0 does notify by PM)

Even 2.1's notifications system isn't strictly real time.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on December 17, 2014, 05:10:36 PM
There's a mod that adds a warning system to 1.x though. I had to modify heavily though to have it do what I wanted. While it's not as good as the 2.x stock system, it does the job.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Arantor on December 17, 2014, 05:18:37 PM
Because obviously I can read your mind to know you did this ;)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Biology Forums on December 17, 2014, 05:25:03 PM
Haha just looking out for my community.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: NHWD on February 01, 2015, 08:28:29 AM
I think what I might do is simply incorporate the jgrowl to display PM popup notifications. It's the closest thing I believe to the notifications system incorporated in SMF 2.1. Real-time notifications, while convenient aren't really necessary, since most users get notifications via PM anyway. Correct me if I'm wrong.
Would you be willing to package this as a mod to share with us?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: 420Connect.co.uk on February 01, 2015, 08:42:06 AM
I've searched this thread and found others to experience, notifications of "old events" e.g old PM's / topic replies that haven't had a new reply but can't seem to find a cause or 'fix' for it..

maybe I've overlooked something ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: 420Connect.co.uk on February 10, 2015, 07:16:15 AM
Re-approaching this bug..

I think there is possibly some issue with the "Expiration duration of log items:" part.

I've tried various different numbers in the box, waited to test and get the same results.
(Being notified of old 'events')

Much appreciated if you could have a look at this!



Kind Regards
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: Obcy on February 25, 2015, 04:41:50 PM
How to modify enotify notifications pm uses the ( Name This is the displayed name that people will see) not Username ?
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: josx2 on March 11, 2015, 09:29:09 AM
I've searched this thread and found others to experience, notifications of "old events" e.g old PM's / topic replies that haven't had a new reply but can't seem to find a cause or 'fix' for it..

maybe I've overlooked something ?

Re-approaching this bug..

I think there is possibly some issue with the "Expiration duration of log items:" part.

I've tried various different numbers in the box, waited to test and get the same results.
(Being notified of old 'events')

Much appreciated if you could have a look at this!



Kind Regards

I'm experiencing the same problem...wanted to chime in so ya know it's not just you ;-) 
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: CHRIS-7 on April 04, 2015, 11:26:21 PM
This Is a Best Mod

With PM Notifications Work

Thank You SMF Hack.  :)
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: ppedja on July 23, 2015, 05:32:41 PM
Enotify, when installed, increasing the number of page views. From June 18th to July 18th Enotify was uninstalled. I tested again on July 18, I installed enotify and column "page views" began to show big numbers again. Any help?
SMF 2.0.10
Enofy 2.02

In GA "page views" is similar to those days - when Enotify was not active.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: vbgamer45 on July 23, 2015, 05:33:50 PM
It loads more requests per page. Each request is counted as a pageview.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: evilservo on August 22, 2015, 05:14:35 AM
Not working for me sadly ... only a few times it shows notification most of the time it shows nothing
Title: Re: ENotify
Post by: Sorunome on September 29, 2015, 09:22:54 AM
Awesome mod, love it! I noticed it makes the views go weird, though, has some incompatibility with other mods that use jquery and all tabs do the fetching all the time so if you have your forum in multiple tabs at the same time you won't know where the notification appears.

For that I did a few tiny modifications to this mod:
To remove the hit counting that is off:
inside of $boardindex/index.php
Code: [Select]
<operation>
<search position="before"><![CDATA['dlattach', ]]></search>
<add><![CDATA['enotify', ]]></add>
</operation>

For the jQuery thing I noticed that ENotify uses jQuery.noConflict(); and that adding jQuery.noConflict(true); at the end fixes the issue. And I also changed the updates to only happen if the window is in focus, so this is how $sourcedir/Load.php is looking like to me:
Code: [Select]
<file name="$sourcedir/Load.php">
<operation>
<search position="replace"><![CDATA[// Some basic information...
if (!isset($context['html_headers']))
$context['html_headers'] = '';]]></search>
<add><![CDATA[// Some basic information...
if (!isset($context['html_headers']))
$context['html_headers'] = '';

// enotify
global $settings, $modSettings, $scripturl;

$context['html_headers'] .=  '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/jquery.jgrowl.css" />
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/enotify.js"></script>
<script type="text/javascript">
jQuery.noConflict();
(function($){
$(document).ready(function(){
var inUpdates = false,
has_focus = document.hasFocus(),
fetchUpdate = function(){
inUpdates = true;
$.getJSON("' . $scripturl . '?action=enotify",
function(data){
$.each(data.items, function(i,item){
$.jGrowl(item.message, { header: item.title, life: ' . $modSettings['enotify_life'] . ' });
});
}
);
if(!has_focus){
inUpdates = false;
return;
}
setTimeout(fetchUpdate,' .  $modSettings['enotify_refresh'] . ')
};
$(window).focus(function(){
if(!inUpdates){
fetchUpdate();
}
has_focus = true;
}).blur(function(){
has_focus = false;
});
fetchUpdate();
});
})(jQuery);
jQuery.noConflict(true);
</script>';
//end enotify
]]></add>
</operation>
</file>
Hope if anyone else had similar issues I could help out :3
Still an awesome mod, though! :D
Title: Re: ENotify
Post by: SMFHacks.com Team on September 29, 2015, 05:00:51 PM
Thanks for the changes released an update with them!


3.0
!No longer counts enotify calls as hits/improves performance. Thanks to Sorunome
!Fixed some jquery conflicts with some other jquery mods Thanks to Sorunome
!Only updates occur when the windows has focus  Thanks to Sorunome
Title: Re: ENotify
Post by: TrIn@dOr on October 15, 2015, 10:48:51 AM
I have Enotify 2.0.2 and when I try to Uninstall it, I get some errors ...

Please help, I want to install the newest version of Enotify!!

Thanks.

Title: Re: ENotify
Post by: vbgamer45 on October 15, 2015, 10:51:54 AM
Proceed with install then attempt to make the changes manually
http://www.smfhacks.com/smf-package-parser.html
Title: Re: ENotify
Post by: TrIn@dOr on October 15, 2015, 10:58:02 AM
Proceed with install then attempt to make the changes manually
http://www.smfhacks.com/smf-package-parser.html
Thanks, so, should I install 3.0 over 2.0.2 and then make the changes that couldn't be made automatically? (noob here)
Title: Re: ENotify
Post by: vbgamer45 on October 15, 2015, 11:12:55 AM
Yes if you can.
Title: Re: ENotify
Post by: DJ Omnimaga on December 03, 2015, 01:27:54 PM
Awesome mod, love it! I noticed it makes the views go weird, though, has some incompatibility with other mods that use jquery and all tabs do the fetching all the time so if you have your forum in multiple tabs at the same time you won't know where the notification appears.

For that I did a few tiny modifications to this mod:
To remove the hit counting that is off:
inside of $boardindex/index.php
Code: [Select]

For the jQuery thing I noticed that ENotify uses jQuery.noConflict(); and that adding jQuery.noConflict(true); at the end fixes the issue. And I also changed the updates to only happen if the window is in focus, so this is how $sourcedir/Load.php is looking like to me:
Code: [Select]
Hope if anyone else had similar issues I could help out :3
Still an awesome mod, though! :D
Hm that might be handy Sorunome. The only reason why I never used this mod was the fact it inflated the view count by a large margin, especially during busy times where 10 people are online at once. Thanks for the edit :)
Title: Re: ENotify
Post by: samurai-lupin on January 02, 2016, 05:48:48 AM
hello, this is a very neat mod. Unfortunately I'm having two problems:

1. It seems not to be able to display character slike ü. ä. ö etc. correctly.

2. I have the Login Security Mod installed and am unable to make the modifiations in LogInout.php.

It sayss:

Code: [Select]
<file name="$sourcedir/LogInOut.php">
<operation>
<search position="replace"><![CDATA[if (empty($_SESSION['login_url']))]]></search>
<add><![CDATA[if ((!empty($_SESSION['login_url']) && strpos($_SESSION['login_url'], 'enotify')) || empty($_SESSION['login_url']))]]></add>
</operation>
</file>

My code is:

Code: [Select]
// End Login Security Mod

// Load cookie authentication stuff.
require_once($sourcedir . '/Subs-Auth.php');

if (isset($_GET['sa']) && $_GET['sa'] == 'salt' && !$user_info['is_guest'])
{
if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~', $_COOKIE[$cookiename]) === 1)
list (, , $timeout) = @unserialize($_COOKIE[$cookiename]);
elseif (isset($_SESSION['login_' . $cookiename]))
list (, , $timeout) = @unserialize(stripslashes($_SESSION['login_' . $cookiename]));
else
trigger_error('Login2(): Cannot be logged in without a session or cookie', E_USER_ERROR);

$user_settings['passwordSalt'] = substr(md5(mt_rand()), 0, 4);
updateMemberData($ID_MEMBER, array('passwordSalt' => '\'' . $user_settings['passwordSalt'] . '\''));

setLoginCookie($timeout - time(), $ID_MEMBER, sha1($user_settings['passwd'] . $user_settings['passwordSalt']));

redirectexit('action=login2;sa=check;member=' . $ID_MEMBER, $context['server']['needs_login_fix']);
}
// Double check the cookie...
elseif (isset($_GET['sa']) && $_GET['sa'] == 'check')
{
// Strike!  You're outta there!
if ($_GET['member'] != $ID_MEMBER)
fatal_lang_error('login_cookie_error', false);

// Some whitelisting for login_url...
if (empty($_SESSION['login_url']) || strpos($_SESSION['login_url'], 'dlattach') !== false)
redirectexit();
else
{
// Best not to clutter the session data too much...
$temp = $_SESSION['login_url'];
unset($_SESSION['login_url']);

redirectexit($temp);
}
}

// Beyond this point you are assumed to be a guest trying to login.
if (!$user_info['is_guest'])
redirectexit();

// Set the login_url if it's not already set.
if (empty($_SESSION['login_url']) && isset($_SESSION['old_url']) && preg_match('~(board|topic)[=,]~', $_SESSION['old_url']) != 0)
$_SESSION['login_url'] = $_SESSION['old_url'];

// PJL Redirect on login/logout Mod.
if (!empty($modSettings['logon_redirect_enable']) && !empty($modSettings['logon_redirect_url']))
{
if (empty($_SESSION['login_url']) || strpos($_SESSION['login_url'], 'dlattach') !== false)
$_SESSION['login_url'] = $modSettings['logon_redirect_url'];
}
// End Mod.

Can someone please help?

Thanks
Title: Re: ENotify
Post by: samurai-lupin on January 12, 2016, 12:32:29 AM
bump
Title: Re: ENotify
Post by: runningtrades on July 04, 2016, 09:20:34 AM
Seems there is a little bug. Every once in awhile, i will be notified of a topic that is posted in, even though I have already clicked the "Un-notify" button. I will get the notices when i sign in, every few logins.

Running latest version of SMF with TinyPortal
Title: Re: ENotify
Post by: nofapturkiye on June 18, 2018, 06:13:13 PM
Hello ; i need guidance on this problem. Enotfy is not working. i was working before.  How can i find what is causing problem?  there is no notification. i of course activated mod.  Where should i check or what should i check
Title: Re: ENotify
Post by: vbgamer45 on June 18, 2018, 06:14:25 PM
Check what mods you added might have broke it.
Title: Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
Post by: wtfwtf on June 25, 2018, 03:17:26 PM
Re-approaching this bug..

I think there is possibly some issue with the "Expiration duration of log items:" part.

I've tried various different numbers in the box, waited to test and get the same results.
(Being notified of old 'events')

Much appreciated if you could have a look at this!



Kind Regards

have same issue
Title: Re: ENotify
Post by: wtfwtf on June 27, 2018, 05:12:06 PM
now after doing maintenance the enotify no longer works for posts
Title: Re: ENotify
Post by: vbgamer45 on June 27, 2018, 05:19:19 PM
What kind of maintenance.
Title: Re: ENotify
Post by: wtfwtf on June 29, 2018, 04:31:27 PM
What kind of maintenance.

the standard forum maintenance , in admin panel

or possibly scheduled tasks change.

one of the 2
Title: Re: ENotify
Post by: vbgamer45 on June 29, 2018, 04:50:10 PM
Strange
Title: Re: ENotify
Post by: efk on July 08, 2018, 05:53:34 PM
Hi, is it possible modification on this mod to come with sound notification?
https://www.simplemachines.org/community/index.php?topic=560728.msg3979647#msg3979647
Title: Re: ENotify
Post by: Ilkharnos on August 01, 2018, 08:33:52 AM
Hello,

In the manual installation instructions:

Subs.php
Find:
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false
Replace With:
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=enotify') === false

I can't do this operation because in my Subs.php, this section looks like:

Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false)

When I change this section, my site fails to load. So I skipped this part and finished the installation. Modification seems to work, but it works without this code. I would be happy if you can show me how to add this code without breaking the site.

Thank you in advance.
Title: Re: ENotify
Post by: vbgamer45 on August 01, 2018, 11:11:14 AM
change to
Code: [Select]
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=enotify') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false)
Title: Re: ENotify
Post by: Ilkharnos on August 01, 2018, 03:31:32 PM
Thank you very much. It works well now.

Regards.
Title: Re: ENotify
Post by: vbgamer45 on August 01, 2018, 03:34:45 PM
Glad to help
Title: Re: ENotify
Post by: vostro1400 on August 13, 2018, 05:05:34 PM
Wow ^^ Nice one Eren :)



Hello guys,

How can i make notification appear on every post.
Title: Re: ENotify
Post by: hannes_kann_es on December 11, 2018, 03:37:39 PM
Are the issues with notification of old posts solved?
Title: Re: ENotify
Post by: vbgamer45 on December 11, 2018, 04:31:29 PM
i havent made any updated about that
Title: Re: ENotify
Post by: Sverige on August 08, 2019, 08:58:00 AM
i just  purchased this mod, but i cant find where to remove the the link in footer, pls help
Title: Re: ENotify
Post by: vbgamer45 on August 08, 2019, 09:00:56 AM
In this case you must modify Sources/QueryString.php there is a line for enotify.