Is there anyway to remove the dialog pop up for the new pm? I've looked and only managed to find the call in index.template.php but that doesnt seem to work.
you can disable in your profile, but some people do find it useful to get the popup so they know they have received a PM. you can disable it under look and layout preferences.
Quote from: Illori on November 16, 2016, 04:01:55 PM
you can disable in your profile, but some people do find it useful to get the popup so they know they have received a PM. you can disable it under look and layout preferences.
I plan on adding a different notification solution, and would like to disable the one that SMF comes with completely.
Hello!
I've found a Mod that changes the style of that popup. Ypu can have a look at it if you want: http://custom.simplemachines.org/mods/index.php?mod=2283
And just to know if that Mod isn't what you want. What's exactly your idea for that popup?
Regards :)
I was going to use this http://custom.simplemachines.org/mods/index.php?mod=1202
and remove the pop up(http://i.imgur.com/Go8b49r.png)
Pretty sure that mod replaces out the one you don't want anyway.
Quote from: Arantor on November 17, 2016, 04:13:54 AM
Pretty sure that mod replaces out the one you don't want anyway.
Nope, it even says it doesn't in the mod info.
Where does it say that? I didn't see that on the mod page.
Quote from: Arantor on November 18, 2016, 02:37:12 AM
Where does it say that? I didn't see that on the mod page.
oh my bad, in the support thread linked in the mod. seriously though, I've had it installed (just to make sure before even posting) to see if it did remove/change that dialog and i didn't thats why im posting here
Quote from: an1m4l on November 18, 2016, 03:41:07 AM
Quote from: Arantor on November 18, 2016, 02:37:12 AM
Where does it say that? I didn't see that on the mod page.
oh my bad, in the support thread linked in the mod. seriously though, I've had it installed (just to make sure before even posting) to see if it did remove/change that dialog and i didn't thats why im posting here
okey did u found a way to remove the old one??
Possibly, but I believe it's breaking things
okay i know two ways here is (one) u can remove this in index.template :
(index.template in that theme u use not default.)
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}
addLoadEvent(fPmPopup);' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>
yeah thats the one, when I remove it no problem, add in the mod and no loads xD time to work this out
Replace with:
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>
Quote from: Arantor on November 19, 2016, 03:21:12 AM
Replace with:
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>
w00t+ (y)
Just wanted to say thanks quick, worked like a charm! :)