Joseph Rézeau tarafından yapılan gönderiler

Core developers 'ın resmi Plugin developers 'ın resmi Testers 'ın resmi Translators 'ın resmi

Using Moodle version 1.3.2 with Glossary module v 1.25.4.1

The auto-linking procedure of Moodle parses the Resource files and adds the appropriate hyperlinks to the HTML code or plain text.

The resulting code looks something like this:

(1) <P>In the <A class=autolink title="Archaeology Glossary: mesolithic" Xonclick="return openpopup('/mod/glossary/showentry.php?courseid=2\&concept=mesolithic', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);" href="http://localhost/moodle/mod/glossary/showentry.php?courseid=2&concept=mesolithic" target=entry>mesolithic</A> age, ...</P>

However, there is a difference between the displaying of the internal resources (plain text or HTML) and the downloaded files. When an internal resource file is displayed, the source code contains a number of javascript functions among which is the openpopup() function, called by the onclick in the autolink hyperlink (see above).

(2) function openpopup(url,name,options,fullscreen) {
  fullurl = "http://localhost/moodle" + url;
  windowobj = window.open(fullurl,name,options);
  if (fullscreen) {
     windowobj.moveTo(0,0);
     windowobj.resizeTo(screen.availWidth,screen.availHeight);
  }
  windowobj.focus();
  return false;
}
In the downloaded files, the autolink parser only adds the hyperlink coding (1). If the user clicks on an auto-linked hyperlink and the Javascript debugger is activated, he gets an error message ("Object not found"). The linking still works, because of the second part of the coding (href= etc.) but in a full-size window, not a nice pop-up one...

Suggested solution:

The Moodle Glossary auto-linking procedure (I think it's in the moodle\mod\glossary\filter.php file) could be modified to dynamically write the openpopup() function into the head section of downloaded files when they are displayed. Then we could do without the (useless) href URL reference in (1) and replace it with a simple href=# (or something similar)...

Joseph

Moodle in English -> General help -> Moodle spam -> Re: Moodle spam

yazan Joseph Rézeau -
Core developers 'ın resmi Plugin developers 'ın resmi Testers 'ın resmi Translators 'ın resmi

One nice solution to the "spam" problem raised by Shan Jayran would be a system similar to that of the WebCT Forums.

In the WebCT Forums you can subscribe to each thread separately, by clicking the Notify Me button. If any further messages are posted to that post you get an e-mail message. Of course you can also unsubscribe from a subscribed thread by clicking the Unsubscribe button.

In Moodle this would mean adding to the Subscription drop-down list 2 options:

  • Send me email copies of posts to this thread
  • Unsubscribe me from this thread

Anyway, I don't think that getting messages (even lots of them...) from a forum to which one has voluntarily subscribed can be called "spam".wink

Joseph

Développeurs 'ın resmi Développeurs de plugins 'ın resmi Testeurs 'ın resmi Traducteurs 'ın resmi

Bonjour Christian

Bienvenue sur Moodle où je fais moi aussi mes premiers pas...

Tu trouveras le mot "binette" comme équivalent du mot anglais "icon" ainsi que plein d'autres termes franco-québecois sur l'excellent dictionnaire en ligne de l'office de la langue française du Québec à:

http://www.granddictionnaire.com/

Définition  de binette:
Dessin réalisé avec des caractères ASCII et qui, vu de côté, suggère la forme d'un visage dont l'expression traduit l'état d'esprit de l'internaute expéditeur.