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)

rareclownfish 04-15-2006 02:53 PM

Quote:

Originally Posted by ericgtr
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.

I can;t get it to work with this hack, can you?

https://vborg.vbsupport.ru/showthread.php?t=105958

saba 04-15-2006 02:58 PM

can some1 upload the img for me

ariellio 04-15-2006 04:08 PM

Hey that's pretty cool. Thanks. ;)

ikomianos 04-15-2006 08:17 PM

Thanks Installed !!!

9tn.tip. 04-17-2006 12:18 AM

nice thanks!

GrendelKhan{TSU 04-17-2006 01:02 PM

works great

thanks!

monkeywarplane 05-06-2006 01:22 AM

Good stuff!

*installed!

Stuart

hozmay 05-09-2006 05:04 AM

very good..!

Dr.Viggy 05-12-2006 07:38 PM

very cool. helps users to see that there's a new pm if they turned off the popups

ltaylor 05-12-2006 11:57 PM

Thanks! Clicked install!

aky 06-09-2006 08:51 AM

is there a way to put it beside Private Messages: Unread 0, Total 5.

Eq4bits 06-09-2006 12:56 PM

yes there is... In the template (NAVBAR, i believe it is) make your code for the 'welcome' section as follows (adjusting the url in green below to path you would use:
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>


cyberbeggar 06-09-2006 02:10 PM

Thanks mate!

SHalliday 06-11-2006 10:18 AM

simple and sweet. nice hack. clicks install!

Nuguru 08-14-2006 08:26 AM

Quote:

Originally Posted by TitanJeff
:)

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.

Hello Everyone,

I totally am with you on this issue. Same here, I am using Mozilla Firefox and rarely does the blinking envelope show up. It works great in I.E. but firefox is a problem.

Has anyone been able to come up with a fix?

Thank You,

Nuguru :)

ericgtr 08-27-2006 02:54 AM

Does it put in a space, as if the image is there when it doesn't display? I am wondering if it has to do with the image itself.

FReeSTER 08-28-2006 04:58 PM

Quote:

Originally Posted by firstrebel
Nice hack. I placed the code in a different place:

Find:
which is just below the code in the install instructions.
Add after it:

Note the extra <br /> before the new code.

*clicks install*

Bob

Excelent!!!!!!!!!!!! ;)

burntire 08-28-2006 08:05 PM

Works great on 3.6.0:) :)

HappyPike 09-17-2006 05:53 AM

It's nice. Thanks. :)

DrewzR/T 11-05-2006 05:31 PM

works on 3.6.2

Tru2Chevy 11-13-2006 08:35 PM

Installed on 3.6.2, and working fine. Shows up normally in Firefox 2.0

- Justin

vppremier 01-12-2007 11:02 AM

I can't find the phrase to replace, here's the contents of my navbar template, where should I place the code?

Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>


<div style="padding-left:2px;">
            <div class="contenttopbg">
                        <div class="contenttopbg_right">
<!-- breadcrumb, login, pm info -->

                <if condition="is_array($navbits)"><a class="brcumb" href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a> $navbits[breadcrumb] &gt; <a class="brcumb1" href="$scriptpath"> $navbits[lastelement]</a>               
                <else />
                        <a class="brcumb" href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a>
                </if>
<!-- / breadcrumb, login, pm info -->
                        <div style="padding-top:12px;"></div>
                        </div>
            </div>
</div>
$spacer_open

$_phpinclude_output


 <if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
<if condition="$show['forumdesc']">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
        </tr>
        </table>
        <br />
</if>

<if condition="$show['popups']">
<!-- PAGENAV POPUP -->

        <div class="vbmenu_popup" id="pagenav_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                                <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                                <input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
                        </form>
                        </td>
                </tr>
                </table>
        </div>

<!-- / PAGENAV POPUP -->
</if>


ICY ICE 01-14-2007 04:11 PM

very cool, thanks for the mod

RyanDe680 01-19-2007 12:10 AM

