|
Page 1 of 2
|
Phess
Joined: March 2008
Posts: 16
|
 How To Add Links To ACP
Hello and excuse my English...
I want create a customized menu and I need to add a link to ACP, but that links change always I log in...
I found an old post that try to explain that, but I don't understand it... Can you help me, please? Thanks!
P.D.: Correct my English if it's wrong please  . Thanks!
|
#1 Sat 26 Jul, 2008 17:17 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Dalibor 
Joined: July 2008
Posts: 9
|
 Re: How To Add Links To ACP
Go to ACP
and options LINKS and Add links
|
#2 Sun 27 Jul, 2008 01:24 |
|
Phess
Joined: March 2008
Posts: 16
|
 Re: How To Add Links To ACP
Sorry, but I think that I'm wrong in my explain...
I want a link that send me to ACP. A link that, on click, go to ACP. Excuse my English...
|
#3 Sun 27 Jul, 2008 02:15 |
|
xmenfile 
Joined: September 2007
Posts: 482
Location:  Right in front of my computer
|
 Re: How To Add Links To ACP
Sorry, but I think that I'm wrong in my explain...
I want a link that send me to ACP. A link that, on click, go to ACP. Excuse my English... 
try to edit template xxxx/overall_header.tpl
|
#4 Sun 27 Jul, 2008 04:20 |
|
Phess
Joined: March 2008
Posts: 16
|
 Re: How To Add Links To ACP
That's for put a link in header, but I don't know what link I have to put... I need the URL  .
|
#5 Sun 27 Jul, 2008 11:24 |
|
Limun 
Joined: January 2008
Posts: 1334
Location: ![[Censor] (Croatia) croatia.png](images/flags/croatia.png) [Censor]
|
 Re: How To Add Links To ACP
That's for put a link in header, but I don't know what link I have to put... I need the URL  .
i think u shoud use this
<a href="{U_ACP}">xxxxx</a>
in xxxxx write what u want like name ACP or Admin Panel or Administration ...
i dont understand where u gona use it , but this gona be visible to all because here there is not <!-- BEGIN mg_switch_user_is_admin -->
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#6 Sun 27 Jul, 2008 11:41 |
|
DWho 
Joined: August 2006
Posts: 1307
Location:  hampshire
|
 Re: How To Add Links To ACP
To securely add an admin link in the header of your site.. you need to do this...
open includes/page_header and find
define('HEADER_INC', true);
after add
include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx);
$admin_link = jr_admin_make_admin_link();
find
'L_CPL_ZEBRA_EXPLAIN' => $lang['FRIENDS_EXPLAIN'],
after add
'ADMIN_LINK' => $admin_link,
open templates/your_template/overall_header.tpl and add this whereever you like
<div style="text-align:center;"><br /><span class="admin-link">{ADMIN_LINK}</span><br /><br /></div>
you can change the way the look is displayed...
I hope that helps...
____________ Mods and themes for Icy Phoenix 1.3
IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
|
#7 Sun 27 Jul, 2008 13:52 |
|
Phess
Joined: March 2008
Posts: 16
|
 Re: How To Add Links To ACP
Sorry, but not work... I want make a menu, in Portal, based in a text block (BBCode/HTML), and I want to put a button (image) that send me to ACP. For that, I need an URL that send me to ACP... I've tryed with "<a href="{U_ACP}">xxxxx</a>" but it not work...
The block is visible only by the Admin, so that's no problem with the security... Thanks and excuse my bad English  .
|
#8 Mon 28 Jul, 2008 01:57 |
|
Inactive User
|
 Re: How To Add Links To ACP
Put this where you want the anchor.
<!-- BEGIN mg_switch_user_is_admin -->
{U_ACP}
<!-- END mg_switch_user_is_admin -->
It's impossible to link it with an image, without modifying the .php files. It also doesn't work in all templates unless it is validated for the template/.php file that you are addressing. So adding it to a menu is probably not going to work.
And why an Image anyway? Admin is the only one who sees it.
|
#9 Mon 28 Jul, 2008 03:37 |
|
Limun 
Joined: January 2008
Posts: 1334
Location: ![[Censor] (Croatia) croatia.png](images/flags/croatia.png) [Censor]
|
 Re: How To Add Links To ACP
Sorry, but not work... I want make a menu, in Portal, based in a text block (BBCode/HTML), and I want to put a button (image) that send me to ACP. For that, I need an URL that send me to ACP... I've tryed with "<a href="{U_ACP}">xxxxx</a>" but it not work...
The block is visible only by the Admin, so that's no problem with the security... Thanks and excuse my bad English  .
block?
try this (i m not sure if its safe !!!!
<center><a href="http://www.yourforum.com/login_ip.php?redirect=adm/index.php&admin=1&sid=76842792c8130e51ec96977cd2192cf8"><img border="0" src="./images/bbcb_mg/images/gif/fade.gif" width="20" height="20" align="center" vspace="2">ACP</a></center>
where http://www.yourforum.com = your forum link
____________ We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
|
#10 Mon 28 Jul, 2008 04:41 |
|
Inactive User
|
 Re: How To Add Links To ACP
Session ID changes everytime you log in.
h**p://127.0.0.1/work/index.php?sid...227188910d96453
h**p://127.0.0.1/work/forum.php?sid...5ebab2e5bf1423c
|
#11 Mon 28 Jul, 2008 05:21 |
|
Phess
Joined: March 2008
Posts: 16
|
 Re: How To Add Links To ACP
That's the problem...  I think now that, as you say, it not going work... I will use bottom link and I will not include ACP link in my menu  . Maybe, in future, I will try modifying php. Thank you for your help  , and thanks for understand my bad English!! :). Bye!
|
#12 Mon 28 Jul, 2008 13:23 |
|
Inactive User
|
 Re: How To Add Links To ACP
You can add the ACP link to the header as in the sample picture - and put it wherever it suits you by using the script I posted.
And by using the same block-vars, You can also add an Admin Menu with a button/image as in the pic. But you can't add the "ACP" to the menu.
So if you pair of would-be hackers have finished - I'll tag this thread Solved.
|
#13 Mon 28 Jul, 2008 13:39 |
|
Phess
Joined: March 2008
Posts: 16
|
 Re: How To Add Links To ACP
Thanks! I'll do that :). Bye!!
P.D.: Sorry, but I don't understand...: "So if you pair of would-be hackers have finished - I'll tag this thread Solved."
|
#14 Mon 28 Jul, 2008 17:23 |
|
Inactive User
|
 Re: How To Add Links To ACP
Phess wrote: [View Post] P.D.: Sorry, but I don't understand...: "So if you pair of would-be hackers have finished - I'll tag this thread Solved."
It's just my sense of humour.
|
#15 Tue 29 Jul, 2008 12:14 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|