[MODDB] Move "Go to Administration Panel"-link

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
zemaj
Registered User
Posts: 267
Joined: Thu Mar 07, 2002 3:58 am
Location: Australia
Contact:

Post by zemaj » Fri Sep 13, 2002 5:36 am

Actually I believe you can just mpove the link from the page_footer.tpl to the page_header.tpl without editing code. It certainly works for header information, I'm not too sure about going the other way.

-zemaj

JetJam
Registered User
Posts: 9
Joined: Thu Aug 22, 2002 7:42 pm
Location: Maryland

Post by JetJam » Sat Sep 14, 2002 2:27 am

Now its complete, works on all pages
and you can add the image beside the link in the footer.
Image
The wording and underlineing of the header and footer links can also be changed, ask for info on how to do.

ENJOY :D

Code: Select all

############################################################## 
## MOD Title: Admin Panel Link (APL) MOD for Header and Footer.
## MOD Author: JetJam < jetjam@cyberdorre.com > (Jim) http://www.cyberdorre.com 
## MOD Description: Adds a image and link to the administration panel in the header, only when the admin is logged in.
##		   (optional) adds image to the link in the footer, only when the admin is logged in.
##			This Version is Tested with phpBB 2.0.1 and phpBB 2.0.2
## MOD Version: 1.0.2 
## 
## Installation Level: Easy 
## Installation Time: 4 Minutes 
## Files To Edit: page_header.php, pape_tail.php, overall_header.tpl
## Included Files: icon_mini_admin.gif (credit to Balint(Balint Krizsan) for image)
############################################################## 
## 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: Enjoy, This Version is Tested with phpBB 2.0.1 and phpBB 2.0.2
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ OPEN ]------------------------------------------ 
#
includes/page_header.php
# 
#-----[ FIND ]------------------------------------------ 
# 
//
// Parse and show the overall header.
//
$template->set_filenames(array(
	'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
//
// admin panel link mod
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '" 

class="mainmenu"><img src="templates/subSilver/images/icon_mini_admin.gif" width="12" height="13" border="0" alt="Admin 

Panel" hspace="3" />Admin Panel</a>&nbsp' : '';
//
// admin panel link mod
//
# 
#-----[ FIND ]------------------------------------------ 
# 
$template->assign_vars(array(
	'SITENAME' => $board_config['sitename'], 
	'SITE_DESCRIPTION' => $board_config['site_desc'], 
	'PAGE_TITLE' => $page_title,
# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
	'ADMIN_LINK' => $admin_link,
# 
#-----[ OPEN ]------------------------------------------ 
#
templates\subSilver\overall_header.tpl
# 
#-----[ FIND ]------------------------------------------ 
#
alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp; &nbsp;{ADMIN_LINK}&nbsp;</span></td>
# 
#-----[ COPY/UPLOAD ]------------------------------------------ 
#
icon_mini_admin.gif to templates/subSilver/images
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
#
#-------------------------------------------------------------
# Optional install of tiny image beside link in footer
#-------------------------------------------------------------
#
# 
#-----[ OPEN ]------------------------------------------ 
#
includes/page_tail.php
# 
#-----[ FIND ]------------------------------------------ 
# 
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . 

$lang['Admin_panel'] . '</a><br /><br />' : '';
# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '"><img 

src="templates/subSilver/images/icon_mini_admin.gif" width="12" height="13" border="0" hspace="3">' . $lang['Admin_panel'] . 

'</a><br /><br />' : '';
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 

aparsons
Registered User
Posts: 143
Joined: Tue Jul 30, 2002 12:20 am

No mercy

Post by aparsons » Mon Sep 23, 2002 11:09 pm

This is my first release, so have mercy!


Probably the less I say the better.

TheInFaMouSNuKiE
Registered User
Posts: 8
Joined: Wed Nov 27, 2002 7:10 am

Post by TheInFaMouSNuKiE » Thu Nov 28, 2002 5:23 am

can someone upload the files with the modiifes link? I don't know much about this junk... and I don't want to mess anythin up

MJ
Registered User
Posts: 180
Joined: Thu Jan 03, 2002 10:20 pm
Contact:

Post by MJ » Sat Jan 18, 2003 9:53 am

Code updated for phpBB 2.0.4 ;)

Code: Select all

############################################################## 
## MOD Title: Header "Go to Administration Panel" Link 
## MOD Author: Balint < balint@krizsan.de > (Balint Krizsan) http://www.krizsan.de 
##	       MJ <http://phpbbfm.net>	
## MOD Description: Places "Go to Administration Panel" on top of the page. 
## 			  Only visible for admins. 
## 			  Only for phpBB 2.0.4! 
## MOD Version: 1.0.1 
## 
## Installation Level: easy 
## Installation Time: 1-5 Minutes 
## Files To Edit: includes/page_header.php, 
## 			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:    2003-01-18 - Version 1.0.1
##			- phpBB 2.0.4 Compatible
##
##			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 IMAGE ]------------------------------------------ 
# 
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 ]------------------------------------------ 
# 
//
// Administration link
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<tr><td align="center"><span class="mainmenu"><a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '" class="mainmenu"><img src="' . $images['admin_panel'] . '" height="13" width="12" alt="' . $lang['Admin_panel'] . '" border="0" hspace="3" />' . $lang['Admin_panel'] . '</a></span></td></tr>' : ''; 

# 
#-----[ FIND ]------------------------------------------ 
# 
'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new, 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
'ADMIN_LINK' => $admin_link, 


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

# 
#-----[ FIND ]------------------------------------------ 
# 
<tr>
	<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="13" 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="13" 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="13" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&</span></td>
</tr>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
{ADMIN_LINK}


# 
#-----[ OPEN FILE ]------------------------------------------ 
# 
templates/subSilver/subSilver.cfg 

# 
#-----[ FIND ]------------------------------------------ 
# 
$images['voting_graphic'][4] = "$current_template_images/voting_bar.gif"; 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
$images['admin_panel'] = "$current_template_images/icon_mini_admin.gif"; 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Post by Balint » Tue Feb 04, 2003 1:56 am

Hello!

If I had a chance I would delete this topic... Now three or four versions of this MOD are circulating here and god knows where else! I didn't change my first post to show you: I wanted help with a little issue, but JetJam was so "kind" so release his own stuff, which is IMHO unworthy in the MOD database.

I wrote some messages to ffeingol and AbelaJohnB but got no definitive answer regarding to this thread. I have to assume that they are too busy. :(

How would YOU feel about someone, who takes your idea, changes 2 or 3 lines and only give credit for the image?

@MJ: Why didn't you ask me to update the code?

A novice user won't know which version to take, what to do!?!

I am a "little" bit angry about this :evil:, maybe I take the MOD more important than it actually is.

But just maybe!


Regards,
Bálint

AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB » Tue Feb 04, 2003 2:35 am

Hello Balint.

Please give me a few days to determin how to properly handle this situation.


Until I have a valid option to correct this (and simular) issue, I am going to lock this thread.


Again, I DO want to resolve this. I simply need to readdress this issue with the MOD-Team and the phpBB Group. This is something I don't want to decide upon myself.

Thank You.

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Fri Feb 07, 2003 2:41 pm

First of all, I am glad to see two new MOD authors engaging in their first attempts at writing a MOD. :D That being said, there is a certain etiquette on how things should be done. Authors are very protective of their work, and rightfully so.

JetJam, clearly Balint did the leg work in getting the original concept of this MOD off the ground. As such, taking the initial concept, extending it, and then posting on his very own thread without giving credit clearly is stepping on the Balint's toes. This is rude for several reasons. But I believe you did not intend any harm and are just eager to contribute to the community.

The proper thing to do here is give credit where credit is due. Changing a few FIND commands does not mean the code is all your own ;) There are a few ways to go about extending the MOD:

1) post code snippits for all to see and perhaps the author will include in a next release giving you credit
2) ask the author for permission for you to extend his MOD, giving him credit as the original creator
3) MOD the MOD. Note that the first MOD is requried to be installed and then your MOD is like an add-on to it.
4) there are probably more ways, but the key is communication with the original MOD author to make sure his wishes are respected.

