Forums | Mahara Community

Support /
GoogleApps in 1.3


Gregor Anželj's profile picture
Posts: 349

27 October 2010, 12:27

OK. I'll give it a try next week...

In the mean time, please try this:

  1. Find line 198 in file lib.php (inside googleapps blocktype folder) - it should look like this:
    'match' => '#.*books.google.com/books.*id=([a-zA-Z0-9\_\-\&\%\=]+).*#',
  2. Change this line (THE RED PART), so it will look like this:
    'match' => '#.*books.google.*/books.*id=([a-zA-Z0-9\_\-\&\%\=]+).*#',

Let me know, if it works...

Regards,
Gregor

anonymous profile picture
Account deleted
Posts: 92

28 October 2010, 0:18

hi,

I change the code in Lib.php

Now it is working Fine.

but i want make block type for integrating picasa slideshow how can i do?

after your holidays can you give me such hints for how to integrate picasa.

Once Again Thank you.

anonymous profile picture
Account deleted
Posts: 214

28 October 2010, 4:50

Hi Mrunal,

Good to see that you're getting somewhere with the Google Books feature.

Developer Documentation is available on the mahara wiki (http://wiki.mahara.org/Developer_Area). Many of the core classes are also well documented in the relevant code. For example, if you're after creating a new blocktype, then you should investigate blocktype/lib.php.

You could start by creating a simple blocktype and building it up to learn about how the PluginBlocktype class fits together. Since you're after integrating with the Picasa Slideshow feature, you'll probably also want to reference the Picasa API (http://code.google.com/apis/picasaweb/overview.html).

If you're not comfortable developing this yourself, perhaps you would be willing to fund the development of this feature? You could contact one of Mahara partners in your region (http://mahara.org/partners) or one of the worldwide partners who offer custom development.

Andrew

Dirk Meyer's profile picture
Posts: 425

28 October 2010, 8:03

I just wanted to publically express my sincere thank you to Gregor for his work and especially for the google educational domain inclusion.
Gregor Anželj's profile picture
Posts: 349

28 October 2010, 9:02

It is nice to hear that everything is working...

@Dirk - thanks for kind works and feedback.

@Mrunal - As I wrote yesterday: Yes I am planning to write a blocktypte that will support embedding Picasa slideshows, albums and photos. It will also support embedding of Flickr slideshows, galleries and photos, and maybe some other proto sharing provider.

Please be patient and give me some time (a few weeks).

Regards,
Gregor

anonymous profile picture
Account deleted
Posts: 92

30 October 2010, 7:45

I am also planning to Developing the Blocktype for Embeddding the Picasa & Flickslide Show.

Thanks for Reply.

anonymous profile picture
Account deleted
Posts: 808

31 October 2010, 18:04

Gregor, Mrunal,

I finally got around to merging a simple image gallery blocktype that was written by Evan Goldenberg months ago.  The blocktype I merged just displays images from the user's files area, but in case you're interested, there's also a flickr blocktype on the same branch.  You can find it here:

http://gitorious.org/~naveg/mahara/navegs-mahara/commits/gallery-premerge

I haven't merged the flickr block to master yet, because it requires the admin to obtain a flickr api key, but there didn't seem to be any logic in there to disable or hide the blocktype when there was no api key configured, and I think we'd really some way to prompt the admin to enter an api key when the blocktype is installed.

R.

47 results