Simple status box for the sidebar.
[elgg_plugins.git] / contenttoolbar / KNOWN_BUGS
blob1cd7a17e46bd03b4c2e674ad2340777a75661466
1 Google videos doesn't show
2 --------------------------
3 In Elgg 0.7 and repository version:
4 - The contenttoolbar doesn't show.
5     If you couldn't see the contentoolbar check if the following line
6     of code exists in 'units/weblogs/weblogs_posts_add.php' and
7     'units/weblogs/weblogs_posts_edit.php':
9     $buttons = run("display:content:toolbar");
10     if(!empty($buttons)){
11       $body.=$buttons;
12     }
14 - Google videos doesn't show
15   In 'units/weblogs/weblogs_text_process.php' check that:
17     if($run_result = run("video:text:process",$run_result)!=null){
18         $run_result = run("video:text:process",$run_result);
19     }
21   It there instead of:
23             // Videos
24             
25             $functionbody = <<< END
26                 
27             \$width = 240;
28             \$height = 200;
29             \$url = str_replace("&amp;","&",\$matches[1]);
30             \$url = explode("?",\$url);
31             if(count(\$url)==2){
32               \$url[1] = explode("x",\$url[1]);
33               \$width = \$url[1][0];
34               \$height = \$url[1][1];
35             }
36             \$url = \$url[0];
37             return "<embed class=\"VideoPlayback\" type=\"application/x-shockwave-flash\" src=\"\$url\" width=\"\$width\" height=\"\$height\"/>";
38                 
39 END;
40             // $run_result = preg_replace_callback("/\{\{video:([A-Za-z0-9\.\:\_\-\/\\?\=\&\+]+)\}\}/i",create_function('$matches',$functionbody),$run_result);
41             // $run_result = preg_replace_callback("/\{\{video:([^}]+)\}\}/i",create_function('$matches',$functionbody),$run_result);
42             $run_result = preg_replace_callback("/\{\{video:([^}]+)(\?([0-9]+)x([0-9]+))?\}\}/i",create_function('$matches',$functionbody),$run_result);