Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Source code editor bug?
#24
(2013-10-15, 07:35:23)Kolyok Wrote: Btw something like this would also solve this:

PHP Code:
$site_url $SITEURL;
$plugin_folder basename(GSPLUGINPATH);
$plugin_url $site_url.$plugin_folder

then in the plugin use the $plugin_url instead:

PHP Code:
$style '<link rel="stylesheet" type="text/css" href="'.$plugin_url.'/simple_contact/css/simple_contact.css"></link>';
$script '<script type="text/javascript" src="'.$plugin_url.'/simple_contact/js/jquery.validate.min.js"></script>'

This way plugins folder name is taken directly from GSPLUGINPATH so no need for manual rewrite if changed.

Forgive my ignorance, would this be located in the nanoslider.php file?
Reply


Messages In This Thread
Source code editor bug? - by jliwanag77 - 2013-10-15, 01:24:11
RE: Source code editor bug? - by shawn_a - 2013-10-15, 01:31:11
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 01:34:37
RE: Source code editor bug? - by shawn_a - 2013-10-15, 02:09:28
RE: Source code editor bug? - by Kolyok - 2013-10-15, 04:20:31
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 04:25:40
RE: Source code editor bug? - by Kolyok - 2013-10-15, 04:35:16
RE: Source code editor bug? - by shawn_a - 2013-10-15, 04:35:46
RE: Source code editor bug? - by Kris_B - 2013-10-15, 06:21:39
RE: Source code editor bug? - by Kolyok - 2013-10-15, 04:52:46
RE: Source code editor bug? - by Kris_B - 2013-10-15, 06:19:23
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 06:31:48
RE: Source code editor bug? - by Kolyok - 2013-10-15, 06:36:13
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 06:40:24
RE: Source code editor bug? - by Kris_B - 2013-10-15, 06:45:33
RE: Source code editor bug? - by Kolyok - 2013-10-15, 06:45:32
RE: Source code editor bug? - by Kolyok - 2013-10-15, 07:02:50
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 07:06:25
RE: Source code editor bug? - by Kolyok - 2013-10-15, 07:14:36
RE: Source code editor bug? - by Kris_B - 2013-10-15, 07:16:59
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 07:51:48
RE: Source code editor bug? - by shawn_a - 2013-10-15, 07:33:14
RE: Source code editor bug? - by Kolyok - 2013-10-15, 07:35:23
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 07:54:04
RE: Source code editor bug? - by Kolyok - 2013-10-15, 08:00:49
RE: Source code editor bug? - by jliwanag77 - 2013-10-15, 10:09:38
RE: Source code editor bug? - by eatons - 2013-10-16, 07:19:43



Users browsing this thread: 2 Guest(s)