×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: problem with the script

problem with the script 15 years 3 months ago #5872

  • piotrek
  • piotrek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hallo,
I have a problem with the code in !JoomlaComment. When I search code of my website I see that the script of !JoomlaComment repeat row of the style for the template SSlide-emotop.
My website URL: www.ostrowiecka.pl
Please look code of my website. I have about 30 rows of this code:
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
 
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
 
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
 
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
  <link rel="stylesheet" href="http://www.ostrowiecka.pl//components/com_comment/joscomment/templates/SSlide-emotop/css/css-age.css" type="text/css" />
I think that the script should generate only one row of this code. Please help me.

problem with the script 15 years 3 months ago #5874

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Which version are you using? Old versions had this problem, but I can not tell you the exact release number that doesn't have this. For sure beta2 doesn't have that problem :)

problem with the script 15 years 3 months ago #5877

  • piotrek
  • piotrek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I'm sorry, but I have forgotten add version. My mistake.
I'm using !JoComment 4.0 alpha2.

I have finded function which generate code of style
    function CSS()
    {
	global $mainframe;
	$cache = $mainframe->getCfg('caching');
 
		/* 
		 * cache does not calculate again head for bots... :(
     	 * and link rel outside head is not good accepted by IE7
    	 * for example after a embed object...
   	  	 * not a complete solution but less blocking
   	  	 */ 
   		if ($cache) {
			$html	= "n<script type = "text/javascript">"
      				. "<!--"
      				. "n if (!JOSC_cssStyleSheet)"   /* TODO: search in StyleSheets elements if exist */
      				. "n { var JOSC_csslink = document.createElement('link');"
      				. "n var JOSC_cssStyleSheet = '". $this->_template_path . $this->_name . '/css/'.$this->_css ."';"
					. "n JOSC_csslink.setAttribute('href', JOSC_cssStyleSheet );"
      				. "n JOSC_csslink.setAttribute('rel', 'stylesheet');"
      				. "n JOSC_csslink.setAttribute('type', 'text/css');"
      				. "n var JOSC_csshead = document.getElementsByTagName('head').item(0);"
      				. "n JOSC_csshead.appendChild(JOSC_csslink);"
      				. "n }//-->"
	  				. "n</script>";
	  		return $html;
   		} else {
   			return JOSC_utils::insertToHead('<link rel="stylesheet" href="' . $this->_template_path . $this->_name . '/css/'.$this->_css.'" type="text/css" />');
   		}
    }

Regards,
Peter

problem with the script 15 years 3 months ago #5880

  • piotrek
  • piotrek's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I have been install version beta. At this moment I don't have problem.
Thank You for help.

Regards,
Piotrek

problem with the script 15 years 3 months ago #5924

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Daniel,

I remember we fixed a double-slash bug in Captcha/Security parts of code, but I can see double slashes // in the first post there. Is that the same bug that was fixed or do we have another "/components" that should be "components" hidden somewhere :(
  • Page:
  • 1
Time to create page: 0.110 seconds