Extension talk:HTMLets/LQT Archive 1

help
Can I use this to somehow load a Javascript apt into a mediawiki article? I'm trying to load the REVVER video JS into a mediawiki article. I'm just not sure how to go about doing that. Would I create an HTML file, put the JS in it, and save it in the HTMLets folder, with this extension installed? Thanks--Rovo 20:57, 15 February 2007 (UTC)


 * That's precisely the idea, yes. -- Duesentrieb 21:20, 15 February 2007 (UTC)

Error in base64_decode text
Hey Dues, I found a bug in the base64 hack I originally sent you. To fix, change line 115 from this: '//esm', To this: '//esm', I had forgotten that '/' is a legal base64 character. --Jimbojw 16:37, 19 February 2007 (UTC)


 * Thanks - fixed in revision 19993 -- Duesentrieb ⇌ 21:31, 19 February 2007 (UTC)

Thank you I am now going to create a form, and adapt the inputbox extension to take from that form and create a new page. Which will then give us the holy grail of a form creating a page and filling in a template 81.179.74.26 14:07, 30 March 2007 (UTC)

Very useful, thanks a lot! I thought div was an allowed HTML tag in MediaWiki. Apparently it isn't. However, with HTMLets I can insert them where I need them. Kevang 18:52, 30 March 2007 (UTC)

Uh, &lt;div&gt; is allowed, as this post demonstrates... works on a fresh install too. -- Duesentrieb ⇌ 23:58, 30 March 2007 (UTC)

PHP code support ?
hi guys,

thanks for the great functionality this extension brings to Wiki.. really helpful ! got one question - i keep trying to have it parse PHP files as well - as far as i can see, when htmlet requests the file, the web server will return the results as HTML, so i don't see why it won't work...however it does not work...for me at least :) any help / hint is highly appreciated

86.121.11.216 18:18, 8 June 2007 (UTC)

ahh...figured it out myself... all you need to do is specify "http://" and the complete path to the php file, and the resulting HTML output will be rendered, rather than the PHP source ;)

86.121.9.48 11:07, 10 June 2007 (UTC)

ISO-8859-1
This is a great extension. But i have a problem with showing the html-files. I have HTML with charset ISO-8859-1 and when i use this htmlet then a char like é is displayed wrong (in Firefox 2). In IE6 it even stops showing the page. When i set the charset of the browser (which is standard on UTF8) to 8859-1 it goes allright... Does anyone knows what the problem is and how to solve it?

--BB70 08:12, 21 April 2008 (UTC)


 * Mediawiki uses UTF-8 for everything. If you want to inline HTML-snippets, they need to be encoded as UTF-8 too. Or use character-references like &ampt;amul; etc for all non-ascii characters. -- Duesentrieb ⇌ 08:23, 22 April 2008 (UTC)

Does this extension need "$wgRawHtml=true"?
I am comparing Extension:SecureHTML with HTMLets. Not being a programmer I like the simplicity of this extension and I think that is all I need to include a javascript. Will this extension work even with "$wgRawHtml=false" or does that need a "true"? --Kassoe 20:41, 15 May 2008 (UTC)


 * It will work with $wgRawHtml=false; If you have that set to true, you can insert HTML anyway, so using this extension would be pretty pointless. -- Duesentrieb ⇌ 21:04, 16 May 2008 (UTC)


 * Thanks for clarifying this for a newbie, it wasn't quite clear on Manual:$wgRawHtml where I first found a link to this extension so I will make a small change there also ...

Does this work with 1.12?
Does this work with 1.12? Could you provide some more documentation on installation? I have installed many extensions, but I can't seem to get this one to work. Thanks 118.92.110.162 08:11, 16 May 2008 (UTC)


 * I have not tried on 1.12, but i don't see why it wouldn't work. But then, there's the new preprocessor code, maybe that itnerferes. WIll try to look into it in a couple of weeks. Installation should be streight forward, there's nothing special to do. -- Duesentrieb ⇌ 21:03, 16 May 2008 (UTC)


 * I figured my problem out. When I downloaded the files, I used the 'browse' link (http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/HTMLets/) which took me to the wrong versions of the files.  It seemed to download 'log' files or something, and not the actual PHP extensions.  Thanks