voki externalmedia embed code changed

Bug #1572825 reported by Ghada El-Zoghbi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Cecilia Vela Gurovic
17.10
Fix Released
High
Cecilia Vela Gurovic

Bug Description

A recent support post on the Mahara forums has highlighted that the externalmedia flags the voki URL invalid:

https://mahara.org/interaction/forum/topic.php?id=4007&offset=0&limit=10#post30536

It appears that the links have changed and will require an update in Mahara.

Previous voki bug: https://bugs.launchpad.net/mahara/+bug/905097

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Re-categorizing it as "high" as it's existing functionality that doesn't work anymore.

summary: - voki externalmedia embeded code changed
+ voki externalmedia embed code changed
Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Robert Lyon (robertl-9) wrote :

The link in this bug:
http://www.voki.com/site/pickup?scid=12647331&width=575&height=323&chsm=8c148a281882347e6b50d4d6c97b12fd

is seen as valid by Mahara - but the user would have got the error because they have a line return after the ? part of the URL.

On saying that there has been a change at Voki. The use of embeded links is now only available to paid subscribers.

A valid embed url should start with 'http://vhss.oddcast.com/' which is not part of the embed detection syntax in Mahara.

So we will need a correct embed code source example to try with to be able to fix this up

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

I was not able to find a valid URL example that starts with 'http://vhss.oddcast.com/' to test changes in the embed detection syntax.

Revision history for this message
Aaron Wells (u-aaronw) wrote :

I clicked on the "share" link on that URL that Robert posted. But it looks like the "embed" option for Voki is only available for paid subscribers. http://www.voki.com/site/create?VkId=12647331&chsm=8c148a281882347e6b50d4d6c97b12fd&share=sharing

Do we know anyone with a paid account we can use for testing?

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hm, or maybe we could email Voki tech support and ask them for a demo embed code?

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Cecilia sent a mail, but hasn't had a reply yet.

Robert Lyon (robertl-9)
Changed in mahara:
milestone: 16.10.1 → 17.04.0
Changed in mahara:
status: Incomplete → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/7254

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

New embed voki code for testing:

<script language="JavaScript" type="text/javascript" src="//vhss-d.oddcast.com/voki_embed_functions.php"></script><script language="JavaScript" type="text/javascript">AC_Voki_Embed(400, 225,"229214fafa6be8368fd1c22a84ebdafe",13290141, 1, "", 0, 1);</script>

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

Old voki code for testing:

<script language="JavaScript" type="text/javascript" src="http://vhss-d.oddcast.com/voki_embed_functions.php"></script><script language="JavaScript" type="text/javascript">AC_Voki_Embed(300,400,"d6a26a6ac40f311927e1e42dfd0e5d34",2516612, 1, "", 0);</script>

no longer affects: mahara/15.04
Changed in mahara:
milestone: 17.04.0 → 17.10.0
Robert Lyon (robertl-9)
no longer affects: mahara/15.10
no longer affects: mahara/16.04
no longer affects: mahara/16.10
no longer affects: mahara/17.04
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/7254
Committed: https://git.mahara.org/mahara/mahara/commit/207889a5e469f3f1ad9e78867855ca628cb57b44
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 207889a5e469f3f1ad9e78867855ca628cb57b44
Author: Cecilia Vela Gurovic <email address hidden>
Date: Wed Nov 16 10:47:48 2016 +1300

Bug 1572825: added Voki html filter for embed code

Added new html custom filter to allow
voki embed code with javascript tags.

issue with the creation/edition of blocks:

Voki embed code its a javascript code that loads
js functions from a remote file and makes a call to a
AC_Voki_Embed() function

parameters:

function AC_Voki_Embed (width, height, chsm, sc,
transparent, bgcolor, returnFlag, playerType)

The number of parameter makes the difference between
old and new voki code. The old one will have only 7,
the new one will have one more.

The new embed code will have playerType = 1
The function uses an XMLHttpRequest to obtain the
new embed code. When we are loading the page,
there is no problem. But when we are editing or
creating the block, the the connection with the object
gets lost and the embed code is never loaded.
Solution found: reload the page after editing or adding
a block with new voki code.

The old voki code can have
returnFlag = 1 will return a string with the code
returnFlag = 0 will load the embed code in the page (by default)
In this last case, after the function creates the embed code,
it will call document.write('embed code')
if we are loading a page with the embed code, we have no problem
but if we have the page already loaded and we are editing the block
or creating it, the document.write will replace all the html
with the embed code.
Solution found: change parameter of the function so it returns
the code instead, then manually add it in the correct place
of the html.

behatnotneeded

Change-Id: Ieed00b6c6887715b707b8123082a1312f3db1d9c

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "17.10_STABLE" branch: https://reviews.mahara.org/8310

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8310
Committed: https://git.mahara.org/mahara/mahara/commit/4e4f4871d36a36325711ef8b24f6fa7e4ad4a954
Submitter: Robert Lyon (<email address hidden>)
Branch: 17.10_STABLE

commit 4e4f4871d36a36325711ef8b24f6fa7e4ad4a954
Author: Cecilia Vela Gurovic <email address hidden>
Date: Wed Nov 16 10:47:48 2016 +1300

Bug 1572825: added Voki html filter for embed code

Added new html custom filter to allow
voki embed code with javascript tags.

issue with the creation/edition of blocks:

Voki embed code its a javascript code that loads
js functions from a remote file and makes a call to a
AC_Voki_Embed() function

parameters:

function AC_Voki_Embed (width, height, chsm, sc,
transparent, bgcolor, returnFlag, playerType)

The number of parameter makes the difference between
old and new voki code. The old one will have only 7,
the new one will have one more.

The new embed code will have playerType = 1
The function uses an XMLHttpRequest to obtain the
new embed code. When we are loading the page,
there is no problem. But when we are editing or
creating the block, the the connection with the object
gets lost and the embed code is never loaded.
Solution found: reload the page after editing or adding
a block with new voki code.

The old voki code can have
returnFlag = 1 will return a string with the code
returnFlag = 0 will load the embed code in the page (by default)
In this last case, after the function creates the embed code,
it will call document.write('embed code')
if we are loading a page with the embed code, we have no problem
but if we have the page already loaded and we are editing the block
or creating it, the document.write will replace all the html
with the embed code.
Solution found: change parameter of the function so it returns
the code instead, then manually add it in the correct place
of the html.

behatnotneeded

Change-Id: Ieed00b6c6887715b707b8123082a1312f3db1d9c

Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.