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)

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:51 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.02296 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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