- Posts: 22
- Thank you received: 0
Home and internal pages have diff image sizes hlp
-
Abbring
Inactive member - Topic Author
- Member
Less
More
12 years 11 months ago - 12 years 11 months ago #13975
by Abbring
Home and internal pages have diff image sizes hlp was created by Abbring
hi
I have a site that I have installed the Hot Flashes template on and I have one thing I need help with.
The Hot Flashes shows up with half my images cut on any page that is not my home page and sometimes loads images in the wrong order.
My question is: How can I configure one set of pictures for the large home page, and then configure another set of pictures that are the internal page height of 260?
I tried to change this in template params but it did not affect the pictures just the size of hot flashes.
Thanks for your help.
I have a site that I have installed the Hot Flashes template on and I have one thing I need help with.
The Hot Flashes shows up with half my images cut on any page that is not my home page and sometimes loads images in the wrong order.
My question is: How can I configure one set of pictures for the large home page, and then configure another set of pictures that are the internal page height of 260?
I tried to change this in template params but it did not affect the pictures just the size of hot flashes.
Thanks for your help.
Last edit: 12 years 11 months ago by Abbring.
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6751
- Thank you received: 718
12 years 11 months ago #14008
by milos
Replied by milos on topic Re: Home and internal pages have diff image sizes hlp
Sorry for the late answer.
Unfortunately, the same pictures must be on all site pages. However, you can set the height of the menu in template parameters.
Order of images is determined by the images names: bg1.jpg, bg2.jpg, and so on.
Unfortunately, the same pictures must be on all site pages. However, you can set the height of the menu in template parameters.
Order of images is determined by the images names: bg1.jpg, bg2.jpg, and so on.
Please Log in to join the conversation.
-
Abbring
Inactive member - Topic Author
- Member
Less
More
- Posts: 22
- Thank you received: 0
12 years 11 months ago #14041
by Abbring
Replied by Abbring on topic Re: Home and internal pages have diff image sizes hlp
not happy to hear that answer
I need two different sets of images.
Is there a way I can pay someone to manipulate the code and allow for two sets of images?
Also, the adjustment in template parameters (template manager > edit style > Flashes Menu Options > Height (Interior Pages) only changes the height of the flashes menu on internal pages, still cuts off my images half way through.
Please advise
Thank you
I need two different sets of images.
Is there a way I can pay someone to manipulate the code and allow for two sets of images?
Also, the adjustment in template parameters (template manager > edit style > Flashes Menu Options > Height (Interior Pages) only changes the height of the flashes menu on internal pages, still cuts off my images half way through.
Please advise
Thank you
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 11 months ago #14052
by ivan.milic
Replied by ivan.milic on topic Re: Home and internal pages have diff image sizes hlp
there was one poster that asked for that also, we gave him guides but I'am not sure he managed to apply that himself (based on his answers). Is you search forum under hot_flashes you will find that thread, maybe you can handle it.
Anyway we can do custom job use "Report To Moderator" to send us e-mail.
Anyway we can do custom job use "Report To Moderator" to send us e-mail.
Please Log in to join the conversation.
-
Abbring
Inactive member - Topic Author
- Member
Less
More
- Posts: 22
- Thank you received: 0
12 years 11 months ago - 12 years 11 months ago #14054
by Abbring
Replied by Abbring on topic Re: Home and internal pages have diff image sizes hlp
Hi I have found the thread and gave it a shot, here is what I came up with for my code:
<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.'insite'.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>
I am having duplicate images show up on insite as well as home page still. However, I think I am close as the images will not show up at all if there is not a file with the same name bg1, bg2, etc.. in the images/menu/insite folder
Is the problem the images are the same name in both folders, or is it my coding? I am using 1.7
Thank you
<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.'insite'.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>
I am having duplicate images show up on insite as well as home page still. However, I think I am close as the images will not show up at all if there is not a file with the same name bg1, bg2, etc.. in the images/menu/insite folder
Is the problem the images are the same name in both folders, or is it my coding? I am using 1.7
Thank you
Last edit: 12 years 11 months ago by Abbring.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 11 months ago #14069
by ivan.milic
Replied by ivan.milic on topic Re: Home and internal pages have diff image sizes hlp
There is naming convention , bg1,bg2... and sub1, sub2... .bgX are images ,subX are transparent backgrounds for second level in menu
Please Log in to join the conversation.
Time to create page: 0.173 seconds