2
I you're using XOOPS 2.0.14, you can add this on top of mylinks_singlelink.html:
<{$xoTheme->addScript('modules/mylinks/customfile.js')}>
or
<{$xoTheme->addScript('','','window.alert("it works")')}>
If you change the module template directly, then don't forget to "update" the module in the modules admin afterward. However if you just want to do this for a site of yours, I think you should put all this in your theme instead:
- copy mylinks_singlelink.html to themes/yourtheme/modules/mylinks/mylinks_singlelink.html
- add your customfile.js file in this folder
- add the above code to the template copy