[Add-on] PM alert layer [1.0.0]

MODs, Hacks, tips and tricks for memberlist, profiles, group members, and team members.
Custom Profile fields Hacks and MODs are also included

How would you rate this mod?

Excellent!
22
69%
Very good
7
22%
Good
2
6%
Fair
1
3%
Poor
0
No votes
 
Total votes : 32

Re: [Add-on] PM alert layer [1.0.0]

Postby ukiello » 10 Jul 2007, 11:17

Hi to all. I'm Italian.

I've applied this mod in RC3 with ProSilver template....

I have a question.

Why the layer appared only in the first page?

Look..
Immagine1.JPG
I do login and i'm redirect in the confirm page


Immagine2.JPG
But after in the new page (redirect) the layer disappears!!! Look, i've 5 new Pm too...


How do I resolve this problem?
I want the layer in all page!

Thanks. :wave:
ukiello
Cadet I
Cadet I
 
Posts: 19
Joined: 10 Jul 2007, 11:09
Gender: Male


Re: [Add-on] PM alert layer [1.0.0]

Postby porfavor » 10 Jul 2007, 11:22

Did you put the code to overall_header.php?
Live your life as long as it is possible!
User avatar
porfavor
Translator
Translator
 
Posts: 78
Joined: 02 Jul 2007, 14:18
Location: Germany
Favorite Team: Hertha BSC Berlin
Gender: Male

Re: [Add-on] PM alert layer [1.0.0]

Postby ukiello » 10 Jul 2007, 11:25

porfavor wrote:Did you put the code to overall_header.php?


Yes...

Spoiler:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<!--
   phpBB style name: EnneBiTemplate
   Based on style:   EnneBiTemplate (this is the default phpBB3 style)
   Original author:  Tom Beddard ( http://www.subBlue.com/ )
   Modified by:     
   
   NOTE: This page was generated by phpBB, the free open-source bulletin board package.
         The phpBB Group is not responsible for the content of this page and forum. For more information
         about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
   var jump_page = '{L_JUMP_PAGE}:';
   var on_page = '{ON_PAGE}';
   var per_page = '{PER_PAGE}';
   var base_url = '{BASE_URL}';
   var style_cookie = 'phpBBstyle';
   var onload_functions = new Array();
   var onunload_functions = new Array();

   /*
   <!-- IF S_USER_PM_POPUP -->
      if ({S_NEW_PM})
      {
         window.open('{UA_POPUP_PM}', '_phpbbprivmsg', 'height=225,resizable=yes,width=400');
      }
   <!-- ENDIF -->
   */
   
   /**
   * Find a member
   */
   function find_username()
   {
      <!-- IF UA_FIND_USERNAME -->
      window.open('{UA_FIND_USERNAME}', '_usersearch', 'height=500, resizable=yes, scrollbars=yes, width=740');
      <!-- ENDIF -->
      return false;
   }

   /**
   * New function for handling multiple calls to window.onload and window.unload by pentapenguin
   */
   window.onload = function()
   {
      for (i = 0; i <= onload_functions.length; i++)
      {
         eval(onload_functions[i]);
      }
   }

   window.onunload = function()
   {
      for (i = 0; i <= onunload_functions.length; i++)
      {
         eval(onunload_functions[i]);
      }
   }

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

<!-- IF T_STYLESHEET_LINK and not S_FORCE_EMBED_STYLE -->
   <link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
   <link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

   <link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
   <link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
   <link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />
<!-- ELSE -->
   <style type="text/css" media="screen, projection">
      {T_THEME_DATA}
   </style>
<!-- ENDIF -->

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
   <link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">

<!-- IF S_NEW_PM -->
<style>
<!--
.pmbox {
   position : absolute;
   height : 100px;
   width : 300px;
   margin-top: -75px;
   margin-left: -150px;
   top : 50%;
   left : 50%;
   background-color : #f4f5f7;
   border : 2px solid #006699;
}
-->
</style>

<table class="pmbox" id="new_pm_box" cellspacing="5" cellpadding="4">
<tr>
   <td style="height:100px; width:300px;">
      <span class="gen">
         <center>{L_PM_NEW}</center><br />
         {L_PM_SENDER} <strong>{S_PM_SENDER}</strong><br />
         {L_PM_SUBJECT} <strong>{S_PM_SUBJECT}</strong><br />
         {L_PM_DATE} <strong>{S_PM_DATE}</strong><br /><br />
         <center>{CLICK_TO_VIEW}</center><br />
         <div align="right"><a href="javascript:void(0);" onClick="getElementById('new_pm_box').style.display = 'none'; return false;" class="genmed">{DELETE_IMG}</a></div>
      </span>
   </td>
</tr>
</table>
<!-- ENDIF -->

<div id="wrap">
   <a id="top" name="top" accesskey="t"></a>
   <div id="page-header">
      <div class="headerbar">
         <div class="inner"><span class="corners-top"><span></span></span>

         <div id="site-description">
            <a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
            <h1>{SITENAME}</h1>
            <p>{SITE_DESCRIPTION}</p>
            <p style="display: none;"><a href="#start_here">{L_SKIP}</a></p>
         </div>

      <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
         <div id="search-box">
            <form action="{U_SEARCH}" method="post" id="search">
            <fieldset>
               <input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
               <input class="button2" value="{L_SEARCH}" type="submit" /><br />
               <a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_HIDDEN_FIELDS}
            </fieldset>
            </form>
         </div>
      <!-- ENDIF -->

         <span class="corners-bottom"><span></span></span></div>
      </div>

      <div class="navbar">
         <div class="inner"><span class="corners-top"><span></span></span>

         <ul class="linklist navlinks">
            <li><a class="icon-home" href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

            <li class="rightside"><a href="#" onclick="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>

            <!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
            <!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
            <!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
            <!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
         </ul>

         <ul class="linklist">
            <!-- IF not S_IS_BOT -->
               <!-- IF S_USER_LOGGED_IN -->
               <li>
                  <a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="u" class="icon-ucp">{L_PROFILE}</a>
                     <!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF --> &bull;       
                  <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
                  <!-- IF U_RESTORE_PERMISSIONS --> &bull;
                  <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
                  <!-- ENDIF -->
               </li>
               <!-- ENDIF -->
            <!-- ENDIF -->
            <li class="rightside">
               <a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}" class="icon-faq">{L_FAQ}</a>&nbsp;
               <!-- IF not S_IS_BOT -->
                  <!-- IF S_DISPLAY_MEMBERLIST --><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}" class="icon-members">{L_MEMBERLIST}</a>&nbsp; <!-- ENDIF -->
                  <!-- IF not S_USER_LOGGED_IN --><a href="{U_REGISTER}" class="icon-register">{L_REGISTER}</a>&nbsp; <!-- ENDIF -->
                  <a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="l" class="icon-logout">{L_LOGIN_LOGOUT}</a>
               <!-- ENDIF -->
            </li>
         </ul>

         <span class="corners-bottom"><span></span></span></div>
      </div>

   </div>

   <a name="start_here"></a>
   <div id="page-body">
      
       <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
      <div id="message" class="rules">
         <div class="inner"><span class="corners-top"><span></span></span>
            <strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
         <span class="corners-bottom"><span></span></span></div>
      </div>
      <!-- ENDIF -->


