Thread: Layout issues!

Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: Layout issues!

    Thanks Website Rob,

    I have started on the errors but am stuck on how to edit the ones where a ">" is missing what file do i change? or why have i got 20 errors for the same thing??

    Sorry i am a newbie! :)

  2. #2
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: Layout issues!

    i have trace the problem to my slider code!

    The code i have in the define_main_page.php is as below
    Code:
    	
    	  
    <?php 	  
    	  define(URL1,'http://www.example.com');
    	  define(URL2,'http://www.example.com');
    	  define(URL3,'http://www.example.com');
    	  define(URL4,'http://www.example.com');
    	  define(URL5,'http://www.example.com');
    	  define(URL6,'http://www.example.com');
    	 
    	  define(IMAGE1,'01.jpg');
    	  define(IMAGE2,'02.jpg');
    	  define(IMAGE3,'03.jpg');
    	  define(IMAGE4,'04.jpg');
    	  define(IMAGE5,'05.jpg');
    	  define(IMAGE6,'06.jpg');
    	 
    ?>
    	<script type="text/javascript" src="includes/templates/MY_CUST_TEMPLATE/jscript/jscript_easySlider.js"></script>
    
    	<script type="text/javascript">
    		$(document).ready(function(){	
    		    
    			$("#slider").easySlider({
    				auto: true, 
    				continuous: true,
    				numeric: true
    			});
    			
    		});	
    	</script>
      
    
    	
    		<div id="slider">
    			<ul>				
    				<li><a href="<?php echo URL1 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE1 ?>"  /></a></li>
    				<li><a href="<?php echo URL2 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE2 ?>"  /></a></li>
    				<li><a href="<?php echo URL3 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE3 ?>"  /></a></li> 
    				<li><a href="<?php echo URL4 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE4 ?>"  /></a></li>
    				<li><a href="<?php echo URL5 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE5 ?>"  /></a></li>
    				<li><a href="<?php echo URL6 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE6 ?>"  /></a></li>			
    </ul></div>
    Does anyone know how to edit it to solve my issues? I keep trying things but

    This is the code that is causing the problem if you delete it - the category images align properly and if you delete only half of them the offset gets less each one you delete!
    Code:
    			<ul>				
    				<li><a href="<?php echo URL1 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE1 ?>"  /></a></li>
    				<li><a href="<?php echo URL2 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE2 ?>"  /></a></li>
    				<li><a href="<?php echo URL3 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE3 ?>"  /></a></li> 
    				<li><a href="<?php echo URL4 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE4 ?>"  /></a></li>
    				<li><a href="<?php echo URL5 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE5 ?>"  /></a></li>
    				<li><a href="<?php echo URL6 ?>"><img src="<?php  echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images').'/'.IMAGE6 ?>"  /></a></li>			
    </ul></div>

  3. #3
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: Layout issues!

    Looking into it further it may be a css for the control numbers under the slider that is doing it!

    I inserted this code above the /*warnings, errors, messages*/ in my stylesheet when i installed the slider into my front page.
    Code:
    /**************************slider**********************************/
    
    /* Easy Slider */
    
    		pre{
    		display:block;
    		font:12px "Courier New", Courier, monospace;
    		padding:10px;
    		border:1px solid #bae2f0;
    		background:#e3f4f9;
    		margin:.5em 0;
    		width:630px;
    		}	
    			
        /* image replacement */
            .graphic, #prevBtn, #nextBtn, #slider1prev, #slider1next{
                margin:0;
                padding:0;
                display:block;
                overflow:hidden;
                text-indent:-8000px;
                }
        /* // image replacement */
    			
    	#container{	
    		margin:0 auto;
    		border:1px solid #ccc;
    		position:absolute;
    		text-align:center;
    		width:630px;
    		background:#ffffff;		
    		margin-bottom:0.5em;
    		}	
    	#header{
    		height:80px;
    		line-height:80px;
    		background:#5DC9E1;
    		color:#ffffff;
    		}				
    	#content{
    		position:relative;
    		}			
    
    /* Easy Slider */
    
    	#slider ul, #slider li,
    	#slider2 ul, #slider2 li{
    		margin:0;
    		padding:0;
    		list-style:none;
    		}
    	#slider2{margin-top:1em;}
    	#slider li, #slider2 li{ 
    		/* 
    			define width and height of list item (slide)
    			entire slider area will adjust according to the parameters provided here
    		*/ 
    		width:630px;/*630*/
    		height:200px;/*280*/
    		overflow:hidden; 
    		text-align:center;
    		}	
    	#prevBtn, #nextBtn,
    	#slider1next, #slider1prev{ 
    		display:block;
    		width:30px;
    		height:77px;
    		position:absolute;
    		left:-30px;
    		top:31px;
    		z-index:1000;
    		}	
    	#nextBtn, #slider1next{ 
    		left:630px;
    		}														
    	#prevBtn a, #nextBtn a,
    	#slider1next a, #slider1prev a{  
    		display:block;
    		position:relative;
    		width:30px;
    		height:77px;
    		background:url(../images/btn_prev.gif) no-repeat 0 0;
    		}	
    	#nextBtn a, #slider1next a{ 
    		background:url(../images/btn_next.gif) no-repeat 0 0;
    		}	
    		
    	/* numeric controls */	
        #control_div{
    		width:200px;
    		height:20px;
    		position:relative;
    		Left:230px;		/* this number controls the buttons left & right*/
    		top:-5px		/* this number controls the buttons up and down*/
    	
    	}
    	ol#controls{
    		margin:1em 0;
    		padding:0;
    		height:20px;	
    		
    		
    		
    		}
    	ol#controls li{
    		margin:0 5px 0 0; 
    		padding:0;
    		float:left;
    		list-style:none;
    		height:28px;
    		line-height:28px;
    		}
    	ol#controls li a{
    		float:Right;
    		height:20px;
    		line-height:20px;
    		border:1px solid #ccc;
    		background:#fff;		
    		color:#555;
    		padding:0 5px;
    		text-decoration:none;
    		}
    	ol#controls li.current a{
    		background:#336633;
    		color:#fff;
    		}
    	ol#controls li a:focus, #prevBtn a:focus, #nextBtn a:focus{outline:none;}
    	
    /* // Easy Slider */
    	
    /* // Easy Slider */
    I know it has got to be something to do with the text in red but .... this is making me

  4. #4
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: Layout issues!

    I seem to be talking to myself but i have solved my layout problem so i will post it to help others!

    I inserted
    Code:
    <br/>
    at the end if my define_main_page.php and it dropped the category images down so the lined up ok, they were lining up with the numeric controls pushing them to the right!

    If anyone wants a slider like this one i can pack it up as a mod!
    Last edited by gazag; 24 Sep 2011 at 12:49 AM. Reason: added something!

 

 

Similar Threads

  1. layout issues?
    By munchie in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jul 2011, 06:43 PM
  2. layout issues
    By lucianman in forum General Questions
    Replies: 2
    Last Post: 18 Jun 2010, 11:12 AM
  3. layout issues
    By chill123 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Dec 2008, 10:13 AM
  4. Major issues with Column Layout / Grid Layout for Products Listing
    By kinget in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Jul 2007, 10:11 PM
  5. layout issues
    By clint88 in forum General Questions
    Replies: 4
    Last Post: 22 Jul 2006, 02:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg