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

    Default Creating new links under tools in admin

    Greetings,

    Is there a way to add additional links under tools in admin?

    Thanks!

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Creating new links under tools in admin

    You will need to create a few new files in

    admin/includes/boxes/extra_boxes/your_file.php
    admin/includes/extra_datafiles/your_file.php
    admin/includes/languages/english/your_file.php
    admin/your_file.php

    The latter containing the chunk of php code what you want to do with your link OR you could leave this file out
    altogether and include your link in admin/includes/languages/english/your_file.php

    Just download the mod Backup Mysite and clone it according to your needs.

    Make sure you backup everything before doing something like this

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

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by frank18 View Post
    admin/includes/boxes/extra_boxes/your_file.php
    Um, not quite. Try this instead:
    /admin/includes/boxes/extra_boxes/XXXXXX_tools.dhtml
    .

    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 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Creating new links under tools in admin

    Quote Originally Posted by DrByte View Post
    Um, not quite. Try this instead:
    /admin/includes/boxes/extra_boxes/XXXXXX_tools.dhtml
    That's the one! Sorry for the !!

  5. #5
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Creating new links under tools in admin

    No, wait a minute. Checking other add-ons on my admin, shouldn't it be your_file_tools_dhtml.php ?

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

    Default Re: Creating new links under tools in admin

    yes
    .

    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. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Creating new links under tools in admin

    Thanks Dr Byte - I got that one right for a change

    Have a Great Easter!

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

    Default Re: Creating new links under tools in admin

    Thanks!

    So say this is my code in tools_dhtml.php

    Code:
    $za_contents[] = array('text' => BOX_TOOLS_EXTERNAL_LINK, 'link' => zen_href_link(FILENAME_EXTERNAL_LINK, '', 'NONSSL'));
    how would I get that to open in a new window as it is an external link?

    Thanks, again!

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

    Default Re: Creating new links under tools in admin

    Well, if it's an external link, you wouldn't use zen_href_link at all.

    What exactly are you linking to? It's not exactly wise to link to external sites from within your admin area ... for several reasons:
    a) it exposes the real URL to your admin foldername
    b) it opens your admin and the other site to XSS (cross site scripting) or CSRF (cross site request forgery) security risks
    c) and isn't really your "admin" per se, so really shouldn't be linked from your admin
    .

    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.

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

    Default Re: Creating new links under tools in admin

    We want to have links to other services we have such as, our domain registration site, live chat, etc.

    These are links to sites we control.

    We created an .htaccess redirect to minimize security risks.

    The link we actually created was this:

    Code:
    $za_contents[] = array('text' => BOX_TOOLS_LINK_NAME, 'link' => zen_href_link((link), '', 'NONSSL'));
    that created a link to a non existant url: /link.php

    in .htacess we simply redirected /link.php to our destination URL.

    Your thoughts?

 

 
Page 1 of 3 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