Enhanced PM Popup 1.0.1 Replace the PM popup with a nice CSS Styled box. Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2283) | Comment On This Mod (http://www.simplemachines.org/community/index.php?action=post;topic=349640)
| Author: Spuds (http://custom.simplemachines.org/mods/index.php?action=profile;u=11359) Type: Theme Enhancements (http://custom.simplemachines.org/mods/index.php?action=search;type=3) Available since: November 21 2009 Latest version: 1.0.1 (June 27 2011) Compatible with: SMF 2.0 Available languages: (http://www.simplemachines.org/site_images/lang/english.gif) (http://www.simplemachines.org/site_images/lang/english_british.gif) (http://www.simplemachines.org/site_images/lang/swedish.gif) (http://www.simplemachines.org/site_images/lang/french.gif) (http://www.simplemachines.org/site_images/lang/romanian.gif) (http://www.simplemachines.org/site_images/lang/spanish.gif) (http://www.simplemachines.org/site_images/lang/portuguese_pt.gif) (http://www.simplemachines.org/site_images/lang/portuguese_brazilian.gif) (http://www.simplemachines.org/site_images/lang/italian.gif) (http://www.simplemachines.org/site_images/lang/arabic.gif)
|
What does it do?Enhanced PM Popup will replace the alert box that popups on a new PM (If enabled through the profile) to a nicer box made with CSS and HTML.
See screenshot for a preview.
How to useTo use
Enhanced PM Popup, download the package from the SMF customization site (http://custom.simplemachines.org/mods/index.php?mod=****), and install it via your Package Manger (http://docs.simplemachines.org/index.php?topic=95).
All users who have enabled the PM popup through their profile will now see the new box when they recieve a new personal message.
Support & commentsIf you have a problem with this mod, want to comment, or have any question, please post to the modification support topic (http://www.simplemachines.org/community/index.php?action=post;topic=349640) and I will reply as soon as possible.
Other informationTranslation of this modo I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the support topic (http://www.simplemachines.org/community/index.php?action=post;topic=349640).
Please make sure you have translated everything, and that there are no spelling misstakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.
awesome, will test it now :D
Nice One.
Arabic Translation :
Quote<file name="$languagedir/Modifications.arabic-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pm_popup'] = 'لديك رسائل شخصية جديدة';
$txt['pm_popup_close'] = 'إغلاق';
]]></add>
</operation>
</file>
Quote<file name="$languagedir/Modifications.arabic.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pm_popup'] = 'لديك رسائل شخصية جديدة';
$txt['pm_popup_close'] = 'إغلاق';
]]></add>
</operation>
</file>
Awsome mod. Looks very nice.
Good idea. How about a check box to disable the Popup message on a Yes/No click. So that new members who want to remove it don't have to dig in their profile options.
Looks great, really nice idea Nas ;)
Very nice mod.
Romanian Translation
</file>
<file name="$languagedir/Modifications.romanian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pm_popup'] = 'Ai primit un Mesaj Privat';
$txt['pm_popup_close'] = 'Inchide';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.romanian.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pm_popup'] = 'Ai primit un Mesaj Privat';
$txt['pm_popup_close'] = 'Inchide';
]]></add>
</operation>
</file>
ok, here's the problem, there is an overlap between the menu bar (messages, home, forum,....) and the popup, any explanation for that?
Great mod!! Thanks!
Spanish Translation:
<file name="$languagedir/Modifications.spanish_latin.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pm_popup'] = 'Usted Tiene Nuevos Mensajes Privados';
$txt['pm_popup_close'] = 'Cerrar';
]]></add>
</operation>
</file> [code]
Very Good Mod. Will Use This!!
Quote from: drhamza on November 23, 2009, 12:28:11 PM
ok, here's the problem, there is an overlap between the menu bar (messages, home, forum,....) and the popup, any explanation for that?
Any fix for this?
Quote from: drhamza on November 23, 2009, 12:28:11 PM
ok, here's the problem, there is an overlap between the menu bar (messages, home, forum,....) and the popup, any explanation for that?
I do not have this issue.
searchgr: Please provide a screenshot showing the exact problem and also confirm what browser you're on.
Thank you.
French translation
<file name="$languagedir/Modifications.french-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pm_popup'] = 'Vous avez de nouveaux messages personnels';
$txt['pm_popup_close'] = 'Fermer';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.french.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['pm_popup'] = 'Vous avez de nouveaux messages personnels';
$txt['pm_popup_close'] = 'Fermer';
]]></add>
</operation>
</file>
On installing the message pop up mod I find the top dark blue area is transparent - as can be seen from the image. Can this be made non-transparent.
(http://pic20.picturetrail.com/VOL1364/11129867/22756284/378673967.jpg)
portuguese_pt
// Enhanced PM Popup
// Translated by Costa
$txt['pm_popup'] = 'Você tem novas Mensagens';
$txt['pm_popup_close'] = 'Fechar';
portuguese_brazilian
// Enhanced PM Popup
// Translated by Costa
$txt['pm_popup'] = 'Você tem novas Mensagens';
$txt['pm_popup_close'] = 'Fechar';
portuguese_pt-utf8
// Enhanced PM Popup
// Translated by Costa
$txt['pm_popup'] = 'Você tem novas Mensagens';
$txt['pm_popup_close'] = 'Fechar';
portuguese_brazilian-utf8
// Enhanced PM Popup
// Translated by Costa
$txt['pm_popup'] = 'Você tem novas Mensagens';
$txt['pm_popup_close'] = 'Fechar';
Quote from: Plantsman on December 01, 2009, 09:37:57 AM
On installing the message pop up mod I find the top dark blue area is transparent - as can be seen from the image. Can this be made non-transparent.
(http://pic20.picturetrail.com/VOL1364/11129867/22756284/378673967.jpg)
Same thing happens on my forum.
What browser?
IE7 for me Arantor. I didn't know my browser would have any influence over my board - just goes to show we need you chaps to enlighten us. :)
Each of the browsers does things slightly differently; it works as expected in Chrome for example (otherwise I wouldn't have approved it.
Nas should see this shortly and get a fix out hopefully.
FF 3.0.15 for me
yup, me too, i use FF 3.5.5
Uh, that's odd. I'll look at it.
Thanks Arantor and Nas
This should now be fixed, simply download and install the new package at the mod site.
Also, thanks to Arantor for helping me reproducing the error. :)
Thanks - all OK now.
Plantsman
Plantsman: Great to know :)
Slightly weird error this one, only presents itself if you don't have the window full screen so that the popup overlays the menu - neither I nor Nas do that normally, which is why neither of us spotted it originally.
italian translation:
$txt['pm_popup'] = 'Hai un nuovo messaggio personale';
$txt['pm_popup_close'] = 'Chiudi';
Great mod Nas!
I have a little suggestion: what do you think to make the corners rounded so that it will feat the core theme?
Thanks!
Actually, they were rounded early on during development. However, if you look at Curves main_block.png you'll notice that the edges on each "block" are white, meaning that if I'd be to use them in the popup, it'd be more like a square still, but an awful square, with white edges. :P
You could do it rounded if you were to create your own images though, and be very careful about the layout/markup used.
Well yeah, I was thinking the same, but that means that said images would have to be customized for each theme to fit in.
If you'll use .png transparent I think it will not be necessary a customization for each theme. If I would be a designer I would help you with the images, but I'm really not...
Yes, it will. Curve is blue. Imagine someone wanting to use this mod on a red theme. The popup stays blue. That won't look good.
I can do the images, it's simple, but it'd make the mod less user friendly.
Really useful and great-looking!
One question, however; is it possible to make the box "follow" you down the page? So that if you scroll down the forums, the box will follow you and won't stay at the top out of sight?
The box is following me! I don't know why it isn't working for you... maybe it doesn't like you sufficiently to follow you :o
Quote from: shumilica on December 14, 2009, 02:12:09 PM
The box is following me! I don't know why it isn't working for you... maybe it doesn't like you sufficiently to follow you :o
Bah, must be Chrome doing it :/
What version of Chrome?
3.0.195.38.
Ah, see when I tested this I was using the 4.0 branch (and you can't make them co-exist)
But it works fine in 4.0.x.
Quote from: The Grinch on December 21, 2009, 02:45:52 PM
Ah, see when I tested this I was using the 4.0 branch (and you can't make them co-exist)
But it works fine in 4.0.x.
Bah, my Chrome says it's up to date. Will update manually ASAP, didn't realise a 4.x branch existed yet.
4.0 is the beta branch, 3.0 is the current stable branch.
How would I make this Mod the default setting for All current / New members with the Option being to Disable it instead of Enable.
Thanks......
I am trying to install this mod to SMF 2.0 RC1.2, and i got two errors in index.template.php:
can not find this:
var fPmPopup = function ()
{
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}
and the second error, can not find this one:
echo !empty($settings['forum_width']) ? '
these lines are really not found, i've checked. Well, the first one is there but just without the «var fPmPopup = function ()» part, but the second is'nt.
That's probably one of the things that changed in the theme since 2.0 RC1.2 - this isn't available for 2.0 RC1.2 as far as I know... given that it was published two weeks after RC2 debuted...
Arantor
Can you maybe tell me where the replaced lines should be in the index.template.php? perhaps the mod should search for other lines... i can send you the copy of index file if needed, so you can see where it should be added?
I really don't have the energy or inclination to backport an RC2 mod to the quite different code in 2.0 RC1.2, sorry :(
Quote from: Arantor on February 07, 2010, 10:46:51 AM
I really don't have the energy or inclination to backport an RC2 mod to the quite different code in 2.0 RC1.2, sorry :(
:(
Perhaps you can please just send me the index file from RC2? i will look at it and try to figure out where i should add the lines...
It's in the RC2 download from the downloads page.
Thanks.
I think it is time for you to upgrade. Great mod Nas it looks way better and now I can actually open my pm's in a new page without it getting blocked.
Nice PM, just a little modification to get it to work with another theme.
Thanks
I just wanted to ask a question regarding PM notification, in the profile there is an option to select for an email to be sent when a PM has been received.
It doesn't work on the forum that I use, is that a known problem or is there a fix for it?
hi! very nice mod! Im using it
Here you have the lines for
Modifications.spanish_latin-utf8.php
Modifications.spanish_latin.php
and
Modifications.spanish-utf8.php
Modifications.spanish.php
$txt['pm_popup'] = 'Tienes nuevos mensajes privados';
$txt['pm_popup_close'] = 'Cerrar';
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
eclips, emulation for RC2 worked fine with me
Transparency issue here. Check it.
Quote from: MATTEK on April 29, 2010, 10:56:19 PM
Transparency issue here. Check it.
Clear the forum cache?
Using mod version 1.0.1? This was fixed ages ago.
For more than send me PM, I never showing anything as if did not work.
PLEASE HELP
Hola, instale este mod (muy bueno e importante) se instala sin error alguno. Pero cuando me envian Pm no me marca nada =(
¿Que creen que sea?
---------------ENGLISH--------------------------
Hello, install this mod (very good and important) is installed without error. But when I send Pm me not showing anything.
What do you think it?
----------------------------------------------------
si saben español me lo escriben. Mi ingles es algo malo :3
Saludos
how can i instaaled it on theme core?
it's not work :(
This works on RC4 without any edits.
Some themes uses a big menu z-index value
For example actualism, by crip, uses 1000... and the pm div was hidden behind it
I had to change the #pm_popup z-index value to 2000 (for example)
(just for the records, and maybe someone will have the same issue)
I've installed the mod, but I realize all members will have to go to their profile and choose to enable this feature. I've searched high and low through the admincp, and maybe i've missed it but does anyone know of a way to enable this feature for all my existing members. I have over 3k and don't want to have to newsletter the whole site about something as small as this.
Quote from: dsbhbzx2k on February 18, 2011, 10:57:53 AM
I've installed the mod, but I realize all members will have to go to their profile and choose to enable this feature. I've searched high and low through the admincp, and maybe i've missed it but does anyone know of a way to enable this feature for all my existing members. I have over 3k and don't want to have to newsletter the whole site about something as small as this.
Thats a theme setting ... admin->configuration->themes and layout->member options .... find your theme and edit settings for all members ... find "Show a popup when I receive new messages.", check it and select change in the dropdown and save.
Great Mod!
Just D/L and am really liking this MOD running RC5 and really needed no manual fixes Thanks!
Question I have is: Using IE8 the pop up does not seem to be working. It works in Firefox, Safari, Chrome Is there some type of an IE issue that I'm missing somewhere?
Thanks for any help.
I have error when install, can not find to replace: index.template.php (My theme)
Code: (Find) [Select]
echo !empty($settings['forum_width']) ? '
SMF 2.0
You will have to add that section "by hand", in your template...
Try after the <body> tag
As allways, do a file backup first
Most browsers use tabs now, that I've seen, any way... will this open in new tabs or a new window ?
Neither ... its a popup, just like the default SMF pm notification popup, but this one has some specific styling vs browser default. Why would you want to be notified of a new PM in a new browser tab, just curious.
Quote from: Spuds on October 09, 2011, 01:03:54 PM
Neither ... its a popup, just like the default SMF pm notification popup, but this one has some specific styling vs browser default. Why would you want to be notified of a new PM in a new browser tab, just curious.
I meant when it asks if you want to open the PM inbox in a new window vs the existing one.
It is not a pop up like the SMF... it is a div, that looks like a popup... (the message)
MoreBloodWine, I think that depends on browser configuration... most of them will open a new tab I think (when you clic on the link message)
russian:
$txt['pm_popup'] = 'Новые непрочитанные сообщения';
$txt['pm_popup_close'] = 'Закрыть';
Quote from: pjn on August 17, 2010, 12:36:52 PM
how can i instaaled it on theme core?
it's not work :(
paste this code
// If we have new PMs...
if($context['show_pm_popup'])
echo '
<div id="pm_popup" class="windowbg">
<h5 class="catbg">
<span class="floatright"><a href="#" onclick="closefPmPopup()"><img src="', $settings['images_url'], '/icons/quick_remove.gif" alt="', $txt['pm_popup_close'], '" /></a></span>
', $txt['pm_popup'], ' [', $context['user']['unread_messages'], ']
</h5>
<p class="content">
', str_replace('\n', '<br />', $txt['show_personal_messages']), '<br /><br />
<a href="', $scripturl, '?action=pm" target="_blank" onclick="closefPmPopup()"><img src="', $settings['images_url'], '/icons/package_installed.gif" alt="" /> ', $txt['yes'], '</a> <a href="#" onclick="closefPmPopup()"><img src="', $settings['images_url'], '/icons/package_old.gif" alt="" /> ', $txt['no'], '</a>
</p>
</div>';
before this ;)
echo '
<div id="mainframe"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
see the pic. luck!
Can I change the box to fit the theme colours? And, can I add some small image to that box?
The box uses the themes windowbg css style, so if the theme changed that style the popup will follow. There are a few items specific to the popup, those are added to the bottom of the main index.css files and that would have to be tweaked to your liking (e.g. border color)
Tyvm Spuds for your time..
I will give it a try.
EDIT:
Well, after a few trys i could make it work in the theme im using.. The box its quite cool, really. :)
Just a few more questions, if you want to answer:
- How can i make the box go to the lower right corner? And if possible make it with animation ( appearing down moving to the final position)
- How can i set it to keep poping (every page refresh/change) until the user read the message?
- How can i add a small sound to it?
Sorry for my EN and ty for all the help.
No one..?
Thats like buying a house and adding 3 more levels...
Lol Luciano.. ;D
Ive made it to go it the lower right corner, but only that.. Ive asked cause I a similar PM popup in another site and thought that wouldnt be soo hard. Look like it is.
And only the sound? Is it a "full level" or can be made with just some lines..? ::)
anyone have this problem? it happen with chrome not my ff
Nope .. thats a new one ... what version of chrome are you running ? As a first thought it would appear to be a css overwite of some sort but don't know why you would only see it in chrome.
Hi guys
I've installed the mod, but get a problem in the top left hand corner as per the screen shot
I'm using a template called TotallyBlue, smf 2.0.1, firefox 8.0
My site is Link To My Site (http://www.valehosting.co.uk/forums)
Thanks
Graham
Looks like you got it fixed ?
It looks like your Modifications.english.php is not well formed (or the language file you are using)
Attach it here
Quote from: luuuciano on January 03, 2011, 09:21:34 PM
Some themes uses a big menu z-index value
For example actualism, by crip, uses 1000... and the pm div was hidden behind it
I had to change the #pm_popup z-index value to 2000 (for example)
(just for the records, and maybe someone will have the same issue)
Hi, would you mind explaining how I change that value as I use Actualism theme and can't get this mod to work.
Thank you.
Look at
$themedir/css/index.css
the z-index value for #pm_popup is 2000?
maybe you have another problem, and not that....
Hi thanks luuuciano, I don't think this can be installed on the actualism theme, it fails on index.template and the edits required do not fit with that index.template.
Well... I used it, long time ago... do not remember how to, maybe I added that codes by hand
Quote from: simon36 on April 20, 2012, 09:43:36 AM
Hi thanks luuuciano, I don't think this can be installed on the actualism theme, it fails on index.template and the edits required do not fit with that index.template.
Then you'll need to do all the failed edits manually. It failed on every custom theme I have installed (3).
Thanks, I think actualism changes too much and I have looked and I don't think the edit is possible to install.
Does this work when you're in WAP/WAP2 mode?
No, it won't. The standard template is not used in WAP/WAP2 mode.
I have installed the Enhanced PM Popup. I have went in both my profile as well as the Theme settings (Havvo) in the Admin and enabled Showing of popups on receipt of new messages.
During a test, I received the plain looking browser (Chrome Version 34.0.1847.131 m) popup alert telling me that I had received a new message, would I like to open new window and view my messages. Upon clicking OK, the mod did nothing. The Popup alert disappeared. It never opened a new window and took me to my new messages.
The second thing I need to know is, where (what files) do you edit to customize the look of the popup?
The first issue is my most important one.
Also note: I tried to uninstall this mod and cannot, due to massive errors from a previous mod called Highslide
I uninstalled Highslide in order to uninstall the Enhanced PM popup mod. I then received a notice from the SMF software's package manager stating that the mod Enhanced PM Popup was either never installed or has already been uninstalled and cannot be uninstalled now.
I hope there is someone out there that can assist with this issue.
Have you tried installing it manually?
I have finally gotten the Enhanced PM Popup working ;D
I had to manually edit the files to get it uninstalled after removing Highslide.
I then re-installed it via the package manager and made certain everything to do with PM popups was enabled.
It works very well now.
Now onto the second part of my question, and that is customization.
Where or What file(s) do I need to edit change the boring look of the popup?
Thanks for any help you can provide.
Go to: /Themes/default/css/index.css
Find:
/* Personal message popup */
I like this mod and the popup matches the current default curve theme really well.
One bug though, when it pops up and you click yes it doesn't reset your unread message count. What I mean is say you get one new message and you click on the popup to read it, then when you go back to the main index page it still says My Messages (1) in the menu. Even if you refresh the page it still says My Messages (1) .
Is there anyway to correct this? It looks like something that was just overlooked.
Oh, it looks like its a cache issue and probably not this mod.
I turned off the SMF file based caching and cleared it and now the problem is gone. My Messages (1) changes to just My Messages after reading a PM now via the pop up.
Doesn't seem to work on 2.0.17.
No serious errors during the install (the only error is for "core theme", which i don't use anyway), but nothing happens when new pm is sent. Just a number at the top as usual.
The modder hasn't been here since 2014 and I can't even pm them (I get "User 'Spuds' has blocked your personal message"). So there isn't much hope for him to return to fix this.
Maybe someone could try to help me to figure out how to make this thing work in 2.0.17?
I guess the answer is no. Oh well. I guess we'll have to live with the default.
Parse the mod on the mod site and install it manually....or try to install it and any part that does fail, just do those edits manually. It should work fine.