Moodle

CamelCase linking affects proper display of URL-based images

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: Accessibility, Wiki (1.x)
  • Labels:
    None
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

When students create links to images found in other resources, like in a database, the images appear fine in Wiki Edit mode, but only the alternate text shows up in View mode. Strangely, disabling CamelCase for the wiki allows the images to display, which means that the CamelCase must be looking at URLs as well as text. If there is a way to exclude URLs that are placed in a wiki page from CamelCase qualification, that might solve the issue.

A little background on the method students are using to insert images:

Students upload pictures to a database and then use the database entry web address in their wiki, with these directions:
1. Create or save your image as a jpeg file. This seems to work the best.
2. Click on the "Add Entry" tab below.
3. Click on the Browse button and select your image.
4. You will now see your picture listed in the database as a hyperlink. Right-click on the hyperlink and select "Copy Link Location." This places the picture link from this database onto your clipboard.
5. Go to your wiki.
6. Click on the "Edit" tab and in the icon bar, select the "Insert Image" icon (picture of mountain).
7. In the Image menu, paste the URL into "Image URL," provide an alternative text and you are done!!! The image should appear when you close the image window.

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Hi Laura,

I've been trying this both with CameelCase enabled and disabled and cannot reproduce it at all, both with TEXT and HTML editors. I guess we are talking about standard Wiki (the one coming with Moodle, 1.9.x) correct?

In any case... can you tell me the name of some of the images causing problems? Or, ideally, attach one here? Thanks!

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Hi Laura, I've been trying this both with CameelCase enabled and disabled and cannot reproduce it at all, both with TEXT and HTML editors. I guess we are talking about standard Wiki (the one coming with Moodle, 1.9.x) correct? In any case... can you tell me the name of some of the images causing problems? Or, ideally, attach one here? Thanks! Ciao
Hide
Enrique García added a comment -

Hello
I think this is the same problem I want to report, so I include more info, including an sample Image

In Moodle, with CamelCase enabled (it is by default) you edit a wiki page and you include an URL of an image, or an image.
Example of a public image in picassa

http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG

If you put a link, as it has lower and upper case, it is interpreted as CamelCase, and it appears with severals interrogation simbols ....
The HTML code
<a href="http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG">http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG</a>

http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI?/AAAAAAAAAFs/FOCKyAYb1BM?/s512/P1090905.JPG

It is the same nonsense if you put an image, in HTML the code

<img border="0" vspace="0" hspace="0" title="image" alt="image" src="http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG" />

In edit mode the image appears, but when the wiki parses it (in preview or saving the wiki page), the image does not appear.
In picassa you do not have control over the image url, so CamelCase url may appear at any moment.

My suggestion:
"Disable ANY KIND of -CamelCase parsing- inside src="" and href="" tags of HTML, as it is nonsense parse whatever appears there"

Show
Enrique García added a comment - Hello I think this is the same problem I want to report, so I include more info, including an sample Image In Moodle, with CamelCase enabled (it is by default) you edit a wiki page and you include an URL of an image, or an image. Example of a public image in picassa http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG If you put a link, as it has lower and upper case, it is interpreted as CamelCase, and it appears with severals interrogation simbols .... The HTML code <a href="http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG">http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG</a> http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI?/AAAAAAAAAFs/FOCKyAYb1BM?/s512/P1090905.JPG It is the same nonsense if you put an image, in HTML the code <img border="0" vspace="0" hspace="0" title="image" alt="image" src="http://lh5.ggpht.com/_zoRQN8SuafI/S6F5hm2denI/AAAAAAAAAFs/FOCKyAYb1BM/s512/P1090905.JPG" /> In edit mode the image appears, but when the wiki parses it (in preview or saving the wiki page), the image does not appear. In picassa you do not have control over the image url, so CamelCase url may appear at any moment. My suggestion: "Disable ANY KIND of -CamelCase parsing- inside src="" and href="" tags of HTML, as it is nonsense parse whatever appears there"
Hide
Ludo ( Marc Alier) added a comment -

No CamelCase in Wiki 2.x , CamelCase is so 90's

Show
Ludo ( Marc Alier) added a comment - No CamelCase in Wiki 2.x , CamelCase is so 90's
Hide
Dennis Meyer added a comment -

Same herer in 1.9.12 - Images with two UpperCase-letters in the src-Tag will be stripped out (the src-part)... disabling CamelCase will "fix" it

Schorsch

Show
Dennis Meyer added a comment - Same herer in 1.9.12 - Images with two UpperCase-letters in the src-Tag will be stripped out (the src-part)... disabling CamelCase will "fix" it Schorsch

Dates

  • Created:
    Updated: