[Encore] v5 @url problem

Daniel Jung jung at uib.no
Wed May 16 17:09:08 MDT 2007


Lennie Irvin wrote:

> The @url command in v5 throws the web page to the wrong frame.  

Does it? Doesn't it say something like: "Player X wants you to look at
this and that external page. Click to view?" Then you can right click
and ask for the link to be opened in a fresh window.

As for the mising target, I just checked the code, and you are right.
There was a flaw--an argument ("target") had gone lost somewhere along
the line. Shoot. I put it back in (High Five), and I will put it in the
next release (patch) for distribution.

Those who want to do it right away: In the verb
$enCore_web_utils:mark_up near line 10, there is

   this:detect_urls_smart2(text)

in the middle of the . This must be changed into

   this:detect_urls_smart2(text, target)

and you're set. It might say :detect_urls_smart instead of
:detect_urls_smart2, that doesn't matter. Don't change that, but keep
the verb name. Just add the "target" as argument in the parentheses.

> If anyone can find the errant code or remind my aging brain how to 
> view the
> code of a verb, I would appreciate it.

Program Editor (link in the top most frame of the main screen). It has a
search box. Put in $encore_web_utils there, then scroll down to :mark_up
in the verb list (middle column), click on it, then the verb code
displays in the box.

- Daniel




More information about the Encore mailing list