Try changing conditions.php, line 122, from

        if (strpos($content, $find) !== false) return true;

to

        if (strpos($content, BOLTurl2utf($find)) !== false) return true;

You may also need to put the BOLTurl2utf around the content line, but
I don't think so.

Cheers,
Dan

P.S. Let me know if this works. I'll add it to the core...


2009/4/8 Linly <[email protected]>:
>
> Ah, yes, you're right. It is because the % encoded url problem.
>
> If it is all lower ascii page name, the code
>
> "[if inpage page='side' find='{p}'] is category [else] is not [if]"
>
> is working. See the link here: http://txtray.net/?p=web.ui
>
> If It is higher character in page name, it failed for the reason you
> point out - because in page side it is utf-8, not % encoded.
>
> So I think even in a dynamic {p} or {title}, they should retrieve the
> url data into utf-8. right?
>
> Cheers, linly
>
> On 4月9日, 上午8時03分, The Editor <[email protected]> wrote:
>> 2009/4/8 Linly <[email protected]>:
>>
>>
>>
>>
>>
>> >> Still don't get it. Are you asking if "page.abc"  is in side?
>>
>> > Yes exactly.
>>
>> >> Does
>> >> side change depending on the page? I take it somehow this is
>> >> dynamically generated...
>>
>> > Yes, it's dynamically, but, it's not "side change", it's actually "the
>> > page change".
>>
>> > If "page.abc" is in sidebar, It must be a category. So I can do
>> > something different. If it is not, it must be a normal page...
>>
>> >> I'd have to see the side code to tell if there's someway to replicate
>> >> that in a conditional.  Just looking for the string should work, if it
>> >> is actually there in the source code.
>>
>> > My page "side" containing only category links. Inpage can find string
>> > well, but I need it to find page name like "page.abc".
>>
>> How are these links generated?  Some kind of function or something.  I
>> think I'm going to need to see the code.
>>
>> is "page.abc" in the source or in the output?  If it is in the output
>> we may be able to hack the inpage script to do the markup processing
>> before checking the output, perhaps even making it an option.
>>
>> But sometimes these things are easier to figure out if you can show me
>> the code. I can read that usually easier.
>>
>> > Cheers, linly
>>
>> >> > OK, for example, when I open "page.abc", I want to check the page name
>> >> > (page.abc) is in page "side" or not.
>>
>> >> > Inpage can find string but can't find page name.
>>
>> Does this only work with utf pages? That might not work because what
>> you type in the page is utf, and the page names are % encoded. But
>> what you type in side should be utf also, so I'm not sure this is it.
>> Do you have a link--where I can see source code, Linly....  :)
>>
>> Cheers,
>> Dan
> >
>

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