]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated to Elgg 1.5 - still need to work on html formatting and images
authorcash <cash.costello@gmail.com>
Mon, 2 Mar 2009 23:03:09 +0000 (23:03 +0000)
committercash <cash.costello@gmail.com>
Mon, 2 Mar 2009 23:03:09 +0000 (23:03 +0000)
manifest.xml
permissions.php
sp_compatibility_test.php
views/default/widgets/feed_reader/view.php

index 7c0ad5e97c0003e1a88cbb726be9a90ea2d3cfc3..a01aa6fc13f4df1e2a9909debda38b5e34d53a5b 100644 (file)
@@ -1,8 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <plugin_manifest>\r
         <field key="author" value="Cash Costello" />\r
-        <field key="version" value="0.1" />\r
+        <field key="version" value="0.2" />\r
         <field key="description" value="SimplePie Feed Integrator." />\r
         <field key="website" value="" />\r
         <field key="copyright" value="Cash Costello 2009" />\r
+        <field key="elgg_version" value="2009022701" />\r
 </plugin_manifest>\r
index a67b610e92bdc55b4093ace83a1ce57ce691c3f2..6f06a02687c01c1420243ff5abafed0504f8743b 100644 (file)
@@ -16,6 +16,8 @@
 }\r
 </style>\r
 \r
+<div class="contentWrapper" style="margin:0; min-height:340px;">\r
+\r
 <div id="elggreturn">\r
   <a href="javascript:history.go(-1)">Return to Tools Administration</a>\r
 </div>\r
@@ -32,7 +34,7 @@
   \r
 ?>\r
 </div>\r
-\r
+</div>\r
 \r
 <?php  \r
   $content = ob_get_clean();\r
index 81825020a2547c1c86f60f3f356b1d1f3f02bfe4..638a13cf0323e5d152742afab0ad97b5e0078ebd 100644 (file)
@@ -141,6 +141,7 @@ table#chart tr.disabled td a {
 </style>
 
 
+  <div class="contentWrapper" style="margin:0;">
 
 <div id="elggreturn">
   <a href="javascript:history.go(-1)">Return to Tools Administration</a>
@@ -148,7 +149,6 @@ table#chart tr.disabled td a {
 
 <div id="site">
   <div id="content">
-
     <div class="chunk">
       <h2 style="text-align:center;">SimplePie Compatibility Test</h2>
       <table cellpadding="0" cellspacing="0" border="0" width="100%" id="chart">
@@ -268,6 +268,7 @@ table#chart tr.disabled td a {
   </div>
 
 </div>
+</div>
 
 <?php
   $content = ob_get_clean();
index a4611772ec393d330a5d9476aee894954d241d6f..a069a5a1f60014ef42ea91c363d1b72cfa9fc219 100644 (file)
@@ -1,5 +1,5 @@
+<div class="contentWrapper">
 <?php
-// http://simplepie.org/support/viewtopic.php?id=643
   global $CONFIG;
     
   if (!class_exists('SimplePie'))
     $feed = new SimplePie($feed_url, $cache_loc);
     
     $num_posts_in_feed = $feed->get_item_quantity();
-    if (!$num_posts_in_feed)
-      echo 'Cannot find feed. Check the feed url.';
-
+    
+    // only display errors to profile owner
+    if (get_loggedin_userid() == page_owner())
+    {        
+      if (!$num_posts_in_feed)
+        echo 'Cannot find feed. Check the feed url.';
+    }
 ?>
   <div class="simplepie_blog_title">
     <h2><a href="<?php echo $feed->get_permalink(); ?>"><?php echo $feed->get_title(); ?></a></h2>
@@ -49,7 +53,9 @@
 
 <?php 
   } else {
-        
-    echo '<p>' . elgg_echo('simplepie:notset') . '</p>';      
+  
+    if (get_loggedin_userid() == page_owner())        
+      echo '<p>' . elgg_echo('simplepie:notset') . '</p>';      
   }
 ?>
+</div>