Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post 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!
 



 
PhessSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: How To Add Links To ACP 
 
Go to ACP
and options LINKS and Add links
 



 
DaliborSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 



 
PhessSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 



 
xmenfileSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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   .
 



 
PhessSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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   .


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




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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...
 




____________
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.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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 .
 



 
PhessSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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?        

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

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
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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...   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!
 



 
PhessSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.    


 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post 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."
 



 
PhessSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.  
 
 
 
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron