Ideally, I would like to be able to choose the url from a pop-up chooser. I've been thinking about this quite a bit and I wonder if this might work: Imagine that each module had its own "activity browser" pop-up which could be displayed by any other module (to promote loose coupling). Each module maintainer would be responsible for displaying the appropriate/contextual information needed for linking to that module's resources. For instance, lets say I want to link to a Book chapter from a Quiz question to show where the answer came from. The Book module's activity browser could show Books with chapters as a tree view. Each tree node would be a URL to a chapter and could be "chosen" (or copied) for linking. Another example would be Assignments. It would be nice to link to Assignments from Books or Quiz questions. In a last Book chapter, for instance, I could use the Assignment activity browser to choose the Assignment activity and then choose an assignment to which I want to link. I know this isn't very clear. I will come up with some screen shots to explain my vision.
Point taken. I was thinking about this from the standpoint of the those in my office who would be doing the administering. It would be nice for something like that to be baked in. I agree, it may not be have a huge ROI but its something to think about for 1.6 or 2.0.
" onmouseover=\"return overlib('$feedback', CAPTION, '$strfeedback', FGCOLOR, '#FFFFFF');\" onmouseout=\"return nd();\" "
If someone tells me what to change that to to get sticky popups then I will happily do that.
I do not really know what to change, but in calendar/view.php this is already implemented. You can point your mouse over the day of the event and here you go...
And if you really want to improve it you may add class to it instead of putting color info directly.
" Xonmouseover=\"return overlib('$feedback', CAPTION, '$strfeedback', FGCOLOR, '#FFFFFF');\" Xonmouseout=\"return nd();\" "
Seems like it should be enough to put in "sticky" like this:
" Xonmouseover=\"return overlib('$feedback', STICKY, CAPTION, '$strfeedback', FGCOLOR, '#FFFFFF');\" Xonmouseout=\"return nd();\" "
has som other examples of many ways to use overLib (I can't seem to find one that demonstrates everything step by step. I have some memory of that but can't find it now.
This one (the last on that page):
overlib('<a href=\'http://www.bosrup.com/web/overlib/\'>Popups by overLIB</a>', STICKY, MOUSEOFF, WRAP, CELLPAD, 5)
obviously has a working link in it. Though WRAP should probably not be there for MOODLE since it could make trouble for longer texts.
MOUSEOFF might be good, it just closes the popup if you leave it.
http://www.bosrup.com/web/overlib/?Command_Reference - actually demonstrates a lot of the features too.
I guess I would suggest trying:
" Xonmouseover=\"return overlib('$feedback', STICKY, MOUSEOUT, CAPTION, '$strfeedback', FGCOLOR, '#FFFFFF');\" Xonmouseout=\"return nd();\" "
Don't feel like it is a real problem. There are parameters in OverLib for telling it WHERE to appear, but that might be difficult to find a "cover all cases" choice for that.