V valdi Customer Nov 2, 2013 #1 Hi, Is it possible to set the image size in the options for the field Quiz Description? Users insert for large images. What to do? Upvote 0
Hi, Is it possible to set the image size in the options for the field Quiz Description? Users insert for large images. What to do?
Dylan Former Developer Nov 7, 2013 #2 Sorry about that, did count on that happening heh. For now, a quick way to fix it is open dbtech/vbquiz/actions/quiz.php Find PHP: $quiz_data['rules'] = convert_url_to_bbcode($quiz_data['rules']); Before that add PHP: $quiz_data['quiz_desc'] = str_replace('<img src', '<img width="250" src', $quiz_data['quiz_desc']); That will fix the images for now. If you create a feature request to add an acp option to limit the description image width I'll add it in the next release.
Sorry about that, did count on that happening heh. For now, a quick way to fix it is open dbtech/vbquiz/actions/quiz.php Find PHP: $quiz_data['rules'] = convert_url_to_bbcode($quiz_data['rules']); Before that add PHP: $quiz_data['quiz_desc'] = str_replace('<img src', '<img width="250" src', $quiz_data['quiz_desc']); That will fix the images for now. If you create a feature request to add an acp option to limit the description image width I'll add it in the next release.
V valdi Customer Nov 7, 2013 #3 Very Thanks! Wonderful, please also add the code for the iframe - for video from YouTube. Last edited: Nov 7, 2013