News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Enhanced PM Popup

Started by Spuds, November 22, 2009, 08:12:26 PM

Previous topic - Next topic

pjn

how can i instaaled it on theme core?

it's not work :(
Quick Portal - Free hosting & portal & forums system

Many designs + many extras + server = FREE!

Ask from us your free web now:
http://qp-free.com/index.php/board,2.0.html

Marcus Forsberg

This works on RC4 without any edits.

luuuciano

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)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

dsbhbzx2k

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.

Spuds

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.

ironhide1

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.

lttung

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

luuuciano

You will have to add that section "by hand", in your template...
Try after the <body> tag

As allways, do a file backup first
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

MoreBloodWine

Most browsers use tabs now, that I've seen, any way... will this open in new tabs or a new window ?
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Spuds

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.

MoreBloodWine

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.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


luuuciano

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)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

remingtone

russian:

$txt['pm_popup'] = 'Новые непрочитанные сообщения';
$txt['pm_popup_close'] = 'Закрыть'; 

remingtone

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> &nbsp;&nbsp;&nbsp; <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!

DragoN_PT

Can I change the box to fit the theme colours? And, can I add some small image to that box?

Spuds

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)

DragoN_PT

#76
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.


DragoN_PT


luuuciano

Thats like buying a house and adding 3 more levels...
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

DragoN_PT

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..?  ::)


Advertisement: