Topic: [request] Make "New Private Message" link bright yellow & bold

Many of my forum users are logging on and not realising that they have a new PM.
So it needs to stand out more with a change of colour.
I've spent half an hour looking through the oxygen.css and oxygen_cs.ss files but can't find out which bit to edit.

Any tips please?
Thanks
Mark

Re: [request] Make "New Private Message" link bright yellow & bold

Style for "New messages" link not defined in Oxygen-css files. You can change it at 458 line in "extensions/pun_pm/manifest.xml".

Re: [request] Make "New Private Message" link bright yellow & bold

Thanks!
However, none of that looks like the kind of code I'm comfortable editing.
I tried the below but nothing changed. I've CAPSed the bits that I've added.

// TODO: Do not include all functions, divide them into 2 files
    if (!function_exists('pun_pm_unread_messages'))
        require $ext_info['path'].'/functions.php';

    $visit_elements['<!-- forum_visit -->'] = preg_replace('#(<p id="visit-links" class="options">.*?)(</p>)#', '$1 <span><a href="'.forum_link($forum_url['pun_pm_inbox']).'"><FONT COLOR="YELLOW">'.pun_pm_unread_messages().'</FONT></a></span>$2', $visit_elements['<!-- forum_visit -->']);
}

Let me guess, I'm WAY off?

4

Re: [request] Make "New Private Message" link bright yellow & bold

I changed the name in language file to image. I made a blinking email icon so it stands out.

like this

'New link active' => '<img src="/forum/img/new_pm.gif"/>&nbsp;<strong>(%d)</strong>',

Re: [request] Make "New Private Message" link bright yellow & bold

ha, excellent, thanks for that smile
I now have an animated GIF of a pigeon flying across the top of my screen (using the marquee html code). Nobody will ever miss a PM again smile

6

Re: [request] Make "New Private Message" link bright yellow & bold

I was trying to make the same thing and this is my solution wink

'New link active' => '<strong>New messages (%d)</strong><script>window.alert(\'you've got new private messages!\');</script>',

I change animated gif to a javascript alert, your users cannot say now "i didn't see!" wink
Sorry for my bad english tongue

7

Re: [request] Make "New Private Message" link bright yellow & bold

Well i would find this useful aswell, but i am not as bright as i should when it comes to scripting and programing. So i wonder where do i paste the

'New link active' => '<strong>New messages (%d)</strong><script>window.alert(\'you've got new private messages!\');</script>',

script.

Regards
APR

Re: [request] Make "New Private Message" link bright yellow & bold

You have to replace a line in this file: http://punbb.informer.com/trac/browser/ … pun_pm.php

9

Re: [request] Make "New Private Message" link bright yellow & bold

Weird, it makes the whole forum disappear. but once i remove:

<script>window.alert(\'you've got new private messages!\');</script>

It loads perfectly again

Re: [request] Make "New Private Message" link bright yellow & bold

It's because of unescaped '. Try this:

'<strong>New messages (%d)</strong><script>window.alert(\'you\\\'ve got new private messages!\');</script>',

Or this:

'<strong>New messages (%d)</strong><script>window.alert(\'you have got new private messages!\');</script>',