rldev Posted November 2, 2009 Share Posted November 2, 2009 (edited) How do I use images from outside the templates directory? It seems like I can not use the standard path. If I use links, then I have problems over ssl on the order form, Edited November 2, 2009 by rldev 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted November 3, 2009 WHMCS Support Manager Share Posted November 3, 2009 If your order form is SSL then you'll need to use https:// when linking to an image. But using the path will work too. 0 Quote Link to comment Share on other sites More sharing options...
rldev Posted November 3, 2009 Author Share Posted November 3, 2009 If your order form is SSL then you'll need to use https:// when linking to an image. But using the path will work too. paths are not working for me. They only work if they are within the whmcs root dir. Absolute paths do not work. The images do not show up. 0 Quote Link to comment Share on other sites More sharing options...
rldev Posted November 3, 2009 Author Share Posted November 3, 2009 below is a snippet of code from my header.tpl <TD><IMG alt="" src="/home/admin/public_html/images/homepage01a.jpg" width=450 height=131></TD> relative links do not work either. It does not work. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 3, 2009 Share Posted November 3, 2009 below is a snippet of code from my header.tpl <TD><IMG alt="" src="/home/admin/public_html/images/homepage01a.jpg" width=450 height=131></TD> relative links do not work either. It does not work. They are not relative to the home directory, try this <TD><IMG alt="" src="/images/homepage01a.jpg" width=450 height=131></TD> Your image should be in the images directory directly under the public_html 0 Quote Link to comment Share on other sites More sharing options...
rldev Posted November 3, 2009 Author Share Posted November 3, 2009 (edited) It seems like I am only allowed to pull from whmcs folders. I can not pull images from the public_html/images (unless it's a url) I run whmcs as a sub domain, this must be the problem. Maybe can make make a symlink from whmcs folder to main web folder? Edited November 3, 2009 by rldev 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted November 4, 2009 Share Posted November 4, 2009 why not let the user/broswser take advantage of its caching and pre-loading capabilities and use the full absolute *real* url for images - much more efficient 0 Quote Link to comment Share on other sites More sharing options...
rldev Posted November 4, 2009 Author Share Posted November 4, 2009 why not let the user/broswser take advantage of its caching and pre-loading capabilities and use the full absolute *real* url for images - much more efficient Because then I would have to use yet another ssl certificate. How is it more efficient to pull images over ssl on a non ssl page? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.