0
Welcome Guest! Login
0 items Join Now

Re: Validation

    • urj2ic8's Avatar
    • urj2ic8
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0

    Re: Validation

    Posted 17 years 6 months ago
  • Re: Re: Validation

    Posted 17 years 6 months ago
    • Hello, Billy

      Such as element <link rel="stylesheet" type="text/css" href="/photo/main.php......
      must be placed in the header ( between <head>...</head> ) section. Not in the body section.

      Best Regards,

      Arifin
    • Last Edit: 17 years 6 months ago by Arifin FinLy.
    • urj2ic8's Avatar
    • urj2ic8
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0

    Re: Re: Validation

    Posted 17 years 6 months ago
    • Arifin FinLy wrote:
      Hello, Billy

      Such as element <link rel="stylesheet" type="text/css" href="/photo/main.php......
      must be placed in the header ( between <head>...</head> ) section. Not in the body section.

      Best Regards,

      Arifin

      i'm not exactly sure how to accomplish this, where the image showcase is a module
    • Billy Zoellers
  • Re: Re: Validation

    Posted 17 years 6 months ago
    • Hello Billy,

      I dont know exactly what photo module you are using now.

      Now, I can only suggest you manually fix. Maybe there is better way than this.
      But I always do this if there is a module that doesn't valid XHTML and the problem is like yours.

      Find the mod_(your photo module name).php and find that line :
      <link rel="stylesheet" type="text/css" href="/photo/main.php ........
      Just cut it and paste it in your index.php of the template.

      Best Regards,

      Arifin
    • urj2ic8's Avatar
    • urj2ic8
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0

    Re: Re: Validation

    Posted 17 years 6 months ago
    • Arifin FinLy wrote:
      Hello Billy,

      I dont know exactly what photo module you are using now.

      Now, I can only suggest you manually fix. Maybe there is better way than this.
      But I always do this if there is a module that doesn't valid XHTML and the problem is like yours.

      Find the mod_(your photo module name).php and find that line :
      <link rel="stylesheet" type="text/css" href="/photo/main.php ........
      Just cut it and paste it in your index.php of the template.

      Best Regards,

      Arifin

      theres not a line like that in the file
    • Last Edit: 17 years 6 months ago by urj2ic8.
    • Billy Zoellers
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: Re: Validation

    Posted 17 years 6 months ago
    • This is the problem with modules that don't validate - of course, the source you see in the validator code is simply what's been passed from PHP to the browser, so the line you're looking for won't be the same in the source. Try searching for something less specific - like and occurence of "stylesheet", for example.
    • Toolbox Digital | Dribbble | Forrst
    • urj2ic8's Avatar
    • urj2ic8
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0

    Re: Re: Validation

    Posted 17 years 6 months ago
    • Dan L wrote:
      This is the problem with modules that don't validate - of course, the source you see in the validator code is simply what's been passed from PHP to the browser, so the line you're looking for won't be the same in the source. Try searching for something less specific - like and occurence of "stylesheet", for example.
      <?php
      /**
      * @package mod_gallery2_image
      * @copyright (C) 4 The Web
      * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
      */
      defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
       
      require_once("components/com_gallery2/init.inc" );
      global $g2Config, $mosConfig_live_site;
       
      //parameters
      $align       = $params->get( 'align' );
      $block       = $params->get( 'block' );
      $header      = $params->get( 'header' );
      $title       = $params->get( 'title' );
      $date        = $params->get( 'date' );
      $views       = $params->get( 'views' );
      $owner       = $params->get( 'owner' );
      $number      = $params->get( 'number' );
      $max_size   = (int) $params->get( 'maxSize' );
      $link_target= $params->get( 'link_target' );
      $albumframe = $params->get( 'albumframe' );
      $itemframe  = $params->get( 'itemframe' );
      $strip_anchor= $params->get( 'strip_anchor' );
      $moduleclass_sfx = $params->get( 'moduleclass_sfx' );
      $count       = (int) $params->get( 'count' );
      if(!empty($count) && $count > 1){
           for ($i=1;$i < $count;$i++){
                $block .= '|'.$block;
           }
      }
      //What to show
      $array['show'] = array();
      if ($title == 1) {
           $array['show'][] = 'title';
      }
      if ($date == 1) {
           $array['show'][] = 'date';
      }
      if ($views == 1) {
           $array['show'][] = 'views';
      }
      if ($owner == 1) {
      &nbsp; &nbsp; $array['show'][] = 'owner';
      } 
      if ($header == 1) {
      &nbsp; &nbsp; $array['show'][] = 'heading';
      } 
      $array['show'] = (count($array['show']) > 0) ? implode('|', $array['show']) : 'none';
      if(!empty($number)) {
           $array['itemId'] = $number; 
      }
      $array['blocks']      = $block;
      $array['maxSize']     = !empty($max_size) ? $max_size : 150;
      $array['linkTarget'] = $link_target;
      $array['itemFrame']&nbsp; = $itemframe; 
      $array['albumFrame'] = $albumframe; 
       
      $content = '';
      $content .= '<div align="'.$align.'">';
       
      if($block=="specificItem" AND empty($number)){
           $content .= '<strong>Error</strong><br />You have selected no "itemid" and this must be done if you select "Specific Picture"';
      } else {
           core::initiatedG2();
           list ($ret, $imageBlockHtml, $cssBlock) = GalleryEmbed::getImageBlock($array);
           if ($ret) { print "<h2>Fatal G2 error</h2> Here's the error from G2:<br />" .$ret->getAsHtml(); }
           $content .= $cssBlock;
           $content .= ($strip_anchor == 1) ? strip_tags($imageBlockHtml, '<img><table><tr><td><div><h3>') : $imageBlockHtml;
           GalleryEmbed::done();
      }
      $content .= '</div>';
      ?>

      thats the file, i can't see anything that would deal with the stylesheet
    • Billy Zoellers

Time to create page: 0.057 seconds