0
Welcome Guest! Login
0 items Join Now

Module breaks template formatting question

  • Module breaks template formatting question

    Posted 14 years 5 months ago
    • Sorry for having to post here I created a custom module that doesnt want to play ball nicely with my versatility 4 template. the following code if removed means its ok
      echo '<div>
              <div id="leftp">
                  <a href='.JURI::root().'component/jreviews/tag/country/'.$str.' target="_self"> See the '.$str.' Travel Articles</a><br/>
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:5/query:any/jr_country:'.$str.' target="_self">Tours in '.$str.'<br />
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:2/query:any/jr_country:'.$str.' target="_self">Hotels in '.$str.'<br />
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:6/query:any/jr_country:'.$str.' target="_self">Attractions and Destinations in '.$str.'<br />
              </div>
              <div>
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:4/query:any/jr_country:'.$str.' target="_self">Restaurants in '.$str.'</a><br/>
                  <img style="vertical-align:text-top" alt="'.$str.'" Flag src="'.JURI::root().'modules/mod_flickr/tmpl/flags/'.$str.'.png" width="48" height="48" />
      <div/>
              <div id="clear"></div>
          <div/>';

      the problem can be seen at the grey footer which should run right across the bottom of the page no problem. Here is the weblink http://landed.at/europe/france I would appreciate knowledge on why the above affects it the divs look to be accurate to me and the css rules are following
      <style>
      #leftp
      {
          float:left;
          width:250px;
          background:#fff;
      }
      #rightp
      {
          float:right;
          width:250px;
          background:fff;
      }
      #clear
      { 
          clear: both;
          display: block;
          height:0px;
      }
       </style>
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Module breaks template formatting question

    Posted 14 years 5 months ago
    • from what I see you have soem syntax errors (<div/> instead iof </div> and missing closing elements (</a>) ...
      Also you have #rightp in your css but you are not using it in the code ?

      this would be better I guess
      echo '
      <div>
              <div id="leftp">
                  <a href='.JURI::root().'component/jreviews/tag/country/'.$str.' target="_self"> See the '.$str.' Travel Articles</a><br />
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:5/query:any/jr_country:'.$str.' target="_self">Tours in '.$str.'</a><br />
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:2/query:any/jr_country:'.$str.' target="_self">Hotels in '.$str.'</a><br />
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:6/query:any/jr_country:'.$str.' target="_self">Attractions and Destinations in '.$str.'</a><br />
              </div>
              
              <div id="rightp">
                  <a href='.JURI::root().'component/jreviews/search-results/criteria:4/query:any/jr_country:'.$str.' target="_self">Restaurants in '.$str.'</a><br />
                  <img style="vertical-align:text-top" alt="'.$str.'" Flag src="'.JURI::root().'modules/mod_flickr/tmpl/flags/'.$str.'.png" width="48" height="48" />
              </div>
               
              <div id="clear"></div>
              
          <div/>';
  • Re: Module breaks template formatting question

    Posted 14 years 5 months ago
    • Thanks it was the closing divs ! I think I might have some kind of coding dislexia, I just couldn't see them, thanks it has fixed it. I really thank you for taking the time to look and post, let me know if I can return the favour of promoting something your into like sharing a link etc.. :oops:
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: Module breaks template formatting question

    Posted 14 years 5 months ago

Time to create page: 0.075 seconds