On Wed, Jun 2, 2010 at 9:40 AM, DrunkenMonk <[email protected]> wrote:
> I am trying to create a custom link for a tabbar div, and getting
> wierd behavior.
>
> <a href='{p}#' rel='myid'>Next</a>
>
> This outputs
> pagename.1000
> as the target, as expected but not wanted. Escaping the '#' character
> รก la
>
> <a href='{p}`#' rel='myid'>Next</a>
>
> yields
>
> pagenameloginlogin64loginlogin
>
> which is not quite what I had in mind.
> I'm using an older version of boltwire, since When I try to upgrade
> everything breaks.

When you escape something, it temporarily converts it to ~~64~~ (the
number is variable), so no markups get processed, and then converts it
back at the very end. But when run through a link, ~ is the symbol for
your login directory. So you can do things like ~.myid, etc.  Similar
to member vars {~:field}. Any way, if you follow the explanation, this
converts `# to loginlogin64loginlogin.

I've looked at the code and this can be fixed by making a couple
simple changes...

engine.php, 1588 & 1589


        $rr1 = array('+','^','~','@','!','..',' ','loginlogin');
        $rr2 = 
array($BOLTtime,$BOLTid,$BOLTloginPages,$BOLTgroupPages,'action','.','_','~~');

markups.php, 517

        if (!preg_match('/^[-_a-zA-Z0-9~\.%]+(\#|\&|$)/', $link)) return
BOLTtranslate(BOLTinfoVar('site.messages', 'invalid_link', 'Invalid
link.'));

But before we make the change is a link like some.page# valid?
Shouldn't it be some.page#anchor?

Also, as for the upgrade... Can you tell me specifically what is
breaking? I have it running on a couple sites and things seem to be
working fine. If you are just talking about paragraph spacing, my
guess is the html was broken before. And now that it is fixed, the css
needs to be corrected. But of course, I have no idea what issues you
are working with...

Cheers,
Dan

P.S. I was out of town for 10 days. Finally back and getting caught
up. Good to see there weren't too many bugs in BoltWire while I was
gone.

-- 
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.

Reply via email to