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");
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);
25 $functionbody = <<< END
29 \$url = str_replace("&","&",\$matches[1]);
30 \$url = explode("?",\$url);
32 \$url[1] = explode("x",\$url[1]);
33 \$width = \$url[1][0];
34 \$height = \$url[1][1];
37 return "<embed class=\"VideoPlayback\" type=\"application/x-shockwave-flash\" src=\"\$url\" width=\"\$width\" height=\"\$height\"/>";
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);