Not sure why, when, or exactly how this changed, but I'm glad you
found a workaround. Here's what is happening currently at least...
The label of the link gets processed with only a limited set of markup
to try and avoid weird markup getting inserted in there like a table
or something... Anyway, here's the line (markups.php, 536)
$label = BOLTdomarkup($label, $pageLink, 'link', 'vars,func,style',
false);
If you add 'block' to the list it will work (that can handle the span
output by the box tag). But I'm not sure I want to go this direction
because it allows tables. On the other hand, style allows a horizontal
rule (which works, to create a rather unique effect!). Rather I would
prefer a bit of discussion as to which markup rules should be allowed,
and which not...
Actually, I'm inclined to bypass that discussion and make this change:
1) Get rid of the domarkup function completely and
2) change the last line (539) to this:
return BOLTescape('<a href="'.$link.'" '.$defaultAttr.$attr.'>') .
BOLTtranslate($label) . BOLTescape("$missingPage</a>");
You'll notice we just leave the label exactly as it is. It does not
get run through BOLTdomarkp and get htmlspecialchar encoded (ah,
that's why it stopped working) and allow it to continue normal
processing like any other markup.
By the way I tried a simple table in a link and it works fine. As long
as you put a space after the closing [t] to distinguish it from the ]]
closing the link.
Anyway, if you make that change, it should not only restore previous
behavior but avoid other future complications.
Cheers,
Dan
On Thu, Oct 15, 2009 at 10:56 AM, Kevin <[email protected]> wrote:
> Found a header that I had setup like:
>
> [if ! equal {p0} 1]<right>[[membership|<box>Return to Membership
> Page</box>]]</right><br>[if]
>
> Which used to display the link in a box on the right, now it outputs text on
> the page like:
>
> <span class='box'>Return to Membership Page</span>
>
> Instead of actually displaying it in a box.
>
> Had to change it so the box tag was outside of the link itself like.
>
> [if ! equal {p0} 1]<right><box>[[membership|Return to Membership
> Page]]</box></right><br>[if]
>
> To get the original effect.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---