jpeterson Posted November 5, 2010 Share Posted November 5, 2010 Hello everyone, some of my images don't seem to be working. I know the problem i just don't know how to fix it. that is the code but it should be "/moduals/blockadvertising/advertising_custom.jpg" as the link. How do i change it so it works and the images don't show as broken?www.shop.linnaeustropical.comThanks in advance to anyone who trys helping! Link to comment Share on other sites More sharing options...
rocky Posted November 6, 2010 Share Posted November 6, 2010 It is line 28 of modules/blockadvertising/blockadvertising.php that creates the image link: $this->adv_img = _MODULE_DIR_.$this->name.'/'.$this->adv_imgname; It seems _MODULE_DIR_ has a different value on your site for some reason. Here's what I have on line 23 of config/defines.inc.php: define('_MODULE_DIR_', __PS_BASE_URI__.'modules/'); Make sure these match. If they do, I'm not sure what you can do other than hardcode the URL like this: $this->adv_img = '/modules/'.$this->name.'/'.$this->adv_imgname; Link to comment Share on other sites More sharing options...
Pshopic Posted November 6, 2010 Share Posted November 6, 2010 I also have another solution, I think it is simple.Edit your "modules/blockadvertising/blockadvertising.tpl" file and find code something like that on line 3: Just add "http://" before {$image}it will be like that: Link to comment Share on other sites More sharing options...
jpeterson Posted November 6, 2010 Author Share Posted November 6, 2010 Ok, thanks PrestaShopic you solution worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now