diff options
-rw-r--r-- | manifest.xml | 3 | ||||
-rw-r--r-- | permissions.php | 4 | ||||
-rw-r--r-- | sp_compatibility_test.php | 3 | ||||
-rw-r--r-- | views/default/widgets/feed_reader/view.php | 18 |
4 files changed, 19 insertions, 9 deletions
diff --git a/manifest.xml b/manifest.xml index 7c0ad5e97..a01aa6fc1 100644 --- a/manifest.xml +++ b/manifest.xml @@ -1,8 +1,9 @@ <?xml version="1.0" encoding="UTF-8"?>
<plugin_manifest>
<field key="author" value="Cash Costello" />
- <field key="version" value="0.1" />
+ <field key="version" value="0.2" />
<field key="description" value="SimplePie Feed Integrator." />
<field key="website" value="" />
<field key="copyright" value="Cash Costello 2009" />
+ <field key="elgg_version" value="2009022701" />
</plugin_manifest>
diff --git a/permissions.php b/permissions.php index a67b610e9..6f06a0268 100644 --- a/permissions.php +++ b/permissions.php @@ -16,6 +16,8 @@ }
</style>
+<div class="contentWrapper" style="margin:0; min-height:340px;">
+
<div id="elggreturn">
<a href="javascript:history.go(-1)">Return to Tools Administration</a>
</div>
@@ -32,7 +34,7 @@ ?>
</div>
-
+</div>
<?php
$content = ob_get_clean();
diff --git a/sp_compatibility_test.php b/sp_compatibility_test.php index 81825020a..638a13cf0 100644 --- a/sp_compatibility_test.php +++ b/sp_compatibility_test.php @@ -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(); diff --git a/views/default/widgets/feed_reader/view.php b/views/default/widgets/feed_reader/view.php index a4611772e..a069a5a1f 100644 --- a/views/default/widgets/feed_reader/view.php +++ b/views/default/widgets/feed_reader/view.php @@ -1,5 +1,5 @@ +<div class="contentWrapper"> <?php -// http://simplepie.org/support/viewtopic.php?id=643 global $CONFIG; if (!class_exists('SimplePie')) @@ -19,9 +19,13 @@ $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> |