News:

Wondering if this will always be free?  See why free is better.

Main Menu

PM Informer

Started by Diego Andrés, May 31, 2008, 08:12:19 PM

Previous topic - Next topic

NekoJonez

I tried each style but none gave me that.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Shambles

Do you mean the colour or the content [that's showing]? The colour is definitely in the style list; the content shows if you click the 'see last message' link on the banner.

vkot

Cute mod! I didn't install it (yet), but I'll give you the greek translation:

// Start PM Informer mod by Nas
$txt['pmi_title'] = 'Έχετε %s μη αναγνωσμένα μηνύματα!';
$txt['pmi_view_all'] = '[Εμφάνιση όλων]';
$txt['pmi_style'] = 'Το στυλ του PM Informer';
$txt['pmi_attention'] = 'Προσοχή!';
$txt['pmi_last'] = 'Εμφάνιση τελευταίου μηνύματος.';
$txt['pmi_hide'] = 'Απόκρυψη.';
$txt['caohb'] = 'Επιλέξτε';
// End PM Informer mod by Nas
For specialized SMF installation/customization, Web Development, Linux Server Administration, click here.
Για εξειδικευμένες υπηρεσίες στα παραπάνω, πατήστε εδώ.

NekoJonez

Quote from: Shambles on February 02, 2014, 11:36:41 AM
Do you mean the colour or the content [that's showing]? The colour is definitely in the style list; the content shows if you click the 'see last message' link on the banner.

I don't get the info about the PM itself showing. Like from who and such.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Shambles

Try a different "style of PM informer" in the settings - you should see a link on the PM popup entitled "see last message", which should summarise the PM as in that screenshot you mentioned.

krittin98

I am not getting anything like the screenshot in attachments

even though I have an unread personal message
I also tried changing the styles under Configuration>Modification Settings>Miscellaneous

The Team K Developers
www.theteamk.co.nr

Diego Andrés

Quote from: krittin98 on February 11, 2014, 12:37:19 PM
I am not getting anything like the screenshot in attachments

even though I have an unread personal message
I also tried changing the styles under Configuration>Modification Settings>Miscellaneous

Are you talking about the message? You have to click in See last message

SMF Tricks - Free & Premium Responsive Themes for SMF.

NekoJonez

Quote from: Shambles on February 03, 2014, 04:52:31 AM
Try a different "style of PM informer" in the settings - you should see a link on the PM popup entitled "see last message", which should summarise the PM as in that screenshot you mentioned.
Hrmm, kinda having bad luck finding it.

I'll try sometime soon.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

kidzior

Hello, Polish translation:

// Start PM Informer mod by Nas
$txt['pmi_title'] = 'Masz %s nieprzeczytanych wiadomości!';
$txt['pmi_view_all'] = '[Wyświetl wszystkie]';
$txt['pmi_style'] = 'Styl PM Informer';
$txt['pmi_attention'] = 'Uwaga!';
$txt['pmi_last'] = 'Zobacz ostatnią wiadomość.';
$txt['pmi_hide'] = 'Ukryj.';
$txt['caohb'] = 'Wybierz opcję';
// End PM Informer mod by Nas

solematto

hi, italian traslation ready :D

<file name="$languagedir/Modifications.italian.php">
      <operation>
         <search position="end" />
         <add><![CDATA[
// Start PM Informer mod by Nas
$txt['pmi_title'] = 'Hai %s messaggi(o) non letto(i)!';
$txt['pmi_view_all'] = '[Vedi Tutti]';
$txt['pmi_style'] = 'Lo stile di PM Informer';
$txt['pmi_attention'] = 'Attenzione!';
$txt['pmi_last'] = 'Vedi ultimo messaggio.';
$txt['pmi_hide'] = 'Nascondi.';
$txt['caohb'] = 'Scegli un opzione';
// End PM Informer mod by Nas
]]></add>
      </operation>
   </file>

beanflying

Just sorting out some validation errors with a new forum

in PMI.php

Find

<script>!window.jQuery && document.write(unescape(\'%3Cscript src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"%3E%3C/script%3E\'))</script>

Replace with

<script type="text/javascript">!window.jQuery && document.write(unescape(\'%3Cscript src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"%3E%3C/script%3E\'))</script>

I am still getting a validation error with the && if anyone has any clues?
Owner of many many shiny toys.

Biology Forums

My favourite function in the whole mod:

function loadPmInformer()
{
global $scripturl, $db_prefix, $context, $user_info, $smcFunc;

//Gimme the newest pm, if we have.
if(!empty($user_info['unread_messages'])) {
$request = $smcFunc['db_query']('', '
SELECT
pm.id_pm, pm.id_member_from, pm.from_name, pm.msgtime, pm.subject, pm.body, m.real_name
FROM {db_prefix}personal_messages AS pm
LEFT JOIN {db_prefix}pm_recipients AS pmr ON (pmr.id_pm = pm.id_pm)
LEFT JOIN {db_prefix}members AS m ON (pm.id_member_from = m.id_member)
WHERE pmr.is_new = 1 AND pmr.id_member = {int:current_member}
ORDER BY pm.msgtime DESC
LIMIT 1',
array(
'current_member' => $user_info['id'],
)
);
$context['pm_informer'] = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
//You can't be so looongggg. He he. :)
if ($smcFunc['strlen']($row['body']) > 250)
$row['body'] = $smcFunc['substr']($row['body'], 0, 250) . '<a href="' . $scripturl . '?action=pm#msg' . $row['id_pm'] . '">...</a>';

// Build the array.
$context['pm_informer'] = array(
'from' => $row['id_member_from'],
'sender' => $row['real_name'],
'msgtime' => timeformat($row['msgtime'], false),
'subject' => $row['subject'],
'body' => parse_bbc($row['body']),
);
}
$smcFunc['db_free_result']($request);
}
}


Will adopt it to my needs. Thank you for the idea!

Nice mod by the way.

By the way, was the original ever made for 1.x?

Diego Andrés

Yes I think, let me see if I have it

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

Here you go, made a quick search and found it.
It's s bit (a lot) old  :P


SMF Tricks - Free & Premium Responsive Themes for SMF.

Biology Forums

Thank you, Sir. Will implement soon :)

Biology Forums

It came pretty soon... Thanks again. ;D

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

Mike66

I'm trying this mod because the standard SMF pop up doesn't work on any of my themes, including the default. We get a notification email of a new message OK and the main menu will say 'PM Messages (1), but no pop up. All corresponding settings for pop ups are enabled.

This mod installed easily, without problems, but is not producing a pop up for us either. Any ideas?

Best wishes
Mike

Diego Andrés

Take a look at the images attached on the mod page.

SMF Tricks - Free & Premium Responsive Themes for SMF.

w0lfman

I've uninstalled this MOD, but it is still popping up messages.  My users prefer to not have it.  How do I completely uninstall?

Advertisement: