No pictures

More
13 years 3 weeks ago #12743 by ikkezelluf
No pictures was created by ikkezelluf
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
13 years 3 weeks ago #12746 by ivan.milic
Replied by ivan.milic on 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
13 years 3 weeks ago - 13 years 3 weeks ago #12747 by ikkezelluf
Replied by ikkezelluf on 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: 13 years 3 weeks ago by ikkezelluf.

Please Log in to join the conversation.

More
13 years 3 weeks ago #12750 by ivan.milic
Replied by ivan.milic on 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:
Code:
<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:
Code:
<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
13 years 2 weeks ago #12770 by ivan.milic
Replied by ivan.milic on topic Re: No pictures
Hi,

we found solution in templates\hot_flashes\flashes_menu\menu.php
Replace:
Code:
$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:

Code:
$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
13 years 2 weeks ago #12775 by ikkezelluf
Replied by ikkezelluf on topic Re: No pictures
It works!!

Thnx,
Wim

Please Log in to join the conversation.

Time to create page: 0.296 seconds
Powered by Kunena Forum