44,479
edits
(Search engine optimization.) |
(Search engine optimization.) |
||
Line 212: | Line 212: | ||
==Add HTML== | ==Add HTML== | ||
Hi Greenpickle. I'm looking into the AddHTML extension but it needs to be checked for security reasons. However, you can use [[mediawiki:common.js]] to embed IRC on a page. I suggest you talk to | Hi Greenpickle. I'm looking into the AddHTML extension but it needs to be checked for security reasons. However, you can use [[mediawiki:common.js]] to embed IRC on a page. I suggest you talk to GreenReaper about that since he knows how this was done on his wiki. An alternative is to use the Wikia IRC. We can add a pikmin channel there if you like. It's easier since it doesn't require Java which many users don't have installed. [[User:Angela|Angela]]<staff /> ([[User talk:Angela|talk]]) 01:11, 15 March 2008 (UTC) | ||
:Heya! You can see how we did this over at | :Heya! You can see how we did this over at Creatures Wiki's chat page by looking at Common.js. Basically, we find a div and replace it with the HTML we want (as well as setting up an on-exit handler to stop users closing or going to another page by accident). Hope this helps. --[[User:GreenReaper|GreenReaper]]<sup>([[User talk:GreenReaper|talk]])</sup> 20:05, 16 March 2008 (UTC) | ||
::Er, I can't seem to get it to work, not with the code there or modified code. What I've put in | ::Er, I can't seem to get it to work, not with the code there or modified code. What I've put in Common.js is: | ||
<pre>function onloadhookcustom() { | <pre>function onloadhookcustom() { | ||
Line 231: | Line 231: | ||
else if (window.attachEvent) window.attachEvent("onload",onloadhookcustom);</pre> | else if (window.attachEvent) window.attachEvent("onload",onloadhookcustom);</pre> | ||
::And then putting <code><nowiki><div id="chat"></div></nowiki></code> on any page gives nothing. I've purged my browser's cache. It works when I put the code in an HTML file on my computer and open that, so I don't understand why it shouldn't work. I'm thinking that there might be something wrong somewhere in that wiki's css and js pages, as no-one can seem to get collapsible tables to work either. - [[ | ::And then putting <code><nowiki><div id="chat"></div></nowiki></code> on any page gives nothing. I've purged my browser's cache. It works when I put the code in an HTML file on my computer and open that, so I don't understand why it shouldn't work. I'm thinking that there might be something wrong somewhere in that wiki's css and js pages, as no-one can seem to get collapsible tables to work either. - [[User:Greenpickle|Greenpickle]]<sub>[[User talk:Greenpickle|(talk)]]</sub> | ||
:::It's broken because you have a whole bunch of CSS in Common.js under the header "/* Forum formatting -Algorithm & -Splaka */" Take that out, and you should find it working a bit better. If you still have problems, use the Error Console in Firefox, under the Tools menu (reinstall with Developer Tools enabled if you don't have it). --[[User:GreenReaper|GreenReaper]]<sup>([[User talk:GreenReaper|talk]])</sup> 20:59, 17 March 2008 (UTC) | :::It's broken because you have a whole bunch of CSS in Common.js under the header "/* Forum formatting -Algorithm & -Splaka */" Take that out, and you should find it working a bit better. If you still have problems, use the Error Console in Firefox, under the Tools menu (reinstall with Developer Tools enabled if you don't have it). --[[User:GreenReaper|GreenReaper]]<sup>([[User talk:GreenReaper|talk]])</sup> 20:59, 17 March 2008 (UTC) |