News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

ENotify

Started by SMFHacks.com Team, October 18, 2009, 04:40:06 PM

Previous topic - Next topic

samurai-lupin

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:

<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:

// 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

samurai-lupin


runningtrades

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

nofapturkiye

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

vbgamer45

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

wtfwtf

Quote from: 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

have same issue

wtfwtf

now after doing maintenance the enotify no longer works for posts

vbgamer45

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

wtfwtf

Quote from: vbgamer45 on June 27, 2018, 05:19:19 PM
What kind of maintenance.

the standard forum maintenance , in admin panel

or possibly scheduled tasks change.

one of the 2

vbgamer45

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

efk

Hi, is it possible modification on this mod to come with sound notification?
https://www.simplemachines.org/community/index.php?topic=560728.msg3979647#msg3979647

Ilkharnos

Hello,

In the manual installation instructions:

Subs.php
Find:
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false

Replace With:
// 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:

// 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.

vbgamer45

change to

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

Ilkharnos

Thank you very much. It works well now.

Regards.

vbgamer45

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

vostro1400

Quote from: Yağız... on October 18, 2009, 04:43:29 PM
Wow ^^ Nice one Eren :)



Hello guys,

How can i make notification appear on every post.

hannes_kann_es

Are the issues with notification of old posts solved?

vbgamer45

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

Sverige

i just  purchased this mod, but i cant find where to remove the the link in footer, pls help

vbgamer45

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

Advertisement: