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?
viewtopic.php?f=10&t=8743
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Thumbnails Path, how to?
Re: Thumbnails Path, how to?
var urlobj; function BrowseServer(obj) { urlobj = obj; OpenServerBrowser( '/some dir /admin/editor/filemanager/browser/default/browser.html?Type=Image&Connector=../../connectors/php/connector.php', screen.width * 0.5, screen.height * 0.5 ) ; } function OpenServerBrowser( url, width, height ) { var iLeft = (screen.width - width) / 2 ; var iTop = (screen.height - height) / 2 ; var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; sOptions += ",width=" + width ; sOptions += ",height=" + height ; sOptions += ",left=" + iLeft ; sOptions += ",top=" + iTop ; var oWindow = window.open( url, "BrowseWindow", sOptions ) ; } function SetUrl( url, width, height, alt ) { document.getElementById(urlobj).value = url ; oWindow = null; }<input name="img" type="text" id="img" size="80" maxlength="100" /> <button type="button" onclick="BrowseServer('img');">...</button></td>Re: Thumbnails Path, how to?
I'll give it a try, and will post the results here.
thank you
Re: Thumbnails Path, how to?
Re: Thumbnails Path, how to?
http://www.ckfinder.com/demo
Re: Thumbnails Path, how to?
Re: Thumbnails Path, how to?
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:
$insertSQL = sprintf("INSERT INTO tblguine (type, daydate, img, txtimg, imgday, active) VALUES (%s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST['type'], "int"), GetSQLValueString($_POST['daydate'], "date"), GetSQLValueString($_POST['FilePath'], "text"), GetSQLValueString($_POST['txtimg'], "text"), GetSQLValueString($_POST['imgday'], "int"), GetSQLValueString($_POST['active'], "int"));now:
$somename_var=explode("/", $_POST['FilePath']); $ii=1; while($somename_var[$ii]) { $_POST['FilePath']=$somename_var[$ii]; $ii++; } $insertSQL = sprintf("INSERT INTO tblguine (type, daydate, img, txtimg, imgday, active) VALUES (%s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST['type'], "int"), GetSQLValueString($_POST['daydate'], "date"), GetSQLValueString($_POST['FilePath'], "text"), GetSQLValueString($_POST['txtimg'], "text"), GetSQLValueString($_POST['imgday'], "int"), GetSQLValueString($_POST['active'], "int"));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?
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!