Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by DrByte View Post
    Well, if it's an external link, you wouldn't use zen_href_link at all..
    What can you suggest to create an external link?

  2. #12
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Creating new links under tools in admin

    Well, any link you click on from within your admin is going to send the HTTP_REFERER to the next site and disclose the full URL your browser came from.

    But, if you wish to do it anyway, just put the actual URL into it:

    Code:
      $za_contents[] = array('text' => TEXT_NAME_CONSTANT, 'link' => 'http://the_domain_name.com/whatever/');
    .

    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.

  3. #13
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by DrByte View Post
    Well, any link you click on from within your admin is going to send the HTTP_REFERER to the next site and disclose the full URL your browser came from.

    But, if you wish to do it anyway, just put the actual URL into it:

    Code:
      $za_contents[] = array('text' => TEXT_NAME_CONSTANT, 'link' => 'http://the_domain_name.com/whatever/');
    Thanks "Doc"!

    I think we'll try a double redirect

    Code:
      $za_contents[] = array('text' => TEXT_NAME_CONSTANT, 'link' => 'http://our_domain_name.com/whatever/');
    and then redirect /whatever to the external link.

    In theory the HTTP_REFERER "should" show the non-existing url "http://our_domain_name.com/whatever/" and not the admin URL.

    We'll test that out to confirm.

    Thanks for your help and sound advice!

  4. #14
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Creating new links under tools in admin

    That'll probably only work right if you use a <meta > redirect in an HTML page ... not a php header("location") redirect.
    .

    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.

  5. #15
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by DrByte View Post
    That'll probably only work right if you use a <meta > redirect in an HTML page ... not a php header("location") redirect.
    Was thinking more along the lines of doing it in .htaccess as the "http://our_domain_name.com/whatever/" URL won't actually exist.

  6. #16
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Creating new links under tools in admin

    Nope ... that won't change the REFERER value.
    .

    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.

  7. #17
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by DrByte View Post
    Nope ... that won't change the REFERER value.
    Dang it! LOL

    Well back to the drawing board...

  8. #18
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Creating new links under tools in admin

    To prevent the REFERER from being passed as-is, the browser needs to actually load another page at another URL before it gets sent on to another page.
    Think of it this way: basically the REFERER is only reset when you *click* with your mouse.
    .

    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.

  9. #19
    Join Date
    Nov 2006
    Location
    Brighton, CO
    Posts
    90
    Plugin Contributions
    0

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by DrByte View Post
    To prevent the REFERER from being passed as-is, the browser needs to actually load another page at another URL before it gets sent on to another page.
    Think of it this way: basically the REFERER is only reset when you *click* with your mouse.
    Makes sense, now.

    Will have to NOT have any external links to domains we do not control.

    Question:

    We have another directory on the same domain where ZC is installed. ZC is installed in /shop and another directory /api as well. We want to have a link in admin's Tools to open the /api directory in a NEW window. The /api directory contains a program that automatically uploads datafeeds, images, and processes the shops orders with the supplier. Reason we want it to automatically open to a new window is it is easier to reference between ZC Admin and the API. Also, the /api directory requires a login.

    Your thoughts?

    Thanks, again!

  10. #20
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by Convergence View Post
    Your thoughts?
    I'm not sure what you're asking.

    If you're asking how to open it in another window, you could try this variation on what I posted before:
    Code:
      $za_contents[] = array('text' => TEXT_NAME_CONSTANT, 'link' => 'http://the_domain_name.com/whatever/" 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.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 29 Sep 2011, 04:56 PM
  2. Why not opening Layout Boxes Controller from Tools menu under the Admin area?
    By lecherous in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Nov 2010, 08:10 AM
  3. How to remove EasyPopulate links in admin/tools?
    By kenny724 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Mar 2010, 12:04 AM
  4. New Admin > Tools Mod Help???
    By IllusionGuy in forum Customization from the Admin
    Replies: 3
    Last Post: 23 Jun 2007, 09:23 PM

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