Re: Install a Google Calendar in a MediaWiki

1,014 views
Skip to first unread message
Message has been deleted

Sergey Chernyshev

unread,
Dec 3, 2013, 10:39:09 AM12/3/13
to mediawik...@googlegroups.com
You can test if extension is installed on Special:Version page.

Also, if it is successful, you will see "Widget" namespace in a drop-down on Special:AllPages page (and you will see Google Calendar page in that namespace now when you created it).

Step 4 is not necessary, the rest seems to be correct.

Best,

         Sergey


On Tue, Dec 3, 2013 at 10:08 AM, Ron Roble <ronr...@ymail.com> wrote:
Hello together,

I'm asking for help in the above mentioned topic.

1) I downloaded, extracted and copied the files of Widgets_1.0.zip to $IP/extensions/Widgets/ of my MediaWiki installation

2) I added the string [code]require_once "$IP/extensions/Widgets/Widgets.php";[/code] to my localsettings.php
(btw: Do I have the chance to check, wether this installation yet is correct?)

3) I created an example calendar on https://www.google.com/calendar/embedhelper and named it "LinksWiki_G"

4) I got this iframe-code from Google
[code]
<iframe src="https://www.google.com/calendar/embed?height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=XXXXXXXX%40ymail.com&amp;color=%232952A3&amp;ctz=Pacific%2FMidway" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>
[/code] (anonymized for this posting with 'XXXXXXXX')

Copying this <iframe>-code results in the wiki shows on this page this iframe-sourcecode but no calendar.

5) I copied the full source code of  Google Calendar widget code page
to the page 'Widget:Google Calendar' in my MediaWiki.
But this then shows only the info that Widget:Google Calendar allows me to add Google Calendar to my wiki - something like a vicious circle ???

6) I copied the code [code]{{#widget:Google Calendar|id=XXXX...@ymail.com|color=528800|title=testcalendar}}[/code] to the wiki page,
result shown: {{#widget:WidgetName|param1=value1|param2=value2}}


What I'm supposed to do know?

Thanks for each help.

--
You received this message because you are subscribed to the Google Groups "MediaWiki Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mediawiki-widg...@googlegroups.com.
To post to this group, send email to mediawik...@googlegroups.com.
Visit this group at http://groups.google.com/group/mediawiki-widgets.
For more options, visit https://groups.google.com/groups/opt_out.

Ron Roble

unread,
Dec 3, 2013, 10:54:56 AM12/3/13
to mediawik...@googlegroups.com
Many thanks for your answer,


Am Dienstag, 3. Dezember 2013 16:39:09 UTC+1 schrieb Sergey Chernyshev:
You can test if extension is installed on Special:Version page.

I looked at this page and there it is - installed extensions: Widgets (Version 1.0) from you.
 
Also, if it is successful, you will see "Widget" namespace in a drop-down on Special:AllPages page (and you will see Google Calendar page in that namespace now when you created it).

Yes, there are "widget" and "widget diskussion" in the drop down; chosen the first one there is a link for the "Google Calendar" page.
 
Step 4 is not necessary, the rest seems to be correct.

On that page I can only view directly the following source code:

<iframe src="https://www.google.com/calendar/embed?height=600&wkst=2&hl=de&bgcolor=%23FFFFFF&src=XXXXXXX%40ymail.com&color=%232952A3&ctz=Europe%2FBerlin" style=" border:solid 1px #777 " width="800" height="600" frameborder="0" scrolling="no"></iframe>

Seems that my wiki doesn't accept iframes.
Doesn't Wikimedia accept iframes by default?


(Sorry for double posting. After more than 1/2 hour this forum didn't show my question posting. I refreshed and reloaded the page several times (incl. cache). But nothing.
Then I repeated the posting. In this moment there were both postings. I tried to delete the other one.)

Best regards
Ron

Sergey Chernyshev

unread,
Dec 3, 2013, 12:29:55 PM12/3/13
to mediawik...@googlegroups.com
Step 4 is completely useless - you should not paste iframes into wiki pages - they just don't work, that's why Widgets extension was created.

Did you try {{#Widget:...}} code again?

Ron Roble

unread,
Dec 3, 2013, 2:45:00 PM12/3/13
to mediawik...@googlegroups.com
Am Dienstag, 3. Dezember 2013 18:29:55 UTC+1 schrieb Sergey Chernyshev:
Step 4 is completely useless - you should not paste iframes into wiki pages - they just don't work, that's why Widgets extension was created.

O.K. then - without iframes.

Into the page ...wiki/index.php/Widget:Google_Calendar
I write the {{#widget}} parser function:

{{#widget:Google Calendar|id=ronr...@ymail.com|color=528800}}

After saving this I get in the display:

Widget:Google Calendar

{{#widget:WidgetName|param1=value1|param2=value2}}

Seems, that this parser function is not interpreted, but reseted to a default sentence, not only showing the source code ?!?

And btw: In the settings of the Google Calendar I shared it public; I wonder why I create user accounts in my wiki, if I only can use a calendar
(with entries dedicated to a certain group of persons) which is public for the whole world ?!? Did I missunderstand this too?

Best regards

 

Ron Roble

unread,
Dec 3, 2013, 3:05:56 PM12/3/13
to mediawik...@googlegroups.com
And what's this for?

'''This widget allows you to add '''[http://www.google.com/calendar/embedhelper Google Calendar]''' widget to your wiki page.'''

Reply all
Reply to author
Forward
0 new messages