We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Adding Images and Videos to Blog (no icon) [Answered] | Forum

Topic location: Forum home » Support » General Questions
Jose
Jose Mar 25 '13
Hi,


When I am adding or editing a blog the textbox does not show the photo or video icons above.   Any way to fix this?


Thanks


Jose

The Forum post is edited by Alia Mar 28 '13
Purusothaman Ramanujam
For me its shown.

ow_plugins\blogs\controllers\save.php

        $buttons = array(
            BOL_TextFormatService::WS_BTN_BOLD,
            BOL_TextFormatService::WS_BTN_ITALIC,
            BOL_TextFormatService::WS_BTN_UNDERLINE,
            BOL_TextFormatService::WS_BTN_IMAGE,
            BOL_TextFormatService::WS_BTN_LINK,
            BOL_TextFormatService::WS_BTN_ORDERED_LIST,
            BOL_TextFormatService::WS_BTN_UNORDERED_LIST,
            BOL_TextFormatService::WS_BTN_MORE,
            BOL_TextFormatService::WS_BTN_SWITCH_HTML,
            BOL_TextFormatService::WS_BTN_HTML,
            BOL_TextFormatService::WS_BTN_VIDEO
        );

        $postTextArea = new WysiwygTextarea('post', $buttons);
Jose
Jose Mar 25 '13
Thanks!   I am going to check the code.  


Jose
Jose Mar 25 '13
I have checked it out.  I have the exact code like you do; however, it only shows as the attached image...


Where else can I check?


Thanks,

Attachments:
  Capture.JPG (12.5Kb)
Jose
Jose Mar 26 '13
I have found the problem in 


ow_static/pliugins/base/js/htmlarea.js



This code 


for( var j = 0; j < buttons[i].length; j++ ){                        if( $.inArray(buttons[i][j], options.toolbar) !== -1 ){                            tempEl[buttons[i][j]] = window.htmlAreaData.labels.buttons[buttons[i][j]];                        }


was changed to



for( var j = 0; j < buttons[i].length; j++ ){                        //if( $.inArray(buttons[i][j], options.toolbar) !== -1 ){                            tempEl[buttons[i][j]] = window.htmlAreaData.labels.buttons[buttons[i][j]];                        //}



I had to comment two lines


Now it is working.

Jose
Jose Mar 26 '13
Does anybody know where the options.toolbar is defined???
Alia Team
Alia Mar 28 '13
Jose,

Just make sure that you have enabled "Rich Media" in admin panel>>settings>>user settings>>content input.

If "Rich Media" is disabled "photo" and "video" icons disappear.
Alia Team
Alia Mar 28 '13
>>Does anybody know where the options.toolbar is defined???

You will need to post a topic under "Custom Code Modificaitons" section of our forum.
Alia Team
Alia Mar 28 '13
Topic was moved from Bug reports and troubleshooting.
Jose
Jose Mar 28 '13
Thank you Aliia!!!


The Forum post is edited by Jose Mar 28 '13