Last modified: 2012-11-07 06:22:25 UTC
The source for my page says: <link rel="stylesheet" type="text/css" href="/w/extensions/SemanticMediaWiki/skins/SMW_custom.css" /> <script type="text/javascript" src="/w/extensions/SemanticMediaWiki/skins/SMW_tooltip.js"></script> But I have the SMW extension in the directory /w/extensions/SemanticMediaWiki.156 I tried adding (to no avail): 'localBasePath' => $smwgIP.'/skins', 'remoteBasePath' => $smwgScriptPath.'/skins', to SMW_Setup, but it didnt help me. Thanks. John
I am using SMW 1.5.6 and MW 1.16.5
I changed SMW_SETUP's $smwgScriptPath value to: '/SemanticMediaWiki.156' and that created the correct path to the css & js files. <link rel="stylesheet" type="text/css" href="/w/extensions/SemanticMediaWiki.156/skins/SMW_custom.css" /> <script type="text/javascript" src="/w/extensions/SemanticMediaWiki.156/skins/SMW_tooltip.js"></script> Now I'm trying to determine why a tooltip is not visible. Thanks
Why make it difficult for yourself? Just place it in SemanticMediaWiki...
The imagePath var in SWM_tooltip.js is also hardcoded to a directory named "SemanticMediaWiki". changed that the SemanticMediaWiki.156 to get this to work. after clearing the cache, this now works. I am upgrading the problem back to a bug - there are now 2 files that needs a little tender loving care a. SMW-Setup.php = fix the #smwgScriptPath var, removing hardcoding b. SWM_tooltip.js = fix the imagePath var, removing hardcoding
Good q, Jeroen... because I have SMW 1.6 installed in extensions, for testing, to give you all feedback as requested.
(In reply to comment #5) > Good q, Jeroen... because I have SMW 1.6 installed in extensions, for testing, > to give you all feedback as requested. I should note that that didnt go too well - guess because of db changes - but in the process I discovered this problem, is all.
SWM_tooltip.js/SMW_custom.css no longer exist in SMW 1.8 therefore this bug do not carry enough information for rendering this bug as related to SMW 1.8. Please feel free to reopen the bug if it still applies to SMW 1.8.