This MOD has been released in the MOD-Database. Please continue discussion here: http://www.phpbb.com/phpBB/viewtopic.php?t=77840
This is my first release, so have mercy!
Especially in large forums you have to scroll a lot, if you want to go to the Admin Panel. I want to introduce a MOD which places the "Go to Administration Panel" on the top of the page and provides a small icon.
I have noticed that when you are logged in as admin the image dissapears on some pages eg. at "Usergroups" or at the posting confirmation pages. Maybe somebody could help me to fix this small issue?
Regards,
Bálint
You can download the image icon_mini_admin.gif here (right-click and save)
Code: Select all
##############################################################
## MOD Title: Move "Go to Administration Panel"-link
## MOD Author: Balint < [email protected] > (Balint Krizsan) http://www.krizsan.de
## MOD Description: Places "Go to Administration Panel" on top of the page.
## Only visible for admins.
## Tested with phpBB 2.0.1 and 2.0.2
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 10 Minutes
## Files To Edit: includes/page_header.php,
## includes/page_tail.php,
## templates/subSilver/overall_footer.tpl,
## templates/subSilver/overall_header.tpl,
## templates/subSilver/subSilver.cfg
## Included Files: icon_mini_admin.gif
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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 MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
## THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
## EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
## FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
## THE AUTHOR OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
## INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
## ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
## ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
##
## Revision History: 2002-08-06 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY IMAGES ]------------------------------------------
#
copy icon_mini_admin.gif to templates/subSilver/images/icon_mini_admin.gif
#
#-----[ OPEN FILE ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
//
// Parse and show the overall header.
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a class="mainmenu" href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
$admin_img = ( $userdata['user_level'] == ADMIN ) ? '<img src="' . $images['control_panel'] . '" border="0" hspace="3" />' : '';
#
#-----[ FIND ]------------------------------------------
#
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'ADMIN_LINK' => $admin_link,
'ADMIN_IMG' => $admin_img,
#
#-----[ OPEN FILE ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
//
// Show the overall footer.
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Show the overall footer.
//
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'PHPBB_VERSION' => '2' . $board_config['version'],
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '',
'ADMIN_LINK' => $admin_link)
);
#
#-----[ REPLACE WITH ]------------------------------------------
#
$template->assign_vars(array(
'PHPBB_VERSION' => '2' . $board_config['version'],
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '')
);
#
#-----[ OPEN FILE ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>& &<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>& &<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td align="center">{ADMIN_IMG}<b>{ADMIN_LINK}</b></td>
</tr>
#
#-----[ OPEN FILE ]------------------------------------------
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
#
#-----[ REPLACE WITH ]------------------------------------------
#
<div align="center"><span class="copyright">
#
#-----[ OPEN FILE ]------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['voting_graphic'][4] = "$current_template_images/voting_bar.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['control_panel'] = "$current_template_images/icon_mini_admin.gif";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM