[Mediawiki-l] Adding Get Satisfaction widget to Mediawiki
Jeremy Baron
jeremy at tuxmachine.com
Sun Apr 12 22:02:07 UTC 2009
Can I have a link to your wiki to see it myself?
On Apr 12, 2009, at 5:56 PM, Bobby S wrote:
> Jeremy,
>
> Hey - I tried what you wrote re: Get Satisfaction's widget, but what I
> end up with is a text FEEDBACK link at the bottom of each page. It
> should be a feedback graphic like the one on the right of this page:
>
> http://getsatisfaction.com/widgets
>
> Also, with regard to the capitalization issue - that actually is my
> point, that Fort_wayne_tincaps has never existed, but when you type in
> fort wayne tincaps it goes to Fort Wayne TinCaps. On my Mediawiki
> install I created a page called "Fort Wayne TinCaps", but when I type
> in "fort wayne tincaps" it says the page doesn't exist - basically I
> would have to set up a redirect.
>
> Bobby
>
> On Sun, Apr 12, 2009 at 2:51 PM, Jeremy Baron
> <jeremy at tuxmachine.com> wrote:
>> I forgot to mention that you'll need to load the script and wait
>> until the
>> JS is finished loading before calling it's functions.
>>
>> So try this:
>> common.css:
>> @import
>> url('http://s3.amazonaws.com/getsatisfaction.com/feedback/
>> feedback.css');
>>
>> common.js:
>> importScriptURI("http://s3.amazonaws.com/getsatisfaction.com/
>> feedback/feedback.js");
>> addOnloadHook(function importGSFN(){
>> var tab_options = {}
>> tab_options.placement = "right"; // left, right, bottom, hidden
>> tab_options.color = "#FFF"; // hex (#FF0000) or color (red)
>> GSFN.feedback('http://getsatisfaction.com/jetblue/feedback/topics/
>> new?display=overlay&style=idea',
>> tab_options);});
>>
>> The thing about adding the container still applies with this code.
>>
>> On Apr 12, 2009, at 2:38 PM, Jeremy Baron wrote:
>>>
>>> There's no need to write an extension or modify any php.
>>>
>>> You can accomplish that just by modifying common.js and common.css
>>> ( http://www.mediawiki.org/wiki/Manual:Interface/Common.js ,
>>> http://www.mediawiki.org/wiki/Manual:Interface/Common.css )
>>>
>>> It looks like part of it is just a floating iframe w/ position
>>> fixed +
>>> absolute so it might be fine out of the box but you might end up
>>> having a
>>> piece placed at an undesirable location. (possibly changing from
>>> page load
>>> to page load or browser to browser)
>>>
>>> If there are any problems you can use an undocumented feature of
>>> their JS
>>> (at least not documented at getsatisfaction.com/widgets ):
>>> add this line before GSFN.feedback: tab_options.container =
>>> "mycontainerid";
>>> add a div somewhere on your site with that id
>>> Then the getsatisfaction html will be placed in that container
>>> div instead
>>> of just document.write'ing. "mycontainerid" can be whatever you
>>> want
>>> (assuming no conflicts with Since it's an undocumented feature
>>> there's no
>>> guarantee that it won't break without notice.
>>>
>>> On Apr 12, 2009, at 1:35 PM, Bobby S wrote:
>>>>
>>>> I am trying to add the Get Satisfaction widget to Mediawiki.
>>>> Here is
>>>> some sample code:
>>>>
>>>> <style type='text/css'>@import
>>>>
>>>> url('http://s3.amazonaws.com/getsatisfaction.com/feedback/
>>>> feedback.css');</style>
>>>> <script
>>>> src='http://s3.amazonaws.com/getsatisfaction.com/feedback/
>>>> feedback.js'
>>>> type='text/javascript'></script>
>>>> <script type="text/javascript" charset="utf-8">
>>>> var tab_options = {}
>>>> tab_options.placement = "right"; // left, right, bottom, hidden
>>>> tab_options.color = "#FFF"; // hex (#FF0000) or color (red)
>>>>
>>>> GSFN.feedback('http://getsatisfaction.com/jetblue/feedback/
>>>> topics/new?display=overlay&style=idea',
>>>> tab_options);
>>>> </script>
>>>>
>>>> Does anyone know how I could do this? I assume there are two
>>>> routes -
>>>> one directly in Monobook.php and another as an extension. I'm
>>>> actually surprised there isn't an extension for this, but could
>>>> anyone
>>>> help me out on what to do?
>>>>
>>>> Thanks!
>>>> Bobby
More information about the MediaWiki-l
mailing list