1) In index.php before the engine call:
$farmPath = 'http://' . $_SERVER['HTTP_HOST'] . '/boltwire/farm';

Leads to:
img: http://localhost:8888/boltwire/farm/img
farm: http://localhost:8888/boltwire/farm

Good.

This works on all pages:
[^$$img/boltwire.gif^]

This does not work on any page and gives an upload link:
[^boltwire.gif^]

Why? If BoltWire would look in img which is correctly set, it would
certainly have to find that file.

2) Without setting a farmPath:

img: ../boltwire/farm/img
farm: http://localhost:8888/boltwire/farm

This works on all pages as above:
[^$$img/boltwire.gif^]

This works ONLY on top-level pages:
[^boltwire.gif^]

On sub-level pages the relative path is used FROM the sub-level.
Result is something like: field/boltwire/farm/img or
field/a/b/c/boltwire/farm/img.

This behavior is odd. The relative path should be computed in relation
to index.php and not to the page. Interestingly this only happens with
clean URLs, maybe as sub-pages translate to slashes and / means path.

Complicated. But hopefully this was helpful.

Markus

On Mon, Mar 22, 2010 at 2:38 PM, The Editor <[email protected]> wrote:
> The default values, from engine.php, are:
>
> BOLTdefault($farmPath, "$boltwire/farm");
> BOLTdefault($imgPath, "$farmPath/img");
>
> These can be preset to something else, but it must be done in
> index.php before calling the engine, not after.  Is this how you set
> them?
>
> $farmPath = 'other value';
>
> Do you get the defective values in the skin, or in a page?  Or both?
>
> The $$img markup is supplied by BOLTsnippets, and is set directly to 
> $imgPath...
>
> If the above info doesn't help, let me know. Maybe I can setup a demo
> system and reproduce what you are experiencing. Not sure what you are
> describing but as to your question, if set properly, you should get
> the second of the two values. Though your aliasing could affect
> whether or not those links actually work.
>
> Cheers,
> Dan
>
>
> On Sun, Mar 21, 2010 at 6:45 PM, Markus <[email protected]> wrote:
>> Good hint, although it is not working. I set the absolute path and
>> noticed:
>>
>> $$img = boltwire/farm/img
>> $$farm = http://localhost:8888/boltwire/farm
>>
>> $$img should be either ../boltwire/farm/img or 
>> http://localhost:8888/boltwire/farm/img
>> but certainly not boltwire/farm/img.
>>
>> Doesn't that proof that BoltWire outputs a wrong path? $$img has
>> nothing to do with clean URLs in the first place, does 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.
>
>

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