The MOD Team is very sensitive to such issues. Personally I have seen my own MODs, which are much larger this one, posted for download on other sites with my name completely stripped out!! Its infuriating and at phpBB.com we will not allow for such a thing to be made publicly available on our website if at all possible.

I hope this clears the matter. I don't personally believe in censorship so JetJam's excellent enhancements will remain. I strongly encourage JetJam and Balint to work on an agreement. Perhaps Balint will be gracious enough to give co-author credits ;)

-Nuttzy :cool:

EDIT: unlocking thread
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Post by Balint » Fri Feb 07, 2003 3:36 pm

Hi!

Thank you for clarify the situation.

In a few hours I'll post my MOD for all phpBB versions from 2.0.1 to 2.0.4 and will give credit to JetJam's suggestions.

Regards,
Bálint

JetJam
Registered User
Posts: 9
Joined: Thu Aug 22, 2002 7:42 pm
Location: Maryland

Post by JetJam » Fri Feb 07, 2003 6:03 pm

Well, I don’t have problem with that.
In the beginning it was just a helpful suggestion, and then I was criticized and after a few more rewrites with out any feedback then I decided to summit. and then still had to make a change to get it validated, oh well. :?

But there is a few ways of doing this mod and a difference between 2.01-2.03 and 2.04, what I would like to see is that the sentence “Go To Administration Panel” is not used in the header taking up space, instead something smaller or just the image and the same available option to the footer.

