Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

Topic-icon No pictures

More
5 years 4 months ago #12743 by ikkezelluf
ikkezelluf created the topic: No pictures
Just bought Hot Flashes and choosed the Hot Start.

All went well but i don't see any images. The images bg1.jpg - bg5.jpg are in templates/hot_flashes/images/menu.

Can anyone tell me whats wrong?

See the site on www.wimhompes.nl .

Grtz,
Wim

Please Log in to join the conversation.

More
5 years 4 months ago #12746 by ivan.milic
ivan.milic replied the topic: Re: No pictures
That is new template bes if you give us access to your admin so we could fix that. Send us login info using "Report To Moderator"

Please Log in to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #12747 by ikkezelluf
ikkezelluf replied the topic: Re: No pictures
Thanks for the reply.

I will send you the login. After fixing can you send me the solution?

Grtz,
Wim
Last Edit: 5 years 4 months ago by ikkezelluf.

Please Log in to join the conversation.

More
5 years 4 months ago #12750 by ivan.milic
ivan.milic replied the topic: Re: No pictures
This account has no rights to do anything , but I suspect that glob function is not working on your server due PHP version . Glob is an function that returns list of files from some directory.

In templates\hot_flashes\flashes_menu\menu.php:

this part:
<style id="menu_flashes_stylesheet">
<?php
$backgrounds_dir = dirname(__FILE__).DS.'..'.DS.'images'.DS.'menu/';
$bcg_images = glob($backgrounds_dir.'*.jpg');
$bcg_images = array_merge($bcg_images, glob($backgrounds_dir.'*.jpeg'));
$bcg_images = array_merge($bcg_images, glob($backgrounds_dir.'*.png'));
$bcg_images = array_merge($bcg_images, glob($backgrounds_dir.'*.gif'));
for( $loop = 0 ; $loop < count($bcg_images); $loop ++) {
  echo '.'.basename(basename(basename(basename($bcg_images[$loop],'.jpg'),'.jpeg'),'.png'),'.gif').' { 
     background:url(\''.JURI::base().'templates/hot_flashes/images/menu/'.basename($bcg_images[$loop]).'\');
  }
  '; 
}
?>
</style>



try this, comment this code, or save backup and delete it then add this:
<style id="menu_flashes_stylesheet" type="text/css">
.bg1 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/bg1.jpg');
  }
  .bg2 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/bg2.jpg');
  }
  .bg3 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/bg3.jpg');
  }
  .bg4 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/bg4.jpg');
  }
  .bg5 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/bg5.jpg');
  }
  .sub1 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/sub1.png');
  }
  .sub2 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/sub2.png');
  }
  .sub3 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/sub3.png');
  }
  .sub4 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/sub4.png');
  }
  .sub5 { 
     background:url('http://www.wimhompes.nl/templates/hot_flashes/images/menu/sub5.png');
  }
  </style>

if you want more slices , you need to add equivalent .bg6 and .sub6 ets ...

Please Log in to join the conversation.

More
5 years 4 months ago #12770 by ivan.milic
ivan.milic replied the topic: Re: No pictures
Hi,

we found solution in templates\hot_flashes\flashes_menu\menu.php
Replace:
$bcg_images = glob($backgrounds_dir.'*.jpg');
$bcg_images = array_merge($bcg_images, glob($backgrounds_dir.'*.jpeg'));
$bcg_images = array_merge($bcg_images, glob($backgrounds_dir.'*.png'));
$bcg_images = array_merge($bcg_images, glob($backgrounds_dir.'*.gif'));

with:

$bcg_images = glob($backgrounds_dir.'{*.jpg,*.jpeg,*.png,*.gif}',GLOB_BRACE);
The following user(s) said Thank You: ikkezelluf

Please Log in to join the conversation.

More
5 years 4 months ago #12775 by ikkezelluf
ikkezelluf replied the topic: Re: No pictures
It works!!

Thnx,
Wim

Please Log in to join the conversation.

Time to create page: 0.139 seconds

Links, Partners and Social Media