vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Add flashing envelope PM notification (https://vborg.vbsupport.ru/showthread.php?t=103202)

Fusion.nl 02-04-2006 10:46 PM

Nice one, like it more then my blinking message pm mod. I did change a few things though, since i like my codes clean.

Code:

        <if condition="$bbuserinfo['pmunread']">
        <a href="private.php"><img border="0" src="$stylevar[imgdir_misc]/newpm.gif"></a>
        </if>

In stead of a full url to private.php, the last will suffice (dont know if it will also work if you have a portal like vbadvanced, guess ill find out soon). Furthermore the image folder is now dynamic, so that the url will work no matter what style you use at that moment.

Also removed the width and height of the image url since its pretty much useless. An image will always be shown by their original sizes if no width or height is added.

Other then that, nice work. Small and clean, just the way I like it. :)

[high]* Fusion.nl clicked install[/high]

Gunshot 02-05-2006 05:25 AM

nice edit fusion

works with vbadvanced just fine

tamborinegal 02-07-2006 03:22 AM

Thanks ericgtr, another nice hack from you.

Clancy

forumsoup.com 02-07-2006 09:19 PM

I put this on my site, love it, and clicked installed. Thanks!

Freakpyromaniac 02-08-2006 04:12 PM

To wich map do i have to upload the image.

Thanks in Advanced

ericgtr 02-08-2006 08:51 PM

Quote:

Originally Posted by Freakpyromaniac
To wich map do i have to upload the image.

Thanks in Advanced

Where ever you want it, just make sure that the path is set accordingly as per the instructions.

projectego 02-08-2006 08:56 PM

Nice idea, I have a naasty habit of forgetfully skipping past my PM inbox, so this will come in handy... ;)

Freakpyromaniac 02-08-2006 11:19 PM

Quote:

Originally Posted by ericgtr
Where ever you want it, just make sure that the path is set accordingly as per the instructions.

Well i am a noob with this kind of things. Please explain me what to do.
The hack is installed already but i dont see the enveloppe. What i see is the border where the enveloppe will be.

simon. 02-13-2006 02:38 PM

Excellent!

I will be installing!

ericgtr 02-13-2006 07:01 PM

Quote:

Originally Posted by Freakpyromaniac
Well i am a noob with this kind of things. Please explain me what to do.
The hack is installed already but i dont see the enveloppe. What i see is the border where the enveloppe will be.

Make sure you upload the image and then modify the path (in the instructions) to point to it.

Sooner95 02-13-2006 07:22 PM

Clicks install..

thx !

G_Man 02-14-2006 12:54 AM

I had to play and move it a bit, too, but I love it!! Now I can ditch that pop-up!! :D :D

Thanx!!

*goes to hit install*

wwwdjrcs 02-16-2006 01:41 AM

works great, thx!

http://forum.djrcs.com

nufc fan 02-19-2006 09:33 AM

any one know which folder i upload the image too as ive tried near on every folder there is and it does nt work, also what do i change the paths to as i had a go and it never worked, i tried all sorts no luck.

G_Man 02-19-2006 02:22 PM

Quote:

Originally Posted by nufc fan
any one know which folder i upload the image too as ive tried near on every folder there is and it does nt work, also what do i change the paths to as i had a go and it never worked, i tried all sorts no luck.



This Directory: forumroot/images

OndaReal 02-19-2006 03:24 PM

hmm, does anyone know where i can get a flashing envelope icon, as the one given on the instructions doesnt exist anymore.

G_Man 02-19-2006 04:43 PM

Here it is:

Derekclarke 02-19-2006 06:54 PM

Installed. Thanks

pabloknight 03-05-2006 10:58 PM

Very cool! Once I got the paths right, it works wonderfully!
Thanks!

Installed.

BabyNameAddict 03-08-2006 11:39 PM

Quote:

Originally Posted by bada_bing
Cool I used the code for the other pm blink and the image from this hack and with both combines it looks and works great... Thank you

Ditto. :nervous:

arcadian_girl 03-26-2006 01:20 AM

installed and works great :)

Rukbat 03-27-2006 05:38 PM

I absolutely LOVE this hack!
Is there any way to put the blinky right in front of the "Private Messages" line instead of above it?

eeps, n/m, figured it out...
in case anyone else wants to do the same:
Code:

                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <br /><if condition="$bbuserinfo['pmunread']">
                                <a href="http://www.****.com/forums/private.php?"><img border="0" src="http://www.****.comt/forums/images/newpm.gif" width="22" height="10"></a>
                                </if>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>

I'd add a screenshot, but everytime I try the newpm.gif doesn't show up *shrugs*

ericgtr 03-28-2006 12:00 PM

