4 users online. Create an account or sign in to join them.Users

Search

The best I could find on documentation is this and the old IF docs

Is version 1.0.2 included in 2.0.2 bugfree now?

My main question is about the whitelist rules; How to set this up? For example if I was to pull pictures from a picasa feed I would need to add this rule:

http://picasaweb.google.com/data/feed/base/user/myusername/*

Because thats where the feed is pulled from, or rather this:

http://lh3.ggpht.com/_someuniquecodehere_whichrepresentstheuser,ithink/*

Because it seems this is the server th eimages are stored at google. However since the subdomain changes randomly from time to time(lh3, lh4,...), load balanced i guess, can we use this;

 *.ggpht.com/_someuniquecodehere_whichrepresentstheuser,ithink/*

And just using one * in the field will simply get external pictures to work, albeit usdafe?

And the notation of external pictures;

<img src="{$root}/image/1/100/100/external/www.google.com/intl/en_ALL/images/logo.gif" />

is the correct way? I found this here

Considering I am trying this on alocal install, should i change permissions of the htacces file, or any settings in the manifest?

I've put together some documentation for the JIT image function in the official documentation based on the previous forum posts and the instructions that came with the plugin. It's a work-in-progress, but I did test the JIT stuff on my local MAMP install and it seemed to work just as described.

To do the whitelist rules for external images in Symphony 2.0.2 and up, you have to install the plugin (it comes with the install) and on the preferences page, in Symphony, add your "Trusted Sites." Leave empty to disable external linking. Single rule per line. Add * at end for wild card matching.

Hope this helps.

If anyone finds info about the JIT plugin that isn't in the documentation, please let me know. Thanks!

Thanks, it was a case of FindTFM isntead of RTFM ;-) I have been looking at the off. docs, but under built in tools which has a link to an empty page so might want to change that...

As for whitelisting: the wildcard* only seems to work at the end of the url, so in order to guaranty the least latency when pulling from feeds that use loadbalancing serving pictures on different subdomains (I assume picasaweb does this, the pictures are retrieved on either subdomaisn, but links are randomly generated) you shoudl include all those subdomains, like so:

http://lh3.ggpht.com/userid/*
http://lh4.ggpht.com/userid/*
http://lh5.ggpht.com/userid/*
http://lh6.ggpht.com/userid/*

When using external images in mode 0, you should omit the 0, or it doesn't work;

image/1/path  NOT  image/0/1/path

what does add these urls to your whitelist do exactly? good timing b/c i'm having issues just swapping the img src with images being fed in via a picasaweb feed.

just add the 4 lines above, with YOUR userid, or *, but then a hacker could make your install proces all kinds of pictures....

Add them on the "preferences" page in Symphony's admin area.

@newnomad I'll work on correcting the documentation. Thanks for the info.

@newnomad, i understand what to do, but i'm wondering what does that do exactly? what can you do with those urls then?

@wtdtan Those links are the external sites you are allowing Symphony to access and pull and re size images.

If you're just using the images linked in the Picassa feed as is, you don't need to worry about this extension. If you're using the image link and asking Symphony to re size the image to your custom dimensions, then you need to whitelist any site you plan on getting the images from.

Can someone please, please help me? I’m having the hardest time finding the JIT image function documentation. I’m stuck on a big problem where I need to use the JIT image function. Could someone who knows how to use it point me in the right direction.

I need to know how to resize and external image to say 40px by 40px. Also, how would I resize a local image?

Thanks!

@bzerangue You can resize a local image using this URL structure.

http://localhost/image/2/40/40/1/assets/images/testing.jpg

@rainerborene - Thanks!

I found how to do an external one via Alistair’s post here, the problem is I’m getting the following error…

Error: Connecting to that external site is not permitted.

Another person was having this same problem in Alistair’s thread, I mentioned above, but I tried there explanations and still get that same error.

What does your whitelist look like?

Where is the whitelist? See next comment…

The whitelist in preferences?

I have the external site listed, *.external.com, listed in there.

Currently, I’m running JIT v. 1.02, do you think this could be a problem? I’ll update to the lastest one and see if that corrects the issue.

Can anyone help me define what is what in the JIT Image Function URL setup?

http://www.example.com/image/1/50/50/1/externalurl.com/images/1.jpg

Is this basically saying…

http://www.example.com/image/{external-image}/{width}/{height}/{no-cropping}/externalurl.com/images/1.jpg

Would pulling a local image look like this?

http://www.example.com/image/2/50/50/1/images/local.jpg

http://www.example.com/image/{internal-image}/{width}/{height}/{no-cropping}/images/local.jpg

The first number is the mode (resize, resize and crop, etc). If I remember correctly, it’s the last 1 that designates that it’s external.

I think the problem might be that you need an asterisk at the end of the whitelist entry, as per Max’s comment here.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details