Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 02-11-2020 14:51:43

garden1
Member
Registered: 02-06-2020
Posts: 61

Adding files to skins

For file includes on custom skins, should do we link to them in the skin.php?
..Or is there a folder/file naming convention to follow whereby they're automatically linked.

Offline

 

#2 02-12-2020 08:41:34

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Adding files to skins

You can just create a directory in the skin's directory and save them there.  No need to link them up anywhere.  When you go to include one of the files, the syntax is:

Code:

include($this->globals('core.path_public') . '/skins/SKIN-ID/INCLUDE-DIR/INCLUDE-FILE.php');

As in:

Code:

include($this->globals('core.path_public') . '/skins/flex/scripts/customnav.php');

Nick Hendler

Offline

 

#3 02-13-2020 13:31:22

garden1
Member
Registered: 02-06-2020
Posts: 61

Re: Adding files to skins

Thank you!

Offline

 

#4 02-14-2020 11:11:40

garden1
Member
Registered: 02-06-2020
Posts: 61

Re: Adding files to skins

Is there anything special I need to do for .js files?  I tried using <script src="..."> in the skin.php and it loaded just fine.  But after I made a change to the .js, it took awhile for the changes to be reflected in the page (After clearing the browser cache).  I loaded the page maybe a dozen times over 15 minutes clearing the browser cache each time and it eventually showed.

Offline

 

Board footer