Jump to content

ACP Link, Open in new window

Featured Replies

Posted

Hi Guys :)

Is it possible to have this to open in a new window please like we had before? :unsure:

I know it's easy enough to right click then open the new window but takes more time, I want to be in two places at once..:lol:

Edit your skin and include target='_blank' in the link ;)

  • Author

Edit your skin and include target='_blank' in the link ;)




Where abouts in the skin can I find the part to edit? :)

They did it this way because it's suggested for sites to leave it up to the user whether to open it in a new window or not. I forget if it's actually specified in hxtml or where exactly it was recommended. Personally I would rather it automatically pop up though and I think IPS did make some other links automatically pop up still.


Where abouts in the skin can I find the part to edit? :)




It's in Global Templates > GlobalTemplate and its approx 35 lines down

Find:

<a href="{$this->settings['_admin_link']}" title='{$this->lang->words['admin_cp']}'>{$this->lang->words['login_to_acp']} &gt;</a>

And change to:

<a href="{$this->settings['_admin_link']}" "target=_blank" title='{$this->lang->words['admin_cp']}'>{$this->lang->words['login_to_acp']} &gt;</a>



Regards

great now I can't even type xhtml without typoing.


It's in Global Templates > GlobalTemplate and its approx 35 lines down



Find:



<a href="{$this->settings['_admin_link']}" title='{$this->lang->words['admin_cp']}'>{$this->lang->words['login_to_acp']} &gt;</a>

And change to:

<a href="{$this->settings['_admin_link']}" [color="#FF0000"]"target=_blank"[/color] title='{$this->lang->words['admin_cp']}'>{$this->lang->words['login_to_acp']} &gt;</a>

Regards

You made a small mistake in ' "target=_blank" '. It should be: target="_blank" So change from:

<a href="{$this->settings['_admin_link']}" title='{$this->lang->words['admin_cp']}'>{$this->lang->words['login_to_acp']} &gt;</a>

to

<a href="{$this->settings['_admin_link']}" target="_blank" title='{$this->lang->words['admin_cp']}'>{$this->lang->words['login_to_acp']} &gt;</a>

  • Author

Thanks for the coding guys, works a treat. :thumbsup::D

The removal of the Popup (using target=_blank) is because they are moving forward with web-design and the target attribute in XHTML 4.0 compliant sites is not allowed. <_<
http://articles.sitepoint.com/article/standards-compliant-world

Just so you know.

  • Author

I did wonder why it was taken away. Thanks! :)


The removal of the Popup (using target=_blank) is because they are moving forward with web-design and the target attribute in XHTML 4.0 compliant sites is not allowed. <_<


[url="http://articles.sitepoint.com/article/standards-compliant-world"]http://articles.site...compliant-world[/url]



Just so you know.



I'm just replying in general but only admins can see the link thus guests or bots can't validate whether the link is formatted correctly. So that means the intent of that link falls back on to IPS and their reasons for not opening in new window. Most likely some customers, not us in the forums - You know the one's that call in may have complained about the link opening in new tab *cough* lol :P

No, the XHTML specifications do not allow for the "target" attribute on anchor tags anymore. Full stop, end of story. There's really little to it beyond that.

We've added an alternative which you can enable in the ACP for external links (using javascript), but the only reason we don't use target anymore is, as I said, it's not allowed using XHTML strict.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.