Home and internal pages have diff image sizes hlp

  • Abbring
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 11 months ago #14070 by Abbring
Yes, I saw the naming convention, however even when properly named the images are not showing up. The interesting thing is when I added the 'insite' path the home images disappeared. They returned once I had placed the properly named images inside the insite folder. However, it does not matter what the pictures are actually of inside the insite folder the home page images are the only images displayed. This leads me to dive back into the code. I cannot get it from here.

Is there another file that I should be looking at besides menu.php?

Please Log in to join the conversation.

More
12 years 11 months ago #14080 by ivan.milic
just menu.php code and images and folders. Whole point is to add /insite to existing path when page is other that home.

Folder you add should hav ethis path:

templates/hot_flashes/images/menu/insite/

if you use linux (for hosting your site) be aware for letter case

Please Log in to join the conversation.

  • Abbring
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 11 months ago #14083 by Abbring
thank you, I have double checked the capital and the folder path. What I have is the same. I cannot figure this out :/

Please Log in to join the conversation.

More
12 years 11 months ago #14107 by ivan.milic
this:

$path_add = '';
$menu = JSite::getMenu();
if ($menu->getActive() != $menu->getDefault()) {
$path_add = 'insite'.DS;
}


$backgrounds_dir = dirname(__FILE__).DS.'..'.DS.'images'.DS.'menu'.DS.'insite'.DS.

should be:


$path_add = '';
$menu = JSite::getMenu();
if ($menu->getActive() != $menu->getDefault()) {
$path_add = 'insite'.DS;
}


$backgrounds_dir = dirname(__FILE__).DS.'..'.DS.'images'.DS.'menu'.DS.$path_add;

Please Log in to join the conversation.

  • Abbring
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 11 months ago #14109 by Abbring
Still only see the home pics after that change

Please Log in to join the conversation.

  • Abbring
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 11 months ago #14110 by Abbring
Here is my script:

<style id="menu_flashes_stylesheet" type="text/css">
<?php

$path_add = '';
$menu = JSite::getMenu();
if ($menu->getActive() != $menu->getDefault()) {
$path_add = 'insite'.DS;
}


$backgrounds_dir = dirname(__FILE__).DS.'..'.DS.'images'.DS.'menu'.DS.$path_add;
$bcg_images = glob($backgrounds_dir.'{*.png,*.jpg,*.jpeg,*.gif}',GLOB_BRACE);
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>

Please Log in to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum