Hi, I'm using Using MediaWiki ver 1.8.2 and had two questions:
1) How can we allow our users to add javascript to a page? I tried adding $wgAllowUserJS = true to my localsettings.php file but nothing seemed to happed when I dropped javascript onto a page.
2) Has anyone been able to change the upper left image/make it swap to another image depending on what page(s) a user was on. I noticed on WikiIndex.org it changes when you are on the Sandbox page vs. when you are on the other pages of the wiki. Would be cool to be able to set up for "sections"/division of content.
Thanks, Karen
The AllowJS is the switch enabling pages of the form pagename.js to work, often as user subpages for tools like (on the English Wikipedia) vandal-fighting scripts. For actual JS on pages, such as used in the Google Adsense extension, I don't know. But it would thus seem likely.
On 1/9/07, khuffman@ngs.org khuffman@ngs.org wrote:
Hi, I'm using Using MediaWiki ver 1.8.2 and had two questions:
- How can we allow our users to add javascript to a page? I tried adding
$wgAllowUserJS = true to my localsettings.php file but nothing seemed to happed when I dropped javascript onto a page.
- Has anyone been able to change the upper left image/make it swap to
another image depending on what page(s) a user was on. I noticed on WikiIndex.org it changes when you are on the Sandbox page vs. when you are on the other pages of the wiki. Would be cool to be able to set up for "sections"/division of content.
Thanks, Karen
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Since I used the wiki I have always hacked the actual underlying PHP code to make JavaScript possible. (I have a need for it and I am the only user on the wiki :-)
On 1/9/07, Gary Kirk gary.kirk@gmail.com wrote:
The AllowJS is the switch enabling pages of the form pagename.js to work, often as user subpages for tools like (on the English Wikipedia) vandal-fighting scripts. For actual JS on pages, such as used in the Google Adsense extension, I don't know. But it would thus seem likely.
On 1/9/07, khuffman@ngs.org khuffman@ngs.org wrote:
Hi, I'm using Using MediaWiki ver 1.8.2 and had two questions:
- How can we allow our users to add javascript to a page? I tried adding
$wgAllowUserJS = true to my localsettings.php file but nothing seemed to happed when I dropped javascript onto a page.
- Has anyone been able to change the upper left image/make it swap to
another image depending on what page(s) a user was on. I noticed on WikiIndex.org it changes when you are on the Sandbox page vs. when you are on the other pages of the wiki. Would be cool to be able to set up for "sections"/division of content.
Thanks, Karen
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- Gary Kirk
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org