If help or suggestions are needed just ask :wink:
Best regards, Jim

Nuttzy99
Former Team Member
Posts: 4917
Joined: Fri Aug 03, 2001 7:09 am
Location: the 11th dimension
Contact:

Post by Nuttzy99 » Fri Feb 07, 2003 6:18 pm

Nuttzy99 wrote: 2) ask the author for permission for you to extend his MOD, giving him credit as the original creator
3) MOD the MOD. Note that the first MOD is requried to be installed and then your MOD is like an add-on to it.
4) there are probably more ways, but the key is communication with the original MOD author to make sure his wishes are respected.


If you think people would like to see something slightly different, then the above options are available. Perhaps you could release one more of your style and still give Balint proper credit ;)

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
No Support via PM please!

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Post by Balint » Fri Feb 07, 2003 9:52 pm

Hi!

I reworked the MOD for 2.0.4 and paid attention to JetJam's suggestions (and gave him credit).

You can download the graphics here (right-klick --> save)

Image

Image

Image

Code: Select all

############################################################## 
## MOD Title: Copy "Go to Administration Panel"-link
## MOD Version: 1.0.2 
## MOD Author: Balint < balint@krizsan.de > (Balint Krizsan) http://www.krizsan.de 
## MOD Description: Places "Administration Panel"-link on top of the page.
##		    Only visible for admins.
## 
## Installation Level: easy
## Installation Time: 5 Minutes 
## Files To Edit: includes/page_header.php,
##		  templates/subSilver/overall_header.tpl,
##		  language/lang_english/lang_main.php
##
## Included Files: icon_mini_admin.gif 
##		   icon_big_admin.gif
##		   icon_big_admin2.gif
############################################################## 
## 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/ 
###############################################
Due to a bug in phpBB 2.0.4 I can't post the MOD because the & n b s p ; is truncated to &.

You can download the MOD here.

Regards,
Bálint

JetJam
Registered User
Posts: 9
Joined: Thu Aug 22, 2002 7:42 pm
Location: Maryland

Post by JetJam » Sat Feb 08, 2003 12:28 am

Hey, Balint good job :D

and just to let you know, you my want to add

Code: Select all

alt="' . $lang['Admin_panel_top']
to all of these

Code: Select all

$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a class="mainmenu" href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '"><img src="templates/subSilver/images/icon_mini_admin.gif" width="12" height="13" border="0" hspace="3" />' . $lang['Admin_panel_top'] . '</a>' : '';
so that when the mouse is over the image you get a popup description, just like all the rest.

and no offence, just my opinion, :wink:
I don't care for the bold test. look better when its like the rest of the header and maybe also inline with the rest.

Miguel Angel
Registered User
Posts: 35
Joined: Sun Feb 02, 2003 2:30 pm

for subice

Post by Miguel Angel » Sun Feb 23, 2003 10:04 pm

Hi!, thanks for a good job!, sorry but I am not as good as I would like in php, so, I was trying to use this mod in the theme subice, and I would like to have the same link format, coul help me to get it?, so, the idea is to have a link in the same format than the rest of them, may be is very simple but ............... :oops:

Thanks folks!

User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Post by Balint » Mon Feb 24, 2003 8:36 pm

Hi!

I assume you have only the subice theme installed... I have to change more code if you work with subice and SubSilver (but that would be no problem)!

Please download this file: http://www.krizsan.de/phpbb/subice.txt.

Regards,
Bálint

Locked

Return to “[2.0.x] MODs in Development”