phpWebSite Manual
phpWebSite Manual

phpWebSite Resources

Mods

3rd Party Mods

Who's Online
There are currently, 7 guest(s) and 0 member(s) that are online.
You are an Anonymous user.
You can register for free by clicking here
No Members are currently logged in.

Announcements

Announcements

The Announcements Module

Introduction

Adam Morton / Edited by RobertK

The Announcements module allows visitors, registered users and site administrators to input important news or announcements for administrative approval to post on the main page. Allowing visitors or registered users to post info quickly and easily via this module gives them a voice on your site. Future announcements can be queued up and automatically posted on their specified date. Expiring announcements can be automatically removed from the Main page on a specified date.

An announcement can consist of several parts. The only required parts are a Subject and a Summary (see Figure 1). Optional parts include a Body, Image, Category, Post
Date,
and Expiration Date. (The announcements module automatically assigns the post and expiration dates for you if you do not elect to change them.)



Creating a New Announcement

Before adding text to an announcement, organize your message. An announcement may be a few short paragraphs "above the fold" or may include a page or more that extends "below the fold" via the Read More hyperlink (Figure 2).


Think of a post date and expiration date as well. When you are ready, follow these steps:


  1. Make sure you are logged into an account that has permission to post announcements.

  2. From the Control Panel, select the Site Content tab.

  3. Find and select the Announcements module.

  4. Click New Announcement in the Main Menu across the top.

  5. Fill out the Subject, Summary, and other parts as neccessary.

  6. Take a moment to proofread your content and double check your settings.

  7. Click Save to save your announcement.

  8. The announcement will be posted on the date specified in Post On (Figure 3).




Deleting an Announcement

First, ensure you want to permanently delete a particular announcement. You can always hide an announcement from public view if you are unsure about deletion (see section below on Hiding or Showing an Announcement). If you are sure you want to delete an announcement, follow these steps:


  1. Make sure you are logged into an account that has permission to delete announcements.

  2. From the Control Panel, select the Site Content tab.

  3. Find and select the Announcements module.

  4. You will be shown a list of Current Announcements.

  5. Locate the announcement you wish to delete and click the Delete button for it under the Action column.

  6. You will be asked to confirm the deletion.

  7. If you are sure, click the Yes button.

  8. Your announcement will be deleted and you will be returned to the announcement listing.


Hiding or Showing an Announcement

The Hide and Show selections will hide an announcement from public view or make it viewable by the public. Follow these steps to hide or show an announcement:


  1. Make sure you are logged into an account that has permission to hide or show announcements.

  2. From the Control Panel, select the Site Content tab.

  3. Find and select the Announcements module.

  4. You will be shown a list of Current Announcements.

  5. Find the announcement you wish to hide or show.

  6. Click the Hide or Show button accordingly for the corresponding announcement in the Action column (Figure 4).

  7. The announcement list will refresh and the announcement will be hidden or viewable.



Announcement Module Settings

The Announcements module offers several settings that allow you to customize the way it displays announcements. The following settings are available (see also Figure 5):


  • Show Announcements Designates whether or not to show announcements on the main page.

  • Show Past Announcements Designates whether or not the Past Announcements block is shown on the main page.

  • Number of announcements shown on home page This is just what it says. If you are showing announcements on your main page, this setting will limit the number of announcements that will be shown at a given time.

  • Number of past announcements shown If you are showing the Past Announcements block on the main page, this setting will limit the number of past announcements to show in that block. Note: past here means "later in the queue," not "expired." Expired announcements are no longer viewable in this block.

To access, change, and save the settings for your Announcements module follow these steps:


  1. Make sure you are logged into an account that has permission to edit the settings for the Announcements module.

  2. From the Control Panel, select the Site Content tab.

  3. Find and select the Announcements module.

  4. Select Settings from the main menu across the top.

  5. Change the settings appropriately.

  6. Click Save Settings to save the changes.




Created on 07/26/2003 12:28 AM by RobertK
Updated on 04/11/2004 09:55 PM by RobertK
 Printable Version

Comments - Please Log In to make a comment
The comments are owned by the poster. We are not responsible for its content.
Forego approval process?
Posted on: 05/26/2004 04:33 PM   By: Anonymous
Any way to have users post without needing approval?

Thanks!

Kevin
kdavis@uvic.ca
Re: Forego approval process?
Posted on: 03/15/2005 09:25 PM   By: Anonymous
has this comment been answered yet or did i miss the boat? i am looking for the same solution. thanks

Monty
Show announcement in block ?
Posted on: 06/20/2004 07:06 PM   By: Anonymous
Is it possible to show announcements via the block module, and the full announcements in the contentarea ?
Re: Show announcement in block ?
Posted on: 06/20/2004 07:09 PM   By: Anonymous
Re: Show announcement in block ?
Posted on: 12/30/2004 06:15 AM   By: Anonymous
Can't get it work.

