Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default How add target=_blank for tools_dhtml.php ?

    I'd like some of the Tools to open in new windows (I have firefox to open new windows as new tabs)

    How would I add target=_blank to the following link:

    Code:
    $za_contents[] = array('text' => BOX_TOOLS_DEVELOPERS_TOOL_KIT, 'link' => zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, '', 'NONSSL'));
    Many thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How add target=_blank for tools_dhtml.php ?

    Ctrl T and paste the URL works good too ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How add target=_blank for tools_dhtml.php ?

    I usually just right-click the link and choose New Tab.

    But if you insist on changing code, try changing this:
    Code:
    zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, '', 'NONSSL'));
    to this:
    Code:
    zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, '', 'NONSSL') . '" target="_blank');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: How add target=_blank for tools_dhtml.php ?

    Thanks, both. I've been doing right click/new tab, just wanted to save clicks. I tried your code, Dr, and it worked great. Thanks so much

  5. #5
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: How add target=_blank for tools_dhtml.php ?

    wow, this thread is 4 years old!!! but exactly what i needed!!! thanks



    Quote Originally Posted by DrByte View Post
    I usually just right-click the link and choose New Tab.

    But if you insist on changing code, try changing this:
    Code:
    zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, '', 'NONSSL'));
    to this:
    Code:
    zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT, '', 'NONSSL') . '" target="_blank');

 

 

Similar Threads

  1. v151 Target File Already Exists:\includes\modules\pages\payer_auth_verifier\header_php.php
    By EdsGoodStuff in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 21 Dec 2012, 04:27 PM
  2. Really stupid but... '" target="_blank">
    By Rizla in forum General Questions
    Replies: 4
    Last Post: 23 Jan 2011, 11:37 AM
  3. formal request for a general target date of 1.3.9
    By Merlinpa1969 in forum General Questions
    Replies: 12
    Last Post: 22 Jan 2009, 01:10 AM
  4. Need some help with scripting target=_blank set to exact size
    By Goshawk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Sep 2006, 10:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR