How can I change the default path of thumbnails?
This is what I REALLY NEED:
/userfiles/images
/userfiles/images/_thumbs
this is what I get:
/userfiles/images
/userfiles/_thumbs/Images
Can I have a different path's, for each resource type?
Thank's in advance for any valid answer,
Robert
This is what I REALLY NEED:
/userfiles/images
/userfiles/images/_thumbs
this is what I get:
/userfiles/images
/userfiles/_thumbs/Images
Can I have a different path's, for each resource type?
Thank's in advance for any valid answer,
Robert
Re: Thumbnails Path, how to?
It is currently not possible to define different thumnails paths for each resource type without modifying CKFinder code.
You can modify the path where CKFinder should store it's thumbnails, but the subdirectories inside ("Files", "Images") are created automatically based on the resource type name.
Take a look at similar topic:
viewtopic.php?f=10&t=8743
It is relatively easy to force CKFinder to create custom thumbnails when file is uploaded.
We have created thumbnails to make selecting the correct image easier. It seems that you are trying to use auto-generated thumnbails on your page.
Am I right that you are using those thumbnails on your site and create links to enlarged images?
Any suggestions how we could make your life easier, apart from being able to configure thumbnails paths?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Thumbnails Path, how to?
FIle config.php (I use php):
Re: Thumbnails Path, how to?
First things first, thank you wiktor for your reply.
I have figured out a way of doing images/thumbs, the problem is each time the page reloads it creates another subdir with the same content of the previus: images/thumbs/thumbs, and keeps adding new ones at each page refresh.
what I'm trying to do is using ckfinder to create a thumb and normal image to use in gallery type page, you see all thumbs, and when click on it, see the big image.
if the thumbnails are in a subdir of images directory, it´s easy to link to the bigger image, just modify the code of the page like this :
Re: Thumbnails Path, how to?
I'll give it a try, and will post the results here.
thank you
Re: Thumbnails Path, how to?
Almost forgot add this between the <head> and </head> of the page
Re: Thumbnails Path, how to?
Re: Thumbnails Path, how to?
thanks alfonsoml for the reply,
but , , I didn't see it (http://www.ckfinder.com/demo) sorry, since when you dwl the application, it has a sample dir, I generely make my tests with them, this one (pick a file) it's not included.
Back to the example, but when you click, (on demo) and if you pick the mouse img, in Images, for example, in the text field you have:
.
This is what will be record on database, and probalally the thumbs are in something like that:
.
To change the code in a page to point it there ? have to backwards one dir and foward two up dir's, when the path you have store in database is
, it may be tricky, or unless I try to make a sub string on the path to eliminate the path and record only the name of the image? I believe that, in this way is far more easy to display, and link in a web page.
Lets see if it works ...
I'll give it a tray, then I post the results here
Thank you
PS: I'd like to know if someone else, is using somtehing similar to this to have a gallery page or have another ideias to have this done.
Re: Thumbnails Path, how to?
At last, have it as I want (almost) , the name of the image, since I can't figure out, how to make the sub string on the
insert path to database (haven't quit, yet, hehe) resolve for now the problem this way: on the recordset of the gallery page:
[code]
SELECT tbltest.id, sub str(tbltest.img,29,100) as img, img as imgfullpath
FROM tbltest
ORDER BY tbltest.id DESC
[/code]
(It´s not the fastest way to read the db, I know, but I need a solution for now) on the link that show the bigger image [code]<a hr ef="<?php echo $row_rs_img['imgfullpath']; ?>"[/code], for the thumb:
[code]<img src="<?php echo "/userfiles/Thumbnails/Images/".$row_rs_img['img']; ?>[/code]
If someone can point me to right direction on making a sub string on the [code]INSERT[/code], I would be very thankfull.[/code]
For all that post here a BIG THANKS,
For the crew at FCK, keep the good work.
Robert
Re: Thumbnails Path, how to?
Re: Thumbnails Path, how to?
By the way, where can I put some code on ckfinder, for when I delete an image it deletes the entry on database or when I delete one recor, it erases the images?
If you have any idea, that I can work on a solution I would like to know.
Thank you
Re: Thumbnails Path, how to?
well, goes like this, this is what i had:
now:
and that's it!!
Instead of having: /userfiles/images/photo.jpg
in this way, I have in database only the name (that's what I want) of the image: " photo.jpg "
hope it can help someone, who need only the name of image too.
Re: Thumbnails Path, how to?
Re: Thumbnails Path, how to?
To get the filename from a path, you can use basename().
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Thumbnails Path, how to?
Thats a nice script, however I too want to use CKFinder to do the same sort of thing. I found modifying the above code:
To this:
Does allow me to open up the interface and returns the proper results, however, double clicking on them has no effect and will not return the path to the form variable. Any ideas?
Thanks in advance!