Instead I get
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hsphere/local/home/bjornrw/snohvit.info/mod/layout/class/Layout.php:829) in /... on line 293

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/bjornrw/snohvit.info/mod/layout/class/Layout.php:829) in ....on line 293
Can you post how this "right lines" are ?
Mount several groups of announcements
Posted on: 08/04/2004 05:08 AM   By: Anonymous
Hello, does anybody know a way to mount the announcements under the submenu items? The scenario is the following:
I have a site, that shows activities in different countries. It has a menu item for each country, containing activities, team, partners, etc. for the corresponding country. I would like to form announcement groups (if possible?) that contain country-specific news and are shown under "country" - "Activities" only, not on homepage. Does anyone have a clue how to achieve such thing?
Expiring
Posted on: 08/14/2004 05:20 PM   By: Anonymous
The announcement do not expire unless the admin touches them. So if you do not login for a while they are visible to the public past the experation date. How can I fix this?...Denny@nextnethosting.net
Viewable only by logged in users?
Posted on: 09/15/2004 02:46 PM   By: Anonymous
Is there a way to make announcements viewable by logged in users only?

I'm trying to use this as a club portal, and don't want non registered users to see announcements, but they show up on the home page anyway! If I hide them, then nobody can see them even if logged in.

Am I missing something in the admin area that will allow me to do this?
Re: Viewable only by logged in users?
Posted on: 09/19/2004 05:19 PM   By: Anonymous
I want to do the exact same thing. I need to limit certain webpages to certain people.
Re: Viewable only by logged in users?
Posted on: 01/01/2005 11:58 AM   By: Anonymous
I use phpwebsite 0.10.0. It has some ways of getting around this. I have a main menu which only appears upon login. I turn anonymous view off on the menu. Now it only appear to logged in users. I then make links to all the listings pages of all the modules (aanounce, webpages , etc...) . I when made mysql runs to change all hidden and active tags to hidden and non-active.

This way any user that makes something public will auto hide. Loggin users still see these on the list if you make a group with those permissions and the user is in the group.

Anyhow I think you can get the idea. As a per page or per object security. It does not really have that yet. But it comes close enough for us. Some of my users cat mearly view pages, some can view and create, some can view ,edit and delete. I just make different groups.

It's all or nothin. But now it's all or nothing by permissions. Half way there you caould say.
Announcements
Posted on: 10/29/2004 07:14 AM   By: Anonymous
What most be the format and max size for images in Annoucements. I can't get a jpg picture in it.
Hack for Announcement
Posted on: 11/11/2004 03:29 PM   By: Anonymous
How can you view the new and past announcements on a seperate page other than the Home page? Basicaly I want to take it off the front page and put it on a seperate page that displays when a user click on an Announcement link on my menu? Any help would be greatly appreciated.

Thanks

Rick
Re: Hack for Announcement
Posted on: 04/03/2005 12:42 AM   By: Anonymous
To acheive what you've described, I created a new web page which in my instance was given a page ID of 7. I then modified the second line in /mod/announce/inc/runtime.php to look like this:
if($GLOBALS['PAGE_id'] == "7") {

instead of what it originally was:
if($GLOBALS['module'] == "home") {
Re: Hack for Announcement
Posted on: 04/30/2005 02:28 AM   By: dpm64
Although you are anonymous, thant was a really good fix - easy to do for non-coders like me!

Thanks a bunch!

David.
http://www.virtualaccesscentre.com
Announcement expiration dates
Posted on: 08/05/2005 08:31 PM   By: Anonymous
Is there a way to automatically make the expiration date field select a date three days after the posted on date rather than a date years from now as it currently does? I use the announcements for our school web site and the principal wants all announcements to end after three days unless absolutely needed.

Any ideas would be appreciated.

-MaestroC
Announcement image on MAIN page?
Posted on: 08/16/2005 02:12 PM   By: Anonymous
I've only been working with phpWebsite for a couple of days and have managed to do nearly everything I wanted. I'm sure most of what's left on my wishlist will soon be accomplished - or at least I'll know it can't be done rather that it's something I don't know how to do.

I've added an image to one of my announcements, but it only shows up if the user clicks on the 'comment' link. Is there some way to set this up so the image is displayed on the main page too?

Thanks!
Dennis
Re: Announcement image on MAIN page?
Posted on: 09/13/2005 01:35 AM   By: Anonymous
Hi Dennis, yes it is possible.

You first need to find the view_small.tpl file which should be located in the \mods\announce\templates directory. You then simply insert {IMAGE} where you would like it located. For example,

--------------------------------

 
{IMAGE}
{SUBJECT}{CATEGORY_ICON}{SUMMARY}
({READ_TEXT}: {HITS}) | {READ_MORE}| {NUM_COMMENTS}
| {EDIT}

--------------------------------

The above will look like www.stmarksclayfield.org
Re: Announcement image on MAIN page?
Posted on: 05/18/2007 10:51 PM   By: Anonymous
"..Simply..."? - Can someone clarify the syntax to be used when adding images to the template?
phpWebSite 1.0.0 - Announcements
Posted on: 01/20/2007 06:20 AM   By: Anonymous
Is there a version of announcements coming out for PHP website 1.0.0 coming out soon...Thanks
free psp games
Posted on: 07/15/2008 04:08 PM   By: Anonymous

PSP Downloads


Let's say you brought a PSP game and after playing for a week, you complete the game or it becomes stale. What then? You have to fork out money to buy another one. As illustrated, it can be expensive in the long run.


Sponsored by Patterson Research
Founded by Robert Kennedy
Powered by phpWebSite