- Posts: 22
- Thank you received: 0
Rotating pics change & white lines
- 
        geotso
 Inactive member
- 
            
				 Topic Author Topic Author
- Member
- 
              
        Less
        More
        
            
    
        
            
        
                13 years 10 months ago                #13206
        by geotso
    
    
        
        
    
            
            
            
            
            
                                
    
                                                
    
        Rotating pics change & white lines was created by geotso            
    
        Hi there,
Let me say your support is really great!!!
I would like to do the below:
1. WHITE LINES: On the homepage or the other subpages where you have the menu there is some white lines appearing on top of the images... I would like these lines to be removed completely. I have tried with firebug and found that this can be done from the below:
#flashes.menu>li{
background-color: transparent
background-repeat: no-repeat
border-right: 1px solid #ffffff
float: left
height: 542px --> if i change this in firebug to ie. 3px they get removed!
However i cannot find WHERE is this file to edit it... in firebug it shows www.mywebsite.com .... just!
2. SUBMENU PICS: I would like the submenu pics to be different pics than the ones shown in the HOME page... Also as above I wouldn't like the white lines to show on top of the pics... Any idea how to do this?
Let me say your support is really great!!!
I would like to do the below:
1. WHITE LINES: On the homepage or the other subpages where you have the menu there is some white lines appearing on top of the images... I would like these lines to be removed completely. I have tried with firebug and found that this can be done from the below:
#flashes.menu>li{
background-color: transparent
background-repeat: no-repeat
border-right: 1px solid #ffffff
float: left
height: 542px --> if i change this in firebug to ie. 3px they get removed!
However i cannot find WHERE is this file to edit it... in firebug it shows www.mywebsite.com .... just!
2. SUBMENU PICS: I would like the submenu pics to be different pics than the ones shown in the HOME page... Also as above I wouldn't like the white lines to show on top of the pics... Any idea how to do this?
Please Log in to join the conversation.
- 
        ivan.milic
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 14116
- Thank you received: 1639
            
        
                13 years 10 months ago                #13225
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Re: Rotating pics change & white lines            
    
        you have that 542 in template parameters.
for while lines open template_css.php and find:
#flashes.menu > li {
float:left;
height:<?php echo $mnuFlshesHeight; ?>px;
border-right:1px solid #ccc;
background-repeat:no-repeat;
background-color:transparent;
}
change
border-right:1px solid #ccc;
to:
border-right:1px solid transparent;
note that if you remove border completely you would get empty gap to right, so you must use transparent border color.
for different images on home and other pages you can try something like this:
Create new folder called insite in templates\hot_flashes\images\menu\
put images for internal pages in it.
open
templates\hot_flashes\flashes_menu\menu.php
and find this:
modify if like this:
if you use joomla 1.5 then instead of:
$path_add = '';
$menu = JSite::getMenu();
if ($menu->getActive() != $menu->getDefault()) {
$path_add = 'insite'.DS;
}
use:
$path_add = '';
if (@$_REQUEST != 'frontpage')
{
$path_add = 'insite'.DS;
}
for while lines open template_css.php and find:
#flashes.menu > li {
float:left;
height:<?php echo $mnuFlshesHeight; ?>px;
border-right:1px solid #ccc;
background-repeat:no-repeat;
background-color:transparent;
}
change
border-right:1px solid #ccc;
to:
border-right:1px solid transparent;
note that if you remove border completely you would get empty gap to right, so you must use transparent border color.
for different images on home and other pages you can try something like this:
Create new folder called insite in templates\hot_flashes\images\menu\
put images for internal pages in it.
open
templates\hot_flashes\flashes_menu\menu.php
and find this:
Code:
<style id="menu_flashes_stylesheet" type="text/css">
<?php
$backgrounds_dir = dirname(__FILE__).DS.'..'.DS.'images'.DS.'menu/';
$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>
modify if like this:
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.$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>
if you use joomla 1.5 then instead of:
$path_add = '';
$menu = JSite::getMenu();
if ($menu->getActive() != $menu->getDefault()) {
$path_add = 'insite'.DS;
}
use:
$path_add = '';
if (@$_REQUEST != 'frontpage')
{
$path_add = 'insite'.DS;
}
Please Log in to join the conversation.
- 
        geotso
 Inactive member
- 
            
				 Topic Author Topic Author
- Member
- 
              
        Less
        More
        
            
    
        - Posts: 22
- Thank you received: 0
            
        
                13 years 9 months ago                #13564
        by geotso
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by geotso on topic Re: Rotating pics change & white lines            
    
        Hi there!
As per your instructions above, the white lines have been removed successfully! Thanks for this!
Your other instructions about displaying different pics in subpages than the home page did not work!!! I have tried what you suggested but without any success!!! Still what is shown is the exact same pics as in my home pages... Any other instructions that can make this work????
Thanks in advance.
PS: I am working with joomla 1.5.
As per your instructions above, the white lines have been removed successfully! Thanks for this!
Your other instructions about displaying different pics in subpages than the home page did not work!!! I have tried what you suggested but without any success!!! Still what is shown is the exact same pics as in my home pages... Any other instructions that can make this work????
Thanks in advance.
PS: I am working with joomla 1.5.
Please Log in to join the conversation.
- 
        ivan.milic
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 14116
- Thank you received: 1639
            
        
                13 years 9 months ago                #13572
        by ivan.milic
    
    
        
try this.
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Re: Rotating pics change & white lines            
    Code:
<style id="menu_flashes_stylesheet" type="text/css">
<?php
$path_add = '';
if (!(@$_REQUEST['view'] == 'frontpage')) 
{
$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>
try this.
Please Log in to join the conversation.
- 
        geotso
 Inactive member
- 
            
				 Topic Author Topic Author
- Member
- 
              
        Less
        More
        
            
    
        - Posts: 22
- Thank you received: 0
            
        
                13 years 9 months ago                #13574
        by geotso
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by geotso on topic Re: Rotating pics change & white lines            
    
        Sorry Ivan, just tried the above, but still the same issue:  it just displays the home page pics!    
Please Log in to join the conversation.
- 
        ivan.milic
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 14116
- Thank you received: 1639
            
        
                13 years 9 months ago         -  13 years 9 months ago        #13576
        by ivan.milic
    
    
    
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Re: Rotating pics change & white lines            
    
        replace:
if (!(@$_REQUEST == 'frontpage'))
with:
if(!(JRequest::getVar('view') == "frontpage") )
if (!(@$_REQUEST == 'frontpage'))
with:
if(!(JRequest::getVar('view') == "frontpage") )
        Last edit: 13 years 9 months ago  by ivan.milic.            
            Please Log in to join the conversation.
        Time to create page: 0.239 seconds    
    