How To Add Links To ACP


Goto page 1, 2  Next

Subject: 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 :P . Thanks!

Profile PM  
Subject: Re: How To Add Links To ACP
Go to ACP
and options LINKS and Add links

Profile PM  
Subject: 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... :)

Profile PM  
Subject: Re: How To Add Links To ACP
Phess wrote: [View Post]
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

Profile PM  
Subject: 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 :cry: .

Profile PM  
Subject: Re: How To Add Links To ACP
Phess wrote: [View Post]
That's for put a link in header, but I don't know what link I have to put... I need the URL :cry: .


i think u shoud use this

Code: [Download] [Hide] [Select]
<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 -->

Subject: 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

Code: [Download] [Hide] [Select]
define('HEADER_INC', true);


after add

Code: [Download] [Hide] [Select]
include_once($phpbb_root_path . 'includes/functions_jr_admin.' . $phpEx);
$admin_link = jr_admin_make_admin_link();


find

Code: [Download] [Hide] [Select]
'L_CPL_ZEBRA_EXPLAIN' => $lang['FRIENDS_EXPLAIN'],


after add

Code: [Download] [Hide] [Select]
'ADMIN_LINK' => $admin_link,


open templates/your_template/overall_header.tpl and add this whereever you like

Code: [Download] [Hide] [Select]
<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...

Subject: 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 :( .

Profile PM  
Inactive User
Subject: Re: How To Add Links To ACP
Put this where you want the anchor.

Code: [Download] [Hide] [Select]
<!-- 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. :P

Subject: Re: How To Add Links To ACP
Phess wrote: [View Post]
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? :shock: :shock: :roll: :blink2:

try this (i m not sure if its safe !!!! no_04 :nuke:

Code: [Download] [Hide] [Select]
<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


acp01

acp1

acp2

Inactive User
Subject: 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

Subject: Re: How To Add Links To ACP
Lopalong wrote: [View Post]
Session ID changes everytime you log in. ;)

http://127.0.0.1/work/index.php?sid...227188910d96453
http://127.0.0.1/work/forum.php?sid...5ebab2e5bf1423c


That's the problem... :cry: 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 :cry: . Maybe, in future, I will try modifying php. Thank you for your help :) , and thanks for understand my bad English!! :). Bye!

Profile PM  
Inactive User
Subject: 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. :mrblue: :mryellow:


Subject: 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."

Profile PM  
Inactive User
Subject: 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. :mrgreen:

Goto page 1, 2  Next

Page 1 of 2


  
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

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 1.4815s (PHP: 3% SQL: 97%)
SQL queries: 10 - Debug Off - GZIP Enabled