Cant seem to add live url's to the description box of photos or videos.
Can someone help?
Cant seem to add live url's to the description box of photos or videos. Can someone help? |
Hello! By default system strips html tags from field of photo upload. It's not safe but if u need u may correct (re-declare) method insertData from class BxDolFilesDb (file inc/classes/BxDolFilesDb). Regards |
Thank you for your reply. But can you be more specific? What do I have to change/add? |
this code there is responsible for tags striping: process_db_input($sValue, BX_TAGS_STRIP) so u may instead of BX_TAGS_STRIP set BX_TAGS_NO_ACTION and description filed will pass links, but it's not safe. So better order special mod for this. I shown u easiest example which is better to use for beginning of own work. Regards |
Better solution would be to leave in the tag strip and allow the tag you need. For example, I have a request from my users to let them insert an image as a cover for files so one can see what the file is. So what I would like to do is to keep the tag strip in place and allow them to insert an image tag and not have it stripped out. Geeks, making the world a better place |
I tried this on my demo site and it works perfectly. Before I put in on my live site, may I ask, why it is not safe? this code there is responsible for tags striping: process_db_input($sValue, BX_TAGS_STRIP) so u may instead of BX_TAGS_STRIP set BX_TAGS_NO_ACTION and description filed will pass links, but it's not safe. So better order special mod for this. I shown u easiest example which is better to use for beginning of own work. Regards
|
I tried this on my demo site and it works perfectly. Before I put in on my live site, may I ask, why it is not safe? this code there is responsible for tags striping: process_db_input($sValue, BX_TAGS_STRIP) so u may instead of BX_TAGS_STRIP set BX_TAGS_NO_ACTION and description filed will pass links, but it's not safe. So better order special mod for this. I shown u easiest example which is better to use for beginning of own work. Regards
Because one could insert any tags, including javascript code. What I tried to do was to enable TinyMCE for the description so I could use tinyMCE to allow the tags I needed and let the others be stripped out. However, I ran into problems with that method. I ended up adding TinyMCE to the pop-up editor of files; and this would apply to other modules. What my members have to do is that they first upload the file, then they click on the edit button to add an image. Geeks, making the world a better place |