Show another "Go to Administrator panel" on top

Want to chit chat about anything, do it here ... posting here won't increase your post count (or shouldn't!). Please do not post any "phpBB" specific topics here unless they do not fit into the category above. Do not post bug reports, feature or support requests!
Forum rules
Please do not post any "phpBB" specific topics here unless they do not fit into the category above.

Do not post bug reports, feature or support requests! No really... Do not post bug reports, feature or support requests! Doing so will make Bertie a very sad bear indeed. :(
Post Reply
maxwell454
Registered User
Posts: 3
Joined: Tue Apr 02, 2002 8:14 am

Show another "Go to Administrator panel" on top

Post by maxwell454 »

I want to thank you for the awesome phpbb2 software. I really enjoy the artificial intelligence you guys build in this package. My question is when I login as an Admin, I have to scroll all the way to the bottom to click on "Go to Administrator Panel". I tried to paste [code:1350c9]<?php
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}

//
// Show the overall footer.
//
if($userdata['user_level'] == ADMIN)
{
$admin_link = "<a href=\"" . append_sid("admin/index.$phpEx") . "\">" . $lang['Admin_panel'] . "</a><br /><br />";
}
else
?>[/code:1350c9]
in the "factory condition" overheader.tpl file below this line number 260's[code:1350c9]<td nowrap="nowrap" valign="top" height="25" align="center"><span class="mainmenu">&nbsp;<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>&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;<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>[/code:1350c9] but I ger syntax error. Please advise the correct line and location with highest security measure. Thank you so much. This should be an easy one for the PHPBB2 experts.
Last edited by maxwell454 on Wed Apr 03, 2002 12:53 pm, edited 1 time in total.

User avatar
SHS`
Registered User
Posts: 1628
Joined: Wed Jul 04, 2001 9:13 am
Location: The Boonies, Hong Kong
Contact:

Post by SHS` »

You cannot use PHP in the template (TPL) files..... understand seperation of code and HTML. ;)
Jonathan “SHS`” Stanley • 史德信
phpBB™ 3.1.x, Bug/Security trackers
phpBB™ Bertie Bear 3.0 — prosilver Edition!Asking Questions The Smart Way

Stefan Koopmanschap
Registered User
Posts: 247
Joined: Sun Oct 28, 2001 9:47 am
Location: utrecht, the netherlands
Contact:

Post by Stefan Koopmanschap »

[quote35081="SHS`"]You cannot use PHP in the template (TPL) files..... understand seperation of code and HTML. ;)[/quote35081]

then again, you can look up the {PLACEHOLDERS} for the administration panel link and see if you can copy and paste those to the header.

User avatar
Bear
Registered User
Posts: 319
Joined: Mon Dec 31, 2001 7:50 pm
Location: 127.0.0.1
Contact:

Post by Bear »

You're not expecting help right now, are you? Did you read the Announcements forum?

[quotef4f32="psoTFX"]For now, please post general questions, etc. to the Temporary Chat forum. Please note that this forum will not be around long (and will not be retained) so do not start any discussions which require in-depth answers, etc.[/quotef4f32]
Bear
Always remember to backup your data.
Before you ask, did you do a search?
Post responsibly!

maxwell454
Registered User
Posts: 3
Joined: Tue Apr 02, 2002 8:14 am

Sorry.

Post by maxwell454 »

I just read the annoucement. You guys should program a pop-up window for urgent message when users login . If you don't mind, please move my message when things are back to normal. Thank you very much.

SamG
Registered User
Posts: 1241
Joined: Fri Aug 31, 2001 6:35 pm

Post by SamG »

They may not keep this thread ... what SHS` is saying is that to accomplish what you want, you need only edit the HTML of the template. Find the HTML that generates the link, then copy and paste it where you'd like. A beauty of the template system is that in normal circumstances, we don't have to touch the PHP code to achieve our layout goals.
"I hate trolls!" - Willow Ufgood

Darkshines
Registered User
Posts: 40
Joined: Thu Jan 24, 2002 7:14 pm
Location: Leyland, Lancashire

Re: Sorry.

Post by Darkshines »

[quotecd174="maxwell454"]I just read the annoucement. You guys should program a pop-up window for urgent message when users login . If you don't mind, please move my message when things are back to normal. Thank you very much.[/quotecd174]

! That is one hell of a good feature request!
[me]smacks forehead[/me]
That's amazing! You know how much easier that could make life for admins with important announcements? :D
Then again...

maxwell454
Registered User
Posts: 3
Joined: Tue Apr 02, 2002 8:14 am

Re: Sorry.

Post by maxwell454 »

[quote9ffa0="Darkshines"][quote9ffa0="maxwell454"]I just read the annoucement. You guys should program a pop-up window for urgent message when users login . If you don't mind, please move my message when things are back to normal. Thank you very much.[/quote9ffa0]

! That is one hell of a good feature request!
[me]smacks forehead[/me]
That's amazing! You know how much easier that could make life for admins with important announcements? :D[/quote9ffa0]

Yeah, I would think that's important to have. Why? Because you're providing a free software and no one minds a little window pop-up. So when are you going to apply Baysian Model to model users' habits in a bb? Microsoft is going to revolutionize their softwares using Baysian Model, an artificial intelligence based on a unique statistics -- I am not kidding.

Tovarisch
Registered User
Posts: 4
Joined: Tue Mar 26, 2002 2:00 pm

Post by Tovarisch »

[quotea4cb4="maxwell454"][...]and no one minds a little window pop-up.[/quotea4cb4]
Grr! :wink:

-Tov

User avatar
dougk_ff7
Registered User
Posts: 26
Joined: Fri Jul 06, 2001 3:17 am
Location: CYBER -beat- NATION
Contact:

Post by dougk_ff7 »

Let me say one word...

... [color=redbdec3][ubdec3][ibdec3][bbdec3]Templates[/sizebdec3][/bbdec3][/ibdec3][/ubdec3][/colorbdec3]

Yeah, I'm dougk_ff7. I have a sig. Just not here. It's huge. And a bandwidth monster.

Enough fragments?

Post Reply