Thanks for the reply ;)

:wave:
ukiello
Cadet I
Cadet I
 
Posts: 19
Joined: 10 Jul 2007, 11:09
Gender: Male

Re: [Add-on] PM alert layer [1.0.0]

Postby porfavor » 10 Jul 2007, 11:32

And you are sure that there are new messages that weren't shown in order to the layer?

Did you re-login?

Which browser do you use?
Live your life as long as it is possible!
User avatar
porfavor
Translator
Translator
 
Posts: 78
Joined: 02 Jul 2007, 14:18
Location: Germany
Favorite Team: Hertha BSC Berlin
Gender: Male

Re: [Add-on] PM alert layer [1.0.0]

Postby ukiello » 10 Jul 2007, 11:35

porfavor wrote:And you are sure that there are new messages that weren't shown in order to the layer?

Did you re-login?

Which browser do you use?


I use Firefox. The problem exist with internet explorer too..

If i re-login, the layer don't appare... uff....

Can I resolve?

Thanks! :thumbsup:
:wave:
ukiello
Cadet I
Cadet I
 
Posts: 19
Joined: 10 Jul 2007, 11:09
Gender: Male

Re: [Add-on] PM alert layer [1.0.0]

Postby porfavor » 10 Jul 2007, 13:32

If there are new messages, that haven't been there before the last layer, it should appear. Else there is no layer appearing.
Live your life as long as it is possible!
User avatar
porfavor
Translator
Translator
 
Posts: 78
Joined: 02 Jul 2007, 14:18
Location: Germany
Favorite Team: Hertha BSC Berlin
Gender: Male

Re: [Add-on] PM alert layer [1.0.0]

Postby ukiello » 10 Jul 2007, 14:55

the problem appare with a only pm too..
ukiello
Cadet I
Cadet I
 
Posts: 19
Joined: 10 Jul 2007, 11:09
Gender: Male

Re: [Add-on] PM alert layer [1.0.0]

Postby Nico » 10 Jul 2007, 15:54

Ehi ukiello.. I know you :P (Ciao)

I'll test this on my board.. looks handy.. :)
nico66s Member of the italian phpBB support team at phpBB.it

All my imaginary friends left me because their friends didn't believe I exist..
User avatar
Nico    
Translator
Translator
 
Posts: 26
Joined: 16 May 2007, 03:48
Location: Italy
Gender: Male
phpBB Knowledge: 5

Re: [Add-on] PM alert layer [1.0.0]

Postby ukiello » 11 Jul 2007, 03:06

Nico wrote:Ehi ukiello.. I know you :P (Ciao)

I'll test this on my board.. looks handy.. :)


Hi Nico ihih... :grin:

Ok... I wait...
ukiello
Cadet I
Cadet I
 
Posts: 19
Joined: 10 Jul 2007, 11:09
Gender: Male

Re: [Add-on] PM alert layer [1.0.0]

Postby Gumfuzi » 20 Aug 2007, 13:14

nice mod!

i tried it, but moved it again:
- if a use is logging in and a pm is waiting for him, the layer will be shown only on the first screen while logged in - and that's the confirmation screen for successful login, and this one disapperas within 1 second and then no info is shown again (the standard popup will stay) - no clue how to solve this
- maybe a "z-index: 999;" within the css definition for the layer can help if some style using z-index already -> the get the layer really on top of everythin else.

if someone has a solution for the first point, that would be fine...
User avatar
Gumfuzi
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 164
Joined: 19 Jan 2007, 06:49
Location: Linz, Austria
Favorite Team: none
Gender: Male
phpBB Knowledge: 8

PreviousNext

Return to Memberlist and Profiles

Who is online

Users browsing this forum: Ezooms Bot, ichiro [crawler] and 4 guests