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"> <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>[/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.
Show another "Go to Administrator panel" on top
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. :(
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. :(
-
- Registered User
- Posts: 3
- Joined: Tue Apr 02, 2002 8:14 am
Show another "Go to Administrator panel" on top
Last edited by maxwell454 on Wed Apr 03, 2002 12:53 pm, edited 1 time in total.
- SHS`
- Registered User
- Posts: 1628
- Joined: Wed Jul 04, 2001 9:13 am
- Location: The Boonies, Hong Kong
- Contact:
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
phpBB™ 3.1.x, Bug/Security trackers
phpBB™ Bertie Bear 3.0 — prosilver Edition! • Asking Questions The Smart Way
-
- Registered User
- Posts: 247
- Joined: Sun Oct 28, 2001 9:47 am
- Location: utrecht, the netherlands
- Contact:
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]
[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!
Always remember to backup your data.
Before you ask, did you do a search?
Post responsibly!
-
- Registered User
- Posts: 3
- Joined: Tue Apr 02, 2002 8:14 am
Sorry.
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.
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
-
- Registered User
- Posts: 40
- Joined: Thu Jan 24, 2002 7:14 pm
- Location: Leyland, Lancashire
Re: Sorry.
[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?
! 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?
Then again...
-
- Registered User
- Posts: 3
- Joined: Tue Apr 02, 2002 8:14 am
Re: Sorry.
[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?
[/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.
! 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?
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.