Quote:

Originally Posted by Rukbat
I absolutely LOVE this hack!
Is there any way to put the blinky right in front of the "Private Messages" line instead of above it?

eeps, n/m, figured it out...
in case anyone else wants to do the same:
Code:

                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <br /><if condition="$bbuserinfo['pmunread']">
                                <a href="http://www.****.com/forums/private.php?"><img border="0" src="http://www.****.comt/forums/images/newpm.gif" width="22" height="10"></a>
                                </if>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>

I'd add a screenshot, but everytime I try the newpm.gif doesn't show up *shrugs*

Thanks for presenting another option. I think the reason the newpm.gif isn't showing in your attachment is because it's animated but I think it's easy enough to get what you are saying. :)

Jordan17 03-28-2006 08:02 PM

I am using a custom icon! in a custom way. Normally the members avatar shows on the right hand side of the Welcome box, when they receive new mail, this shows (its animated but you can't see it in the screenshot).

https://vborg.vbsupport.ru/

dan35 03-29-2006 06:01 AM

Quote:

Originally Posted by Jordan17
I am using a custom icon! in a custom way. Normally the members avatar shows on the right hand side of the Welcome box, when they receive new mail, this shows (its animated but you can't see it in the screenshot).

https://vborg.vbsupport.ru/


It looks nice ;)

TeddyKGB 03-29-2006 05:38 PM

Mine works...kind of.

I altered the path just a bit so the image went in the images/misc folder and it appears....BUT it wont stop blinking even if I have no new PM's.

Very strange. I'd rather deal with forcing myself to look for new PM's than deal with a constantly blinking pm

ericgtr 03-29-2006 05:50 PM

The following condition will only display it if you have an unread PM. Make sure you have the if statements in your template surrounding your altered image path.

Code:

<if condition="$bbuserinfo['pmunread']">
your code
</if>


TeddyKGB 03-29-2006 07:52 PM

I'll give it another try. Thanks!

Borgs8472 03-30-2006 10:53 PM

I installed this, but just out of interest, what forum software or site first made that flashing mail icon? It's been around for years!

Mosh 04-08-2006 10:15 AM

I did it another way, but took the idea from this template mod, so am clicking Install. Thanks for the idea :)

Motoman 04-08-2006 12:01 PM

Wouldnt it be easier to use vb urls instead of regular hyperlinks? Or are the normal hyperlinks safer? Lol sorry I'm a noob with this coding stuff and I've learned some php (I think so atleast) from looking at others work....here is what I'm talking about.

PHP Code:

<if condition="$bbuserinfo['pmunread']">
    <
a href="private.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/newpm.gif" border="0" width="22" height="10"></a>
    </if> 


rareclownfish 04-08-2006 12:07 PM

Quote:

Originally Posted by Rukbat
I absolutely LOVE this hack!
Is there any way to put the blinky right in front of the "Private Messages" line instead of above it?

eeps, n/m, figured it out...
in case anyone else wants to do the same:
Code:

                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <br /><if condition="$bbuserinfo['pmunread']">
                                <a href="http://www.****.com/forums/private.php?"><img border="0" src="http://www.****.comt/forums/images/newpm.gif" width="22" height="10"></a>
                                </if>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>

I'd add a screenshot, but everytime I try the newpm.gif doesn't show up *shrugs*


I tried to use this one, but my unser name sowhed up twice. there is a bug somewhere.

Mathiau 04-12-2006 12:50 PM

very nice works even in vbb 3.5.3

rareclownfish 04-12-2006 04:13 PM

????? Anyone.

ericgtr 04-13-2006 01:01 AM

Quote:

Originally Posted by rareclownfish
????? Anyone.

I don't know about that one, it's someone elses version. However, the mod I posted does fully work and is in the text file.

rareclownfish 04-13-2006 02:34 AM

ok thanks

plateau 04-13-2006 06:56 AM

installed!

TitanJeff 04-13-2006 09:33 AM

For whatever reason, it sometimes doesn't show up. Love it when it does tho.

ericgtr 04-13-2006 06:11 PM

Quote:

Originally Posted by TitanJeff
For whatever reason, it sometimes doesn't show up. Love it when it does tho.

It will show only when you have a PM and once you read it, it goes away until you receive another one :)

TitanJeff 04-13-2006 07:12 PM

Quote:

Originally Posted by ericgtr
It will show only when you have a PM and once you read it, it goes away until you receive another one :)

:)

I understand that. But in my forum, it sometimes doesn't show up before the PM is read. It may be glitch of some sort. I am viewing on FireFox for Mac.

And I may have another hack that messes with it.


All times are GMT. The time now is 08:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01476 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete