]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Updated VideoList deprecated functions, and removed namespace clash in error messages.
authorPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Mar 2010 14:05:02 +0000 (14:05 +0000)
committerPete Harris <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Mar 2010 14:05:02 +0000 (14:05 +0000)
index.php
start.php
views/default/forms/add.php
views/default/forms/labels/googlevideos.php
views/default/forms/labels/metacafe.php
views/default/forms/labels/vimeo.php
views/default/forms/labels/youtube.php
views/default/videolist/css.php
world.php

index bbeae7cf4f44d16c51336c32b69b13835264c006..c1c1dc01a8ff1062f78c05a8d07c4606f2694ee4 100644 (file)
--- a/index.php
+++ b/index.php
@@ -30,8 +30,7 @@ $title = sprintf(elgg_echo("videolist:home"), "$owner->name");
 
 // Get objects
 $area2 = elgg_view_title($title);
-//set_input('search_viewtype', 'gallery');
-$area2 .= list_entities("object","videolist", page_owner(), 10);
+$area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'videolist', 'container_guids' => page_owner(), 'limit' => 10));
 
 //$area2 .= elgg_view("staticvideo/index");
 
index 0b15243d188566f068cf11a5952ab69743f5909a..e03720309cee2abe33493c96ded903c3791b4f16 100644 (file)
--- a/start.php
+++ b/start.php
@@ -16,7 +16,7 @@ function videolist_init() {
        }
 
        // Extend system CSS with our own styles
-       extend_view('css','videolist/css');
+       elgg_extend_view('css','videolist/css');
 
        // Load the language file - default is english
        register_translations($CONFIG->pluginspath . "videolist/languages/");
@@ -25,7 +25,7 @@ function videolist_init() {
        register_page_handler('videolist','videolist_page_handler');
 
        //extend this plugin for groups
-       extend_view('groups/left_column','videolist/groupprofile_videolist');
+       elgg_extend_view('groups/left_column','videolist/groupprofile_videolist');
 
        // Add a new videolist widget
        add_widget_type('videolist_view',elgg_echo("videolist:widget"),elgg_echo("videolist:widget:description"), 'profile');
index f6d5ed4c2c39b1175b2cc0bef713239a74732057..2da5353b7c7897da54387007ef76e07a7e57209a 100644 (file)
@@ -138,7 +138,7 @@ $body .= elgg_view('input/hidden',array('internalname'=>'guid', 'value'=>$vars['
 $body .= '<p><label>'.elgg_echo("videolist:title_videourl").'<br />';
 $body .= elgg_view("input/text",array('internalname' => 'title_videourl','value'=>$title_add_videourl));
 if($error['no-video'] == 0) {
-       $body .= '<div class="error">'.$error_msg['no-video'].'</div>';
+       $body .= '<div class="videolist_error">'.$error_msg['no-video'].'</div>';
 }
 $body .= '</label></p>';
 
index 41893cea22ab9e54eccc8ed0a36b715e37f6b310..1d422323273c1fc173ff3ca52e8e97ba0f873347 100644 (file)
@@ -19,7 +19,7 @@ $body .= "</div>";
 $body .= "<div style='float:left;width:45%;'>";
 $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> &nbsp;&nbsp;";
 if($error['no-search'] == 0) {
-       $body .= '<div class="error">'.$error_msg['no-search'].'</div>';
+       $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>';
 }
 $body .= "</div>";
 //$body .= "<div>";
index 08edbcfdd5d2a8c103434fa47e5a75070061eb8b..76dabeb251e3945bec3efa3b81edb39dfa47679a 100644 (file)
@@ -19,7 +19,7 @@ $body .= "</div>";
 $body .= "<div style='float:left;width:45%;'>";
 $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> &nbsp;&nbsp;";
 if($error['no-search'] == 0) {
-       $body .= '<div class="error">'.$error_msg['no-search'].'</div>';
+       $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>';
 }
 $body .= "</div>";
 //$body .= "<div>";
index 38ffc17f053940191323fe60b349bba02dad5d68..b890febb7feab4b6d7a7279a6c1adcb13f369b0f 100644 (file)
@@ -19,7 +19,7 @@ $body .= "</div>";
 $body .= "<div style='float:left;width:45%;'>";
 $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> &nbsp;&nbsp;";
 if ($error['no-search'] == 0) {
-       $body .= '<div class="error">'.$error_msg['no-search'].'</div>';
+       $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>';
 }
 $body .= "</div>";
 //$body .= "<div>";
index 37575c0f112bc60bbd552c4b0cf3278819cb4fad..1b557522b550ad062d621b505e5264821b438675 100644 (file)
@@ -19,7 +19,7 @@ $body .= "</div>";
 $body .= "<div style='float:left;width:45%;'>";
 $body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> &nbsp;&nbsp;";
 if($error['no-search'] == 0) {
-       $body .= '<div class="error">'.$error_msg['no-search'].'</div>';
+       $body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>';
 }
 $body .= "</div>";
 //$body .= "<div>";
index 647def87330848de458cabce6e3f2e3fb510d821..e2b9250b3e2211db22d761f8e573e5e995cae089 100644 (file)
@@ -10,7 +10,7 @@
  */
 ?>
 
-.error{
+.videolist_error{
        color:red;
        font-weight:bold;
        font-size:11px;
index 3fbd46ddd38c724942ff77e7dbad9e6e06781db6..263702f61f10603332d53ab815ad7790071adf57 100644 (file)
--- a/world.php
+++ b/world.php
@@ -26,9 +26,7 @@ $title = sprintf(elgg_echo("videolist:search"));
 // Get objects
 $area2 = elgg_view_title($title);
 set_input('show_viewtype', 'all');
-$area2 .= list_entities("object","videolist", 0, 10, $fullview=true, $viewtypetoggle=false,$pagination=true);
-
-//$area2 .= elgg_view("staticvideo/index");
+$area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'videolist', 'container_guids' => page_owner(), 'limit' => 10, 'full_view' => TRUE, 'view_type_toggle' => FALSE, 'pagination' => TRUE));
 
 set_context('videolist');
 $body = elgg_view_layout('one_column_with_sidebar',$area1. $area2);