Marquel World Information Technology

We allready update to new theme & 2 GDesign custom theme coming up. Stay tuned for more updates coming soon By: Admin Kosmyn and the rest of the staff of this support forum
ChatBox

You are not connected. Please login or register

Maw1 PM Notify & Guest Register bar on Thu Mar 22, 2012 5:34 am

  • Moderator
avatar
Moderator
About this MOD
Title:PM Notify & Guest Register bar
Description:This
mod was originally created by Cback for phpBB2. When I converted to
phpBB3 this mod was one of the first mods I modified and installed.
Later there was added some code provided by Strato at STG.
The PM Notify & Guest Register bar shows a bar with a registration link to Guests.
For
registered users it shows a bar when there is new or unread Private
messages. For the last part the users have to enable Pop up window on
new private message in the user control panel.
Version:1.0.0
Installation level:
Easy
Installation time:
~6 minutes
Author notes:
Credits: Cback, Strato, Troja, Steve and several phpBB Team members (Non mentoined, non forgotten)

Author
Username:Stoker 4.0Name:StokerWWW:http://www.phpbb3bbcodes.comFiles to edit


  • styles/prosilver/template/overall_header.html,
  • styles/prosilver/theme/colours.css,
  • language/en/common.php
Included files


  • root/styles/prosilver/theme/images/*.*
Additional MODX files

This MOD has no additional MODX files.


Disclaimer and other notes



For security purposes, please check: http://www.phpbb.com/mods/
for the latest version of this MOD. Downloading this MOD from other
sites could cause malicious code to enter into your phpBB Forum. As
such, phpBB will not offer support for MODs not offered in our MODs
database, located at: http://www.phpbb.com/mods/
Before adding this MOD to your forum, you should back up all files and databases related to this MOD.
This MOD was designed for phpBB 3.0.7-PL1 and may not function as stated on other phpBB versions. MODs for phpBB 3.0 will not work on phpBB 2.0 and vice versa.

License and English support



This MOD has been licensed under the following license:
http://opensource.org/licenses/gpl-license.php GNU General Public License v2
English support can be obtained at http://www.phpbb.com/mods/ for released MODs.
Support in your language might be available at a international support site.
MOD history

2010-08-24 - Version1.0.0


  • Modx, Automod and Ready for submission to the Mods Database

File copy


  1. Copy: root/styles/prosilver/theme/images/*.*To: styles/prosilver/theme/images/*.*
Edits

swxUse your keyboard to navigate the code boxes. You may also hit 's' on your keyboard to go to the first code box.




Open: styles/prosilver/template/overall_header.html




Comments

This step will remove the standard popup window when there is a new message. You can keep it if you like.Find and Delete

Tip: Find and delete this code.


Code:Select All

if ({S_NEW_PM})
{
var url = '{UA_POPUP_PM}';
window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
}
<< Hide


Comments

This will add the PM notify and the Guest Register bar.
The first code piece is for the Guest Register bar and the second for the PM Notify bar.Find

Tip: This may be a partial find and not the whole line.


Code:Select all
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.


Code:Select all






<< Hide

Open: styles/prosilver/theme/colours.css



Find

Tip: This may be a partial find and not the whole line.


Code:Select all
/* Form button stylesAdd before

Tip: Add these lines on a new blank line before the preceding line(s) to find.


Code:Select all
/* PM Notify & Guest Register bar
----------------------------------------*/
#info {
overflow: visible;
min-width: 750px;
width: 100%;
position: fixed;
left: 0;
z-index:200;
margin-top: -15px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 1.5em;
font-weight: bold;
}

#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
float: left;
width:100%;
clear: both;
color: #fff;
padding: .85em 0 .85em 0;
border-bottom: .25em solid #fff;
text-align: center;
text-decoration: none;
background-image: url("{T_THEME_PATH}/images/pmreg.png");
background-position: bottom;
background-repeat:repeat-x;
}

#infobar a:hover {
color: #fff;
background-image: url("{T_THEME_PATH}/images/pmreg.png");
background-position: top;
background-repeat:repeat-x;
border-bottom: .25em solid #fff;
cursor: pointer;
}<< Hide

Open: language/en/common.php



Find

Tip: This may be a partial find and not the whole line.


Code:Select all
?>Add before

Tip: Add these lines on a new blank line before the preceding line(s) to find.


Code:Select all
// BEGIN PM Notify & Guest Register bar
$lang = array_merge($lang, array(
'PMG_WELCOME' => 'Welcome to',
'PMG_REGISTER' => 'Click here to register',
'PMG_HELLO' => 'Hello',
'PMG_YOUHAVE' => '- You have',
'PMG_AND' => 'and',
));
// END PM Notify & Guest Register bar<< HideDIY instructions


These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.





Code:Select all
Save and upload the changed files.
Go to ACP and refresh template and theme.

View previous topic View next topic Back to top Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum