ACP Announcement Centre

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
slhpss
Registered User
Posts: 3
Joined: Thu Jan 14, 2010 4:33 am

Re: ACP Announcement Centre

Post by slhpss »

I tried searching the post and could not find any instructions on how to do this. I did notice on other user asked if it was possible, but anyways I have played with the mod a little and I'm trying to get it to display the Topic Title for the post as the "Site Announcement Title." with 0 luck... any help?
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: ACP Announcement Centre

Post by iftitaj »

Homeboy wrote:I got it working perfectly, just one question:

How do you setup individual permissions for groups, I want a couple of groups NOT to see the announcement on the index page and when I select the groups to see in the .MOD tab the other groups are still able to view the announcement.
Are you sure you selected GROUPS in SHOW SITE ANNOUNCEMENT TO field just above where you selected specific groups?
smills29
Registered User
Posts: 18
Joined: Mon Jan 04, 2010 9:07 pm

Re: ACP Announcement Centre

Post by smills29 »

Thanks for the mod.
Is it possible to truncate a post, and only a display a limited number of characters when using a topic or forum as the annoucement and providing a "more" link to the post? Some post are quite long and take to much space in the annoucement box.
hikernick
Registered User
Posts: 10
Joined: Thu Aug 21, 2008 6:41 pm

Re: ACP Announcement Centre

Post by hikernick »

Had this mod working nicely on a board on PHPBB 3.0.3. I installed a new board on 3.0.6, and imported the database from the old one, and upgraded it. Board now working nicely. Then I installed this mod again (version 1.2.2) and went through all the file copy and edit stages. I ran the install/index.php (or attempted to) but got the "not admin" error. So I commented out the auth checking section as per a previous post in this thread, and it appeared to run fine.

First I ran the "upgrade to version 1.2.2" option, and went into my ACP. I had a .MODS tab, as before, and it included the options for Announcement Centre, but I couldn't find the page to set the announcements anywhere. Then I realised I'd forgotten to refresh my templates, so I did. My .MODS tab disappeared completely. Nothing I do will bring it back. The modules are still visible under System/Module Maintenance, and the .MODS tab is still present according to that, but it's never displayed. Under .MODS appears Announcement Centre.

I then tried reenabling the install folder, ran index.php again, and this time chose uninstall, followed by new installation. Same result.

The default announcement appears in the forum itself, just fine. Problem is I have no way of administering it except via the database :)

What have I done wrong?

Thanks

Nick
Basement24
Registered User
Posts: 17
Joined: Wed Feb 17, 2010 8:23 pm

Re: ACP Announcement Centre

Post by Basement24 »

I installed this mod on my 3.0.6 board it displays good, but i get thi s error on the ACP went i acess the .MODS for this.

Code: Select all

Parse error: parse error in C:\wamp\www\phpBB3\includes\functions_posting.php on line 68
help :?:
Homeboy
Registered User
Posts: 2
Joined: Tue Feb 16, 2010 1:07 am

Re: ACP Announcement Centre

Post by Homeboy »

iftitaj wrote:
Homeboy wrote:I got it working perfectly, just one question:

How do you setup individual permissions for groups, I want a couple of groups NOT to see the announcement on the index page and when I select the groups to see in the .MOD tab the other groups are still able to view the announcement.
Are you sure you selected GROUPS in SHOW SITE ANNOUNCEMENT TO field just above where you selected specific groups?
Yes I did, and it still shows to the other groups.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL

Re: ACP Announcement Centre

Post by lefty74 »

KillaCam wrote:I install the mod on my forums and then go to install and recieve this error on top of page

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/wlxstrea/public_html/language/en/common.php:1) in /home/wlxstrea/public_html/includes/functions.php on line 4193

Warning: Cannot modify header information - headers already sent by (output started at /home/wlxstrea/public_html/language/en/common.php:1) in /home/wlxstrea/public_html/includes/functions.php on line 4195

Warning: Cannot modify header information - headers already sent by (output started at /home/wlxstrea/public_html/language/en/common.php:1) in /home/wlxstrea/public_html/includes/functions.php on line 4196

Warning: Cannot modify header information - headers already sent by (output started at /home/wlxstrea/public_html/language/en/common.php:1) in /home/wlxstrea/public_html/includes/functions.php on line 4197
how can i fix this? I have deleted everything and tried this 3 time so far ans still get same thing
please make sure you use a decent editor like e.g. notepad++.

when editing language files, also make sure they are saved in UTF8 without BOM format.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL

Re: ACP Announcement Centre

Post by lefty74 »

CassandraLionKnyght wrote:I am sorry if this has been asked before, I did a search and fouldn't find the answer. I started a fresh forum and installed this mod (and only this mod) on it. I had been having trouble getting it installed on another forum so I scrapped it and started fresh. Anyhow!

after following all the instrctuions to install the mod, I recieved the following error on the index page:

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4202: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4204: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4205: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4206: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
as a guest, however, I can still see the announcement. The moment i log it is no longer visable

when I go to log into the ACP, I get the following error.

[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
again, I checked all the files for errors in installing the code. I found none. What did I do and what can I do to fix it? Any help anyone can give would be appreceated.
~Cassie
please make sure you use a decent editor like e.g. notepad++.

when editing language files, also make sure they are saved in UTF8 without BOM format.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL

Re: ACP Announcement Centre

Post by lefty74 »

dmkratt wrote:
dmkratt wrote:I am experiencing the same issue here. bbcode is not being converted on display.
In addition, when I go into the announcements ACP edit page, the previewed display is showing unconverted bbcode as well when it first comes up. If I click preview again it displays correctly.
meggy79 wrote:I have installed the mod but I have a problem. When I try to edit ananouncement draft( try to change the color of the word ana make bold) , I have the result below:
announcements.jpg
I think there is an error in converting bbcode to css code. Please help!
Have triple checked every file modification, uninstalled and reinstalled several times,
cleared templates and cache. Was this ever resolved?

Not yet in production. Every other part of this mod is working correctly, just not correctly rendering bbcode.

Figured out what is occurring.
In debug mode, received these messages:
[phpBB Debug] PHP Notice: in file /includes/functions_announcements.php on line 185: Undefined index: announcement_text_bbcode_bitfield
[phpBB Debug] PHP Notice: in file /includes/functions_announcements.php on line 185: Undefined index: announcement_text_bbcode_options
[phpBB Debug] PHP Notice: in file /includes/functions_announcements.php on line 195: Undefined index: announcement_text_guests_bbcode_uid
[phpBB Debug] PHP Notice: in file /includes/functions_announcements.php on line 195: Undefined index: announcement_text_guests_bbcode_bitfield
[phpBB Debug] PHP Notice: in file /includes/functions_announcements.php on line 195: Undefined index: announcement_text_guests_bbcode_options


This line retrieves the values in includes/functions_announcements.php:

Code: Select all

$sql = 'SELECT *
		FROM ' . ANNOUNCEMENTS_CENTRE_TABLE;
I am on SQL Server, not sure if makes a difference,
but the names such as announcement_text_bbcode_bitfield appear to get trimmed and cannot be found in the resultset. Therefore I converted the above to:

Code: Select all

$sql = 'SELECT *, announcement_text_bbcode_uid as uid, announcement_text_bbcode_bitfield as bf, announcement_text_bbcode_options bo, announcement_text_guests_bbcode_uid g_uid, announcement_text_guests_bbcode_bitfield as g_bf, announcement_text_guests_bbcode_options as g_bo
		FROM ' . ANNOUNCEMENTS_CENTRE_TABLE;
and
converted the line:

Code: Select all

$announcement_text = generate_text_for_display($announcement['announcement_text'],$announcement['announcement_text_bbcode_uid'], $announcement['announcement_text_bbcode_bitfield'], $announcement['announcement_text_bbcode_options']);
to

Code: Select all

$announcement_text = generate_text_for_display($announcement['announcement_text'],$announcement['uid'],$announcement['bf'],$announcement['bo']);
and converted the line:

Code: Select all

'ANNOUNCEMENT_TEXT_GUESTS'		=> generate_text_for_display($announcement['announcement_text_guests'],$announcement['announcement_text_guests_bbcode_uid'], $announcement['announcement_text_guests_bbcode_bitfield'], $announcement['announcement_text_guests_bbcode_options']),
to

Code: Select all

'ANNOUNCEMENT_TEXT_GUESTS'		=> generate_text_for_display($announcement['announcement_text_guests'],$announcement['g_uid'], $announcement['g_bf'], $announcement['g_bo']),
Now, bbcode is getting correctly parsed
thanks for sharing. i am surprised that something would get trimmed though. I have never experienced that before... will keep an eye out tho
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL

Re: ACP Announcement Centre

Post by lefty74 »

slhpss wrote:I tried searching the post and could not find any instructions on how to do this. I did notice on other user asked if it was possible, but anyways I have played with the mod a little and I'm trying to get it to display the Topic Title for the post as the "Site Announcement Title." with 0 luck... any help?
sorry, that isn't supported in this mod atm. if there is enough interest i might consider this for a future version (no promises).
morawcik89 wrote:Hi.
I installed everything, cleared the cache and refreshed template, and I have a problem. In the. MOD tab I do not see it but in the system tab-> Admin Panel->. MOD I see it.
What I can do ?

PS Sorry for my english.
do you have founder status? make sure the permissions are set correctly.

otherwise, try uninstalling and reinstalling via the install/index.php file in case the permissions settings got muddled up.
smills29 wrote:Thanks for the mod.
Is it possible to truncate a post, and only a display a limited number of characters when using a topic or forum as the annoucement and providing a "more" link to the post? Some post are quite long and take to much space in the annoucement box.
no, that's not possible at the moment but it is something i want to look into for a future version
hikernick wrote:Had this mod working nicely on a board on PHPBB 3.0.3. I installed a new board on 3.0.6, and imported the database from the old one, and upgraded it. Board now working nicely. Then I installed this mod again (version 1.2.2) and went through all the file copy and edit stages. I ran the install/index.php (or attempted to) but got the "not admin" error. So I commented out the auth checking section as per a previous post in this thread, and it appeared to run fine.

First I ran the "upgrade to version 1.2.2" option, and went into my ACP. I had a .MODS tab, as before, and it included the options for Announcement Centre, but I couldn't find the page to set the announcements anywhere. Then I realised I'd forgotten to refresh my templates, so I did. My .MODS tab disappeared completely. Nothing I do will bring it back. The modules are still visible under System/Module Maintenance, and the .MODS tab is still present according to that, but it's never displayed. Under .MODS appears Announcement Centre.

I then tried reenabling the install folder, ran index.php again, and this time chose uninstall, followed by new installation. Same result.

The default announcement appears in the forum itself, just fine. Problem is I have no way of administering it except via the database :)

What have I done wrong?

Thanks

Nick
.
same as my answer before basically, can you please check if you have founder status, otherwise you will need to set permissions to view/edit announcement centre in the acp via the permissions tab.
Basement24 wrote:I installed this mod on my 3.0.6 board it displays good, but i get thi s error on the ACP went i acess the .MODS for this.

Code: Select all

Parse error: parse error in C:\wamp\www\phpBB3\includes\functions_posting.php on line 68
help :?:
your edit in includes/functions_posting.php is incorrect, please double check
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
hikernick
Registered User
Posts: 10
Joined: Thu Aug 21, 2008 6:41 pm

Re: ACP Announcement Centre

Post by hikernick »

lefty74 wrote:
hikernick wrote:Had this mod working nicely on a board on PHPBB 3.0.3. I installed a new board on 3.0.6, and imported the database from the old one, and upgraded it. Board now working nicely. Then I installed this mod again (version 1.2.2) and went through all the file copy and edit stages. I ran the install/index.php (or attempted to) but got the "not admin" error. So I commented out the auth checking section as per a previous post in this thread, and it appeared to run fine.

First I ran the "upgrade to version 1.2.2" option, and went into my ACP. I had a .MODS tab, as before, and it included the options for Announcement Centre, but I couldn't find the page to set the announcements anywhere. Then I realised I'd forgotten to refresh my templates, so I did. My .MODS tab disappeared completely. Nothing I do will bring it back. The modules are still visible under System/Module Maintenance, and the .MODS tab is still present according to that, but it's never displayed. Under .MODS appears Announcement Centre.

I then tried reenabling the install folder, ran index.php again, and this time chose uninstall, followed by new installation. Same result.

The default announcement appears in the forum itself, just fine. Problem is I have no way of administering it except via the database :)

What have I done wrong?

Thanks

Nick
.
same as my answer before basically, can you please check if you have founder status, otherwise you will need to set permissions to view/edit announcement centre in the acp via the permissions tab.
OK, I am a little further, thanks. I have no idea what "founder status" is, I'm an admin, but I can't see a role, group, permission or anything called "founder".

Edit: did some hunting and now I have Founder status :)

I discovered that I could edit the permissions as you suggested, and that brought the .MODS tab back. But it is still just the options - no box for setting the announcement.

How do you actually set the announcements? Previously there was a page in .MODS that contained text boxes for the guest and member announcements, and you could change the text there and apply it. Has that facility been removed?

Edit: did some more hunting, and found the main site announcement can be set in the Moderator Control Panel. That only leaves one thing:

I have the option set for "show different announcement to Guests", but there is only one edit box in the MCP. Where is the page to set the Guest announcement, please?

Thanks

Nick
Last edited by hikernick on Fri Feb 19, 2010 6:51 pm, edited 1 time in total.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL

Re: ACP Announcement Centre

Post by lefty74 »

Nick,
founder status means basically you are the board owner.

When you set up your board for the first time, the admin account that is created with it has founder status.

you can see that in the acp part where you administrate users. basically if you look directly in the database, your user_type should be 3 and not 0.

anyway, please have a look at the screenshot in the third post of this topic. This is what your .MODs page should look like.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
hikernick
Registered User
Posts: 10
Joined: Thu Aug 21, 2008 6:41 pm

Re: ACP Announcement Centre

Post by hikernick »

Drat, you answered just as I was away hacking :)

One more point - please see red text in the previous post. Can you enlighten me?

Many thanks. A very useful feature. It's just that it's changed between versions. Is there some link to a documentation page, or something, that I should have read before installing this latest version? Or is it all in the 151 pages of this thread, somewhere?

My .MODS page was like the top one in the screenshot, before, hence I was confused when it changed to the second version.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL

Re: ACP Announcement Centre

Post by lefty74 »

only the site announcement text can be changed by moderators and only if the last announcement is not a post pulled from a forum/topic.

any chance that you can provide me with an admin test account and temporary ftp account so i can have a look as i really do not understand why this should not work for you.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
Demoney420
Registered User
Posts: 33
Joined: Mon Jan 18, 2010 10:37 pm

Re: ACP Announcement Centre

Post by Demoney420 »

Man I think I messed up my forum. ... I ran the install then I edited the files

includes/constants.php,
includes/functions.php,
includes/functions_posting.php,
language/en/common.php,
language/en/acp/common.php,
posting.php,
index.php,
styles/prosilver/template/overall_header.html

then I refreshed my site and It became like this http://www.yforums.net/forum/ even the http://www.yforums.net/forum/adm page as well

Can someone explain to me what I done wrong????

Return to “[3.0.x] MOD Database Releases”