Last Update: 27 November 2006
Plugin Name: Easy Announcement
Version: 1.1
Plugin URI: http://www.cypherhackz.net/plugins-themes/easy-announcement/
Description: An easy way to display announcement on your site without have to edit your theme file.
Author: Fauzi Mohd Darus
Author URI: http://www.cypherhackz.net
Download: cypher_easy-announcement.zip
How to Install
- Download the plugin file.
- Extract file cypher_easy-announcement.zip.
- Upload easy_announcement folder into your Wordpress plugin folder.
- CHMOD easy_announcement folder to 755 and announce.txt file to 666.
- Activate the plugin in your Plugins admin panel.
- Put this function < ?php easy_announcement(); ?> in your theme file. Eg: index.php
- Done!
How to Upgrade
- Download the plugin file.
- Extract file cypher_easy-announcement.zip.
- Upload easy_announcement.php to easy_announcement folder to replace the previous version plugin.
- Done!
How to Update the Announcement
- In your Admin Panel, go to Plugins.
- Scroll down to Easy Announcement plugin.
- Under Description there is a hyperlink text “HEREâ€.
- Click on it and update your annoucement.
Version History
-
1.1
- Add Edit Announcement link in the announcement
- Now can use newline instead of using
- Bugs fixed - 1.0
- Initial Release




plugin doesn’t even show after i chmod the appropriate files to 666 as instructed.. so how am i supposed to activate it
please let me know man!
thanks!
the CHMOD used because we want to edit/write to the file. the announcement should display properly after you put the plugin code and activate it. let me know if you still have any problems.
i didnt understand ?? i did CHMOD the files… but the plugin ( in the plugins area) doesnt show… so i cannot even activate it. you understand what im saying?
i guess i know what could be the problem. try download back the plugin and upload file easy_announcement.php into easy_announcement folder. than refresh your plugin page and you will see the activate link. hope this helps.
i did a chmod 777 on the folder and now it is being displayed and it works fine…
any idea why this is?
just a general questions cypher:
what should the permission be on the folder /plugins/ and /wp-content/ and /themes/
any idea?
i’m not sure. like i said in previous comment, we chmod it because we want to write the file.
about the question, chmod them to 755 is just fine.
thanks cypher…. last question… can you add html to it? like a
did you mean put html tag in the announcement? yes you can. try it.
i will
thanks!
I do not understand how to add a plugin.Where and how do I do this.When I download it asks me if I want file saved to disk how do I get it onto my blog.
If I was to give you access could you do it for me…
read my How to Install in the readme included.
if you still got problems, feel free to ask me.
when i activate the plugin and drop the dode in my index.php it breaks my blog.
I get this error: Fatal error: Call to undefined function: easy_announcement() in /home/content/c/m/o/cmolway/html/blog/wp-content/themes/amalgam/index.php on line 5
anything after the easy_announcement code is blank.
any ideas? I tried both CHMOD 666, 755 on the files listed in the readme file.
I tried it again from scratch and now I am getting this error:
Warning: file(): URL file-access is disabled in the server configuration in /home/content/c/m/o/cmolway/html/blog/wp-content/plugins/easy_announcement/easy_announcement.php on line 16
Warning: file(http://www.craigmolway.com/blog/wp-content/plugins/easy_announcement/announce.txt): failed to open stream: no suitable wrapper could be found in /home/content/c/m/o/cmolway/html/blog/wp-content/plugins/easy_announcement/easy_announcement.php on line 16
Warning: implode(): Bad arguments. in /home/content/c/m/o/cmolway/html/blog/wp-content/plugins/easy_announcement/easy_announcement.php on line 17
al least the blog is still there.
the CHMOD breaks the blog. CHMOD 775 causes the second error.
you chmod the folder to 755 and the announce.txt to 777
made the change but it is still giving me an error:
Warning: file(): URL file-access is disabled in the server configuration in /home/content/c/m/o/cmolway/html/blog/wp-content/plugins/easy_announcement/easy_announcement.php on line 16
Warning: file(http://www.craigmolway.com/blog/wp-content/plugins/easy_announcement/announce.txt): failed to open stream: no suitable wrapper could be found in /home/content/c/m/o/cmolway/html/blog/wp-content/plugins/easy_announcement/easy_announcement.php on line 16
Warning: implode(): Bad arguments. in /home/content/c/m/o/cmolway/html/blog/wp-content/plugins/easy_announcement/easy_announcement.php on line 17
does your hosting provider allow you to read from file?
[...] seen such announcements on various blogs, but I haven’t seen a WordPress Plugin other than Easy Announcement WordPress Plugin, which works but could be easier to work with. It would allow text and maybe a graphic and would [...]
[...] Easy Announcement is one that I’ve installed but I’ve yet to add the content to it. This plugin will be useful to add news and info before the blog posts. Stay tuned. [...]
too difficult to find plugin like this, increase the power of wordpress theme.
Great plugin!
I’ve added it to my blog and will use it in future to announce special offers to my subscribers. Your plugin will make sure they won’t miss it.
Currently I just have a Welcome message there.
Thanks again,
thanks for your comments. it motivated me to make more plugins.
My current theme uses sidebar widgets. How can I make the announcement a widget that I can manipulate in my columns?
i’m not sure. maybe i will release this plugin to make it works with widget.
That would be fantastic! I hope it goes really well for you.
[...] Visit [...]
I too was having the same problem that Craig mentions above, and it rang a bell with a similar problem I had before. It is to do with the host, in my case DreamHost. I adapted your plugin to accomodate the solution, which I found here.
Here is my updated version:
function easy_announcement() {$path = get_settings('siteurl') . "/wp-content/plugins/easy_announcement/";
$announcefile = "announce.txt";
$url = $path.$announcefile;
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
// display file
echo $file_contents;
global $user_ID; if ( $user_ID ) {
echo '[Edit Announcement]‘;
}
}
?>
Hope this helps someone.
Sorry. Some of that formatting with the code didn’t work right. And I made a change at the bottom to get the
nl2brthing back to how it was in the original.function easy_announcement() {
$path = get_settings('siteurl') . "/wp-content/plugins/easy_announcement/";
$announcefile = "announce.txt";
$url = $path.$announcefile;
$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
// display file
print nl2br($file_contents);
global $user_ID; if ( $user_ID ) {
echo '[Edit Announcement]‘;
}
}
?>
[...] Easy Announcement (1.1) An easy way to display announcement on your site without have to edit your theme file. By Fauzi Mohd Darus. [...]
[...] Easy Announcement v1.1 by Fauzi Mohd Darus — An easy way to display announcement on your site without have to edit your theme file. New visitors often look in your sidebar for information - it could be about you, a witty quote or updates on the site that really don’t need their own post. Having an easy to edit announcement widget is essential. I change thepinkc’s announcement on a weekly basis, to keep things fresh and make sure that repeat visitors that aren’t subscribed know what is most important or new on the site. [...]
[...] the announcement is temporary, such as a pending maintenance shut down or a special event, try the Easy Announcement WordPress Plugin. It allows you to add a simple announcement to the front page of your blog. The announcement is [...]
Cool plug in. Already use for my site…
http://www.klblues.com/v2/
Keep it up bro!.
[...] Check it out [...]
[...] Easy Announcement (1.1) An easy way to display announcement on your site without have to edit your theme file. By Fauzi Mohd Darus. [...]
Bro…How do I enable my editor and author to update the annoucement? And is it possible to put html or at least image?
Hi,
i really like Easy Announcement, but there is, as far as I see, no templates.php in WordPress 2.5?
What I do now? I copied the old templates.php in my wp-admin-folder, but I don’t really like that.
Thanks for the plugin anyways!
This doesn’t appear to work in Wordpress 2.5
Hi Cypher, I want to make a shoutout on my blog. I want to have more reader friendly version. May I alter your widget for this? If you can do that earlier than me, let me know. I’ll just download yours.
I do not believe this