Page 1 of 2
[2.0.10] Admin Links
Posted: Fri Sep 03, 2004 9:08 pm
: Admin Links
: Allows admin to add links in the the admin panel.Clicking onto the link will redirect the user to that page.These Links will only be viewable to the admin in the admin panel
mods overview page: View
Posted: Sat Sep 04, 2004 3:35 pm
This MOD enables you to add links to your Administration Control Panel. File editing is required to add a new link.
Not Very Useful for Me...
Posted: Tue Sep 07, 2004 12:10 am
Unfortunately, this isn't very useful for me since phpBB keeps adding the SID (session ID) variables to every link you enter in the file. Thus, it works OK for getting into my phpMyAdmin, but it breaks the login for my web host's custom control panel.
Is there any way to prevent phpBB from appending the SID to every link you place here? If so, that would make this supremely useful for me...
Posted: Tue Sep 07, 2004 2:57 am
umm....on my site,i have like 3-6 links on this mod,and they all load fine,without a problem.Heres a screenshot,i have a red square on the sid and on the link i clicked.The image link:
but it breaks the login for my web host's custom control panel
What Control panel are you using,i am using Cpanel and have no problems:
Did you edit the file correctly,make sure it is something like this,where phpBB is something like Control Panel,and the phpbb.com the url to the control panel:
I have photoshoped my admin panel so i dont get any of those what mod are you using to do this,etc....
Code: Select all
$module['Quick Links']['phpBB.com'] = append_sid("http://phpbb.com");
Posted: Thu Sep 09, 2004 4:00 am
Yes, I've got that--the MOD works OK for linking to the phpMyAdmin from my provider (Dreamhost), but they use a custom control panel package (i.e. not cPanel), which I guess uses the "sid" variable, or at least is coded to reject a connection if they see a variable in the URL that they don't understand...
Is there ANY way to avoid having SID appended to every URL used here? I suppose I could mod the function "append_sid" to not do this for those links that are going outside the phpBB domain, but I'm wondering if there are any security ramificaitons for that?
Posted: Thu Sep 09, 2004 4:29 am
append_sid is required in the file,becuase if u remove it,then u get a nastly parse error
Do u have any errors loading the control panel from the admin panel?...did u try talking to your host?
Posted: Sat Sep 11, 2004 12:42 am
Haven't thought of talking to the host...I can certainly try that.
I would think that it's not a great idea to be sending PHP session IDs from one domain (i.e. my forums) to another, anyway...it could be "hostile" and somehow hijack the session, right?
Oh, well...I'll play around a bit maybe.
Posted: Sat Sep 11, 2004 2:47 am
well...i am still learning php and from what i've been testing,apped_sid is he only thing that will work with-in the module code,unless i am using the link() code wrong,but i am looking into this
Posted: Mon Nov 15, 2004 9:51 pm
Not using the "append_sid" does not create any parse error on my part. In fact, there's quite a bit of content from the admin_adminlinks.php file I can comment out without any change in it's functionality. But anyway...
Here is the page I get when I click on either of the Google links, as described above:
The requested URL /?sid=a40de3a90d2d3e8a73a27ed8f0910d46 was not found on this server.
Now, when you reference phpbb.com, everything loads fine. So I ask the same thing 'mickelsn' asks, .. Could someone please inform us how we can use this mod, and have the links request a url WITHOUT the SID?
Posted: Mon Dec 06, 2004 1:31 am
Awesome mod...one question.
Is there a way to make it so only user id=2 can use the links?
I put up a link to phpMyAdmin, then logged in. I signed out, and logged in as a test admin on my board, and got right into phpMyAdmin without entering a password. I deleted cookes, but it made no difference. I want to make it so either the password has to be used every time the link is used, or make it so only user id=2 can use the link (only root admin can use them)
Posted: Mon Dec 06, 2004 2:44 am
Un-tested,but it seems that it might work:
Code: Select all
message_die(GENERAL_ERROR, Main Admin Only );
Posted: Mon Dec 06, 2004 3:58 pm
When I first put this code in, I got an Unexpected T_VARIABLE error and the left menu wouldn't show up. I took the space out between "Main Admin Only" and the ")" and that got rid of the error, but the link section would no longer show up in the menu unless I took all of this code out.
Wish I knew a bit more about coding...I need to read up. I learned a LOT of html by just doing it, and learning slowly but surely php.
Thanks for the help...any other ideas?
Posted: Mon Dec 06, 2004 7:43 pm
Talk to host to see if that they can password phpmyadmin.Even when i have phpmyadmin to remmber my username and password,it always ask me for the user and password.
Posted: Tue Mar 29, 2005 11:59 pm
I have phpBB 2.0.13 and i have the CH-MOD installed.
Will i have problems to install this mod ?
Posted: Sun May 15, 2005 4:38 am
I get an issue with this mod. If I edit the links to point to a new IP it will not allow it to point and go to the new IP. eg.
$module['Admin Links']['some site'] = append_sid("http://22.214.171.124/MYForum/
then change it to
$module['Admin Links']['some site'] = append_sid("http://10.1.1.1/MYForum/
Everything exactly the same except for the IP address change.
it keeps pointing to the 126.96.36.199/MYForum, Even going into the database and removing the sid and allowing the administrator account to create a new sid it still points to the old address. And yes the file is properly altered and edited and saved with all the newer changes.
All cache and cookies for the admin account are deleted in the browser and the persistent data too. So it's not that.
Is this thing saving something somewhere else in the DB or to another file? Someone got a cure or solution for this?