Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[FIXED] addStyleSheet - addScript: files not loaded 11 Jun 2013 13:47 #7417

today I did my first test on j.cook 2.5
here the first thing I found.

Scenario:
  • jcook component on a fresh joomla 3 installation.
  • localhost
  • windows 8
  • uniserver



missing files, not loaded from the jcook helper.
functions involved:
protected static function addScript($doc, $base, $file, $replace = true)

and
protected static function addStyleSheet($doc, $base, $file, $replace = true)

the lines 59 and 88 of helper.php:
$url = JURI::root(true) . '/' . $base . '/' . str_replace(DS, '/', $file);

should be replaced by:
		$url = JURI::root(true) . '/' . $base . '/' . $file;
		$url = str_replace(DS, '/', $url);

and the lines 63 and 91:
$urlFork = JURI::root(true) . '/' . $base . '/fork/' . str_replace(DS, '/', $file);

should be replaced by:
			$urlFork = JURI::root(true) . '/' . $base . '/fork/' . $file;
			$urlFork = str_replace(DS, '/', $urlFork);

Please Log in or Create an account to join the conversation.

Re: addStyleSheet - addScript: files not loaded 11 Jun 2013 15:44 #7422

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

thank you very much.

K++;
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.076 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started