Changing paths?
silurius - May 5, 2007 - 00:03
| Project: | Nicelinks |
| Version: | HEAD |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I have nicelinks working well, but would like to tweak it a bit. I am running vbDrupal, and the Drupal side of things is having difficulty locating certain files because (I think) of the way this module uses paths. (Example: forum/modules/nicelinks/nicelinks.js not found.). I think I want to change all references to any path in this module, to be absolute rather than relative.
I'm pretty sure this would be a simple change, but I'm not sure where to make it or if my proposal isappropriate. Can anyone help?

#1
I have cross-posted this here. Will endeavor to post anything I happen to learn there to this issue, or vice versa.
#2
This is easy: find the the line in nicelinks_menu ("drupal_set_html_head" - which is not the right way to do this) and change it to:
drupal_set_html_head('<link rel="stylesheet" type="text/css" media="screen" href="/'. $path .'/nicelinks.css" /><script type="text/javascript" src="/'. $path .'/nicelinks.js"></script>');
This really needs to be changed to "drupal_add_js" and "drupal_add_css".