Jump to content

[SOLVED] Problem with my theme


Recommended Posts

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.com

Thanks in advance to anyone who trys helping!

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...