03-02-2017, 03:45 PM
I would use the built in userspice tools for your requiring. That will deal with all the folder issues.
So when you're including your javascript I would do something like...
if your setup is mydomain.com/users/js
and you have your javascript in
mydomain.com/customstuff/js
<script src="<?=$us_url_root?>customstuff/js/myjs.js"></script>
Doing it with that variable will automatically grab the right path regardless of where it's being called from.
So when you're including your javascript I would do something like...
if your setup is mydomain.com/users/js
and you have your javascript in
mydomain.com/customstuff/js
<script src="<?=$us_url_root?>customstuff/js/myjs.js"></script>
Doing it with that variable will automatically grab the right path regardless of where it's being called from.