In Xoops 2.5.0, the image manager works differently from 2.4.5:
1) For new categories, there is no choice for storage in the database or the uploads folder (only storage in the uploads folder is possible)
2) Images already stored in the database (2.4.5. an earlier) are not previewed correctly in the admin Image Manager. I reported this earlier:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=73081&forum=74&post_id=335374#forumpost335374I also reported these two issues in the Sourceforge bug tracker. Trabis answered that "Images stored in the database are deprecated in Xoops 2.5.0". Is it true ? If it is, then:
1) It is not stated in the release notes of 2.5.0 !
2) There is no script to convert categories stored in the database to categories storing images in the uploads folder.
3) Images from "Categories stored in the Uploads folder" are inserted in in modules, e.g. News, in a very unfriendly way.
Let my explain issue 3):
- If you insert an image using the Image Manager button of the tex editor from a category stored in the database, it looks like:
[img align=left id=1]Image Name[/img]
This code always works, on your test site, after moving your site to another domain.
- If you insert an image from a category that is stored in de uploads folder, using the Image Manager Insert button of the text editor, this image is inserted as:
[img align=left]http://yourdomain/uploads/images/img4d29c79cb6ceb.jpg[/img]
This is a full URL !! If you move your website to another domain (e.g. a testdomain) the links don't work any more. I think it should be:
[img align=left]{XOOPS_UPLOAD_URL}images/img4d29c79cb6ceb.jpg[/img]
or
[img align=left]{X_SITEURL}uploads/images/img4d29c79cb6ceb.jpg[/img]
or
[img align=left]<{$xoops_url}>/uploads/images/img4d29c79cb6ceb.jpg[/img]
However, these (smarty) codes don't work in e.g. news issues.
In summary, 4 issues:
- The deprecation of "images stored in the database" should be added to the release notes of 2.5.0
- Categories storing images in the uploads folder generate user-unfriendly urls in modules such as "News"
- There is no conversion script to convert image categories storing in the database to categories storing in het uploads folder.
- Not converting is an option, but then the "database-images" cannot be previewed in the image-manager
Wouldn't it be better to continue support for images stored in the database in Xoops 2.5 ?
SMEDrieben