phpmyadmin

urgido

Verified User
Joined
Oct 28, 2008
Messages
431
Location
MX
It would be great if phpmyadmin can open in a new window like Plesk or a back button
 
No, please don't open phpmyadmin in a new window. That will only break the browsers "back" button, and it's not user friendly. It should be the users decision whether they want to open a new window or tab when clicking a link, it should not be something "we" decide for them.
 
back button no break anything a simple example it's installatron or softaculous
 
Right Click on the link and choose Open Link in New Window.

But if right clicking is really too much extra effort then edit the skin.
 
No, please don't open phpmyadmin in a new window. That will only break the browsers "back" button, and it's not user friendly. It should be the users decision whether they want to open a new window or tab when clicking a link, it should not be something "we" decide for them.
I disagree. I believe that anything that leaves the current context should open in a new window.

I can't recall how many times I've finished something in phpMyAdmin, and then closed the window, forgetting it was also my DirectAdmin window.

But perhaps it could be set with a flag in directadmin.conf.

Jeff
 
I guess I am the only one who is in the habit of opening links in new windows. I usually end of with 30 to 40 browser windows open at the end of the day but I never lose anything I am working on.

Open new window:
Right click - select new window
Shift click.

Open in new tab:
Right click - select new tab
Middle click - for those who have the mouse wheel
Control click

I cannot get all the web page designers to build into their web pages an open in new window link. I had to learn to do it myself.

I think each user should be able to choose for themselves if they want to open it in a new window or not. They don't have access to directadmin.conf to switch it back and forth.

Its a pointless feature request because the ability is already there.
 
I feel hesitant to disagree with you, Floyd, because I've just sent you a PM asking for your help :)...

That said, I find here a very good argument for not opening links in new windows, but further down on this page, in a comment by Tadd, dated July 1st, 2008 6:36 am, I also find a good example of when one should open a link in a new window:
It just seems more good practice to me to open any link that’s not part of your website in a new window/tab. It’s more friendly and keeps your website in the loop so they can go back to see other links.
In my opinion, phpMyAdmin, because it doesn't have any built-in way of getting you back to the control panel, in fact not even a way to remind you that you've logged in to a control panel, is a link not part of the DirectAdmin control panel website.

Strictly my opinion of course, but given that, what's wrong with having the option in directadmin.conf so I can do it that way if I want?

Jeff
 
Jeff I think we actually agree for the most part. Maybe I was not clear.

Whether one wants to open a link in a new window or not should be the user's choice I believe. I believe in giving the end user a choice.

If you build into DirectAdmin the phpmyadmin link to open in a new window you take that choice away from the end user.

As it is the end user already has the choice to open phpmyadmin in a new window. Maybe he just does not know how to do it.

In my opinion, phpMyAdmin, because it doesn't have any built-in way of getting you back to the control panel, in fact not even a way to remind you that you've logged in to a control panel, is a link not part of the DirectAdmin control panel website.

And the ability to open it in a new window is already there. Hold down the Shift key and click on the link.

You/Admins are not the only ones using the link. End users are too. Maybe JBMC could just put a note beside the phpmyadmin link
(To open in a new window hold down the shift key and click the link.)
 
My problem is I prefer being the Maytag repair man. Remember him? The guy that never has to answer the phone because it doesn't ring :). Perhaps a note would be good.

Jeff
 
But phpmyadmin and DA are 2 seperate logins, like webmail.... imo, it is logical to have them open in a new window (like I do, target="_blank")- as ppl would forget to log out of DA thus raising possible vulnerbilities..... no?
 
as ppl would forget to log out of DA thus raising possible vulnerbilities..... no?

It would only be a problem if they left their computer before the DirectAdmin timeout occurred. Never depend on users properly logging out. That would be a real security risk, depending on users to do anything.
 
how to open in new window

How to i get the link to open in new window?

|*if USERDATABASEMAX!="0"|
$items[] = array('img' => '/IMG_IC_PHPMYADMIN', 'link' => 'http://|HOSTNAME|/phpMyAdmin', 'txt' => $d13);
|*endif|
 
i would prefer on opening on a new windows for phpmyadmin and other external software link too (webmail too for example) for the same reason jlasman gave

Regards
 
How to i get the link to open in new window?

|*if USERDATABASEMAX!="0"|
$items[] = array('img' => '/IMG_IC_PHPMYADMIN', 'link' => 'http://|HOSTNAME|/phpMyAdmin', 'txt' => $d13);
|*endif|

Here is the code I am using, and it is tested in every browser out there. Also it is valid XHTML 1.0 strict:

Code:
<a href="|HTTP|://|HOSTNAME|/phpmyadmin/" onclick="window.open(this.href,'_blank');return false;">|LANG_PMA|</a>

So, as you can see from above, what you need to do, is to add the following into your HTML href:

Code:
onclick="window.open(this.href,'_blank');return false;"

Also, I am not familiar with your example of code, as I have developed my own custom skin. Please note that you should edit the HTML href directly in the templates files, like in user/show_domain.html and user/db/db.html etc.
 
Last edited:
Thank you, but I`m still not successful - its the Capri-Skin from Walo, line 193, the code is php, the links are defined in an array and are bordered with '-symbol, I tried different possibilities ' and ", before, after, with/without space and "&" before command, in most cases after changes the page is empty or i get errors. No new window :(

It would be great to get a solution for this php-array-linking, because the other links to the webmailers are also defined like this in CapriSkin. I opened already supportticket at walo website and wait for reply.

I found also solutions with additional javascripts or additional arrayfields, but this too much for me - understand only html and a little php :-/

Any other thoughts welcome..
 
Last edited:
No chance without recoding

Got right now answer from support that there is no way unless remake the entire file.
This is what we found ourself by testing - its all bundled inside the array, without completely recoding or adding another or explanding the given array there is no chance. No JS, no HTML for functions are possible.
 
Back
Top