Add-on: Mass PM link in page header

Makes it posble for admin to specify witch type of users may mass PM any usergroup
Also PM users can be a list of usernames, so PM can be sendt to any number of users

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Add-on: Mass PM link in page header

Postby nielsrune on Wed 26. Oct, 2005 20:03

Well, I needed a link to the groupmsg.php file, when I'm logged in as 'admin'.

Therefore I've done this, so the link will only show in the page header when the user is called 'admin'... :

Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------------
#
   $u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'];
   $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$u_mass_pm = (strtolower($userdata['username']) == 'admin') ? '&nbsp;<a href="'.append_sid('groupmsg.'.$phpEx).'" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="'.$lang['MassPM'].'" hspace="3" />'.$lang['MassPM'].'</a>' : null;

#
#-----[ FIND ]------------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

#
#-----[ AFTER, ADD ]------------------------------------------
#
'U_MASS_PM' => $u_mass_pm,

#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------------
#
<!-- BEGIN switch_user_logged_out -->

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN link to groupmsg.php when user is 'admin' -->
{U_MASS_PM}&nbsp;
<!-- END link to groupmsg.php when user is 'admin' -->

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------------
#
$lang['Private_Messaging'] = 'Private Messaging';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['MassPM'] = 'Mass PM';

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
nielsrune
Poster
Poster
 
Posts: 4
Joined: Wed 26. Oct, 2005 18:16

Postby Beeveer on Sun 30. Oct, 2005 12:53

The link is normally located in privmsg.php
Nee, ik geef geen antwoorden in het Nederlands, die horen thuis op www.phpbb.nl ;)
User avatar
Beeveer
brilliant supporter
 
Posts: 264
Joined: Tue 30. Nov, 2004 19:13
Location: Boskoop, South-Holland, the Netherlands

Postby nielsrune on Mon 31. Oct, 2005 20:47

Beeveer wrote:The link is normally located in privmsg.php


Okay, I've never seen the icon before 8O

Thanks
nielsrune
Poster
Poster
 
Posts: 4
Joined: Wed 26. Oct, 2005 18:16


Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron