Greetings,
Is there a way to add additional links under tools in admin?
Thanks!
Greetings,
Is there a way to add additional links under tools in admin?
Thanks!
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
.
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.
No, wait a minute. Checking other add-ons on my admin, shouldn't it be your_file_tools_dhtml.php ?
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.
Thanks Dr Byte - I got that one right for a change
Have a Great Easter!
Thanks!
So say this is my code in tools_dhtml.php
how would I get that to open in a new window as it is an external link?Code:$za_contents[] = array('text' => BOX_TOOLS_EXTERNAL_LINK, 'link' => zen_href_link(FILENAME_EXTERNAL_LINK, '', 'NONSSL'));
Thanks, again!
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.
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:
that created a link to a non existant url: /link.phpCode:$za_contents[] = array('text' => BOX_TOOLS_LINK_NAME, 'link' => zen_href_link((link), '', 'NONSSL'));
in .htacess we simply redirected /link.php to our destination URL.
Your thoughts?