I'll be putting out a new release soon as I get through the emails...
Give it a try again then.

Cheers,
Dan


On Sun, Nov 1, 2009 at 4:16 PM, Markus <[email protected]> wrote:
>
> On Nov 1, 9:04 pm, The Editor <[email protected]> wrote:
>> No it looks right. And I probably just had my line wrap on which
>> affected the line numbering.
>>
>> Test with this.  Create a page called test.Überfluß with this content
>>
>> [(lastmodified test.Überfluß %x)]
>>
>> It should give you the current date. It definitely works for me.
>
> Unfortunately, this returns not a single character. Could you please
> attach your current sort_de.php and engine.php?
>
> Regards, Markus
>
>> Cheers,
>> Dan
>>
>>
>>
>> On Thu, Oct 29, 2009 at 12:00 PM, Markus <[email protected]> 
>> wrote:
>>
>> > I changed BOLTFlastmodified to:
>>
>> > function BOLTFlastmodified($args, $zone='') {
>> > ## RETURNS THE LAST MODIFIED DATE OF A PAGE(#1), IN STRFTIME FMT(#2).
>> > CAN SET DIR TO PLUGINS, SYSTEM, PAGES(?)
>> >        global $pagesDir, $pageLink, $pluginPath, $systemPath;
>> >        if ($args['page'] != '') $page = $args['page'];
>> >        else $page = $args[1];
>> >        if ($page == '') $page = $pageLink;
>> >        $page = BOLTutf2url($page);
>> >        if ($args['fmt'] != '') $fmt = $args['fmt'];
>> >        ...
>>
>> > But still I get a timeout offline and a "()" list on the server. The
>> > change from above was ~line 292. Have you fixed something else since
>> > then because you are 20 lines off? Did I change it improperly?
>>
>> > Regards, Markus
>>
>> > On Oct 29, 9:17 am, The Editor <[email protected]> wrote:
>> >> In functions.php add this second line about ~311.
>>
>> >>         if ($page == '') $page = $pageLink;
>> >>         $page = BOLTutf2url($page);
>>
>> >> The lastmodified function doesn't work, because the page is not
>> >> urlencoded at this point.
>>
>> >> Cheers,
>> >> Dan
>>
>> >> On Wed, Oct 28, 2009 at 1:08 PM, Markus <[email protected]> 
>> >> wrote:
>>
>> >> > On my server I don't get a timeout but the search results don't
>> >> > display correctly.
>>
>> >> > Search:
>> >> > [(search group=entwürfe.* template=lastmodified sort=lastmodified)]
>>
>> >> > Template:
>> >> > <(breadcrumb {+p} offset=1 name=link)> >>>>([(lastmodified page={+p}
>> >> > fmt="%d.%m.%Y")])>>
>>
>> >> > For each search result this renders to:
>> >> > ()
>>
>> >> > Regards, Markus
>>
>> >> > On Oct 28, 5:45 pm, Markus <[email protected]> wrote:
>> >> >> This sort_de call will prevent the page from loading:
>>
>> >> >> [(search group=entwürfe.*)]
>>
>> >> >> Without umlauts, it's working:
>>
>> >> >> [(search group=blog.*)]
>>
>> >> >> Regards, Markus
>>
>> >> >> On Oct 22, 10:14 am, The Editor <[email protected]> wrote:
>>
>> >> >> > Oh, that's right. I had $BOLTvar global in mine. Guess I forgot to
>> >> >> > mention it. As for $BOLTvar[language] it set it line 197 (somewhere 
>> >> >> > in
>> >> >> > that list of vars):
>>
>> >> >> > $BOLTvar['$language'] = BOLTconfig('BOLTlanguage');
>>
>> >> >> > Which allows {language} in the page. However I wonder if it wouldn't
>> >> >> > be smarter to set it in the plugin. I added the line above on my
>> >> >> > system and it worked just fine.
>>
>> >> >> > The other, maybe even better option is to do this. It is a more
>> >> >> > standard way, uses less code, and is a bit eaiser on the eyes:
>>
>> >> >> > ~1933-1934
>>
>> >> >> >         $sortFunc = 'BOLTsort' . BOLTconfig('BOLTlanguage');
>> >> >> >         if ($sortFunc != 'BOLTsort'  && function_exists($sortFunc)) 
>> >> >> > return
>> >> >> > $sortFunc($outarray);
>>
>> >> >> > and ~2024-2025
>>
>> >> >> >                         $sortFunc = 'BOLTsort' . 
>> >> >> > BOLTconfig('BOLTlanguage');
>> >> >> >                         if ($sortFunc != 'BOLTsort'  && 
>> >> >> > function_exists($sortFunc))
>> >> >> > $sortarray = $sortFunc($sortarray);
>>
>> >> >> > No BOLTvar is needed, no change to the plugin is required, no
>> >> >> > introduction of a new system variable.  I think this latter option is
>> >> >> > the best yet. Thoughts?
>>
>> >> >> > Cheers,
>> >> >> > Dan
>>
>> >> >> > On Thu, Oct 22, 2009 at 4:33 AM, Hans <[email protected]> 
>> >> >> > wrote:
>>
>> >> >> > > Missing: in function BOLTsort() you need to declare $BOLTvar 
>> >> >> > > global.
>> >> >> > > And the function starts with
>> >> >> > >   if ($args['sort'] == 'false') return $outarray;
>> >> >> > > which means it will never gert to the $sortFunc =
>> >> >> > > "BOLTsort$BOLTvar[language]"; part.
>>
>> >> >> > > How do I set the $BOLTvar[language] ?
>> >> >> > > in site.config
>> >> >> > > language: de
>> >> >> > > did not do it.
> >
>

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