I tried this on 3.6.4 and it doesnt work on either IE or Firefox... :(

burntire 01-19-2007 12:12 AM

Quote:

Originally Posted by RyanDe680 (Post 1162574)
I tried this on 3.6.4 and it doesnt work on either IE or Firefox... :(


I am running 3.6.4 with no problems

RyanDe680 01-19-2007 12:24 AM

Quote:

Originally Posted by burntire (Post 1162575)
I am running 3.6.4 with no problems

I have the invisible box for the image on IE, but no image.

On firefox, I have nothing. Time to start over...

burntire 01-19-2007 12:29 AM

Quote:

Originally Posted by RyanDe680 (Post 1162578)
I have the invisible box for the image on IE, but no image.

On firefox, I have nothing. Time to start over...

Do you have the correct url path to the image?

Is the image on your server?

RyanDe680 01-19-2007 12:45 AM

Quote:

Originally Posted by burntire (Post 1162579)
Do you have the correct url path to the image?

Is the image on your server?

I put the image on my server... I can open it just fine and it works just as it does here...

RyanDe680 01-19-2007 12:48 AM

Here is what I have right now:

http://www.lexfstyle.com/misc/Ryan/pm_example.jpg

burntire 01-19-2007 12:50 AM

Post up your template code and I will take a look.

RyanDe680 01-19-2007 12:59 AM

Quote:

Originally Posted by burntire (Post 1162588)
Post up your template code and I will take a look.

Here you go, I just posted what is relevant:

Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
       
        <if condition="$show['member']">
       
                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

<!-- / Flashing envelope hack starts here -->


<if condition="$bbuserinfo['pmunread']">
        <a href="http://www.lexfstyle.com/forum/private.php?"><img border="0" src="http://www.lexfstyle.com/images/pm/newpm.gif" width="22"

height="10"></a>
        </if>

<!-- / Flashing envelope hack ends here -->

                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <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>
                        <if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
                </div>
                </td>
               
        <else />


burntire 01-19-2007 01:49 AM

The code looks fine.

I can not open the image with the link provided.

Is the url correct?

RyanDe680 01-19-2007 01:52 AM

Let's test

http://www.lexfstyle.com/images/pm/newpm.gif

RyanDe680 01-19-2007 01:53 AM

Well, I think I figured it out

Let's try again:

http://www.lexfstyle.com/forum/images/pm/newpm.gif

burntire 01-19-2007 02:01 AM

There it is.
The url is wrong in the code
you need to change this

http://www.lexfstyle.com/images/pm/newpm.gif

to this

http://www.lexfstyle.com/forum/images/pm/newpm.gif

burntire 01-19-2007 02:07 AM

Also you may want to use this. I move the <br /> that was after <strong> at the top and place it at the bottom. This will place the image next to the username. Just makes the style look better.

Code:

                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong> <br /> Move this to the bottom
<!-- / Flashing envelope hack starts here -->


<if condition="$bbuserinfo['pmunread']">
        <a href="http://www.lexfstyle.com/forum/private.php?"><img border="0" src="http://www.lexfstyle.com/forum/images/pm/newpm.gif" width="22"

height="10"></a>
        </if>

<!-- / Flashing envelope hack ends here -->

<br />


RyanDe680 01-19-2007 02:14 AM

There we go.

Thanks for your help burntire. I appreciate it.

RyanDe680 01-19-2007 02:17 AM

Quote:

Originally Posted by burntire (Post 1162625)
Also you may want to use this. I move the <br /> that was after <strong> at the top and place it at the bottom. This will place the image next to the username. Just makes the style look better.

Code:

                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong> <br /> Move this to the bottom
<!-- / Flashing envelope hack starts here -->


<if condition="$bbuserinfo['pmunread']">
        <a href="http://www.lexfstyle.com/forum/private.php?"><img border="0" src="http://www.lexfstyle.com/forum/images/pm/newpm.gif" width="22"

height="10"></a>
        </if>

<!-- / Flashing envelope hack ends here -->

<br />



I did that, and now it works in IE but not in Firefox...

burntire 01-19-2007 02:18 AM

Quote:

Originally Posted by RyanDe680 (Post 1162627)
There we go.

Thanks for your help burntire. I appreciate it.

No problem.

If you ever get bored with the lexus and buy a hot rod mustang stop by my site. :)

burntire 01-19-2007 02:20 AM

Quote:

Originally Posted by RyanDe680 (Post 1162628)
I did that, and now it works in IE but not in Firefox...


Works in FF for me??

Attach your code again.


All times are GMT. The time now is 04:29 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.01357 seconds
  • Memory Usage 1,845KB
  • 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
  • (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