| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Is there a way to use an external header.php file for the admin section? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have made a custom header for the admin page of X-Cart. I thought I could use an include tag so that I could store the header file on my website space, meaning I could update it in the future without having to go back and update all of the stores I have worked on. However, when I tried to use the below code in head_admin.tpl it wouldn't work. What am I doing wrong?
![]() Any help is appreciated! <?php include("http://www.mywebsite.com/_header.php"); ?>
__________________
Xcart Version 4.1.9 [win] |
|||||||
#2
|
|||||||
|
|||||||
![]() Ok after reading some other threads I figured out how I should be formatting it :
{php} include('http://www.mywebsite.com/_header.php'); {/php} Still having issues though - I am now getting the error message> Warning: include() [function.include]: URL file-access is disabled in the server configuration in /clientdata/clients/d/a/ecommercewebsite.com/www/shop/var/templates_c/%%E2^E20^E20954B4%%head_admin.tpl.php on line 7
__________________
Xcart Version 4.1.9 [win] |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
try read this: http://www.qijoo.com/fapm/Smarty/Smarty-2.6.14-docs/manual/language.function.include.php.html Why are you doing "include" in tpl-file? |
|||||||||
#4
|
|||||||
|
|||||||
![]() Thanks for the reply - not sure that you understand what I am trying to do. The _header.php file is not located on the website with the shopping cart - it is located on an external website. I want to do this so I can use this same external file on all my X-cart installations then only have to update one file on my server if I ever want to make a change...
__________________
Xcart Version 4.1.9 [win] |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
from manual: Quote:
|
|||||||||
#6
|
|||||||
|
|||||||
![]() Thanks for your help... I'm sorry but I don't understand any of that. Can someone explain it to me?
__________________
Xcart Version 4.1.9 [win] |
|||||||
#7
|
|||||||
|
|||||||
![]() While I understand what you are trying to do, this can/will result in one of those nasty 'The site isn't secure' warnings when in https mode if the images or any other info is being called from an outside source. Just FYI
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||
|
|||||||
![]() Ah ok so I guess what your saying is that it's a bad idea? So I assume if I store the file locally and then use:
{php} include('_header.php'); {/php} it should work fine and no security warning will be displayed... yes?
__________________
Xcart Version 4.1.9 [win] |
|||||||
#9
|
|||||||
|
|||||||
![]() If you are going to store it locally, that kind of defeats the purpose of going outside the Smarty templates at all doesn't it?
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#10
|
|||||||
|
|||||||
![]() lol yeah I guess it does doesn't it! im a dumbass... thanks for your patience and your help
![]()
__________________
Xcart Version 4.1.9 [win] |
|||||||
|
|||
X-Cart forums © 2001-2020
|