Advertisement:

Author Topic: ENotify  (Read 246646 times)

Offline samurai-lupin

  • Full Member
  • ***
  • Posts: 522
Re: ENotify
« Reply #860 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

Offline samurai-lupin

  • Full Member
  • ***
  • Posts: 522
Re: ENotify
« Reply #861 on: January 12, 2016, 12:32:29 AM »
bump

Offline runningtrades

  • Semi-Newbie
  • *
  • Posts: 46
Re: ENotify
« Reply #862 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

Offline nofapturkiye

  • Semi-Newbie
  • *
  • Posts: 44
Re: ENotify
« Reply #863 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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: ENotify
« Reply #864 on: June 18, 2018, 06:14:25 PM »
Check what mods you added might have broke it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline wtfwtf

  • Semi-Newbie
  • *
  • Posts: 94
Re: ENotify - New Version 2.0! - Now Works with SMF 1.1.x and SMF 2.0!
« Reply #865 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

Offline wtfwtf

  • Semi-Newbie
  • *
  • Posts: 94
Re: ENotify
« Reply #866 on: June 27, 2018, 05:12:06 PM »
now after doing maintenance the enotify no longer works for posts

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: ENotify
« Reply #867 on: June 27, 2018, 05:19:19 PM »
What kind of maintenance.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline wtfwtf

  • Semi-Newbie
  • *
  • Posts: 94
Re: ENotify
« Reply #868 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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: ENotify
« Reply #869 on: June 29, 2018, 04:50:10 PM »
Strange
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline efk

  • Jr. Member
  • **
  • Posts: 162
  • Gender: Male
Re: ENotify
« Reply #870 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

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 128
  • Gender: Male
    • Kara Miğfer Hanı
Re: ENotify
« Reply #871 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.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: ENotify
« Reply #872 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)
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 128
  • Gender: Male
    • Kara Miğfer Hanı
Re: ENotify
« Reply #873 on: August 01, 2018, 03:31:32 PM »
Thank you very much. It works well now.

Regards.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: ENotify
« Reply #874 on: August 01, 2018, 03:34:45 PM »
Glad to help
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline vostro1400

  • Semi-Newbie
  • *
  • Posts: 42
Re: ENotify
« Reply #875 on: August 13, 2018, 05:05:34 PM »
Wow ^^ Nice one Eren :)



Hello guys,

How can i make notification appear on every post.

Offline hannes_kann_es

  • Semi-Newbie
  • *
  • Posts: 11
Re: ENotify
« Reply #876 on: December 11, 2018, 03:37:39 PM »
Are the issues with notification of old posts solved?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: ENotify
« Reply #877 on: December 11, 2018, 04:31:29 PM »
i havent made any updated about that
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Sverige

  • Semi-Newbie
  • *
  • Posts: 20
Re: ENotify
« Reply #878 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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: ENotify
« Reply #879 on: August 08, 2019, 09:00:56 AM »
In this case you must modify Sources/QueryString.php there is a line for enotify.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro