[3.2][BETA] Board Notices Manager

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Post Reply
User avatar
FredQ
Registered User
Posts: 136
Joined: Sat Nov 01, 2014 10:48 am
Location: Northeast Scotland
Name: Fred Q
Contact:

[3.2][BETA] Board Notices Manager

Post by FredQ » Wed Jul 22, 2015 4:08 pm

Extension Name: Board Notices Manager
Author: FredQ

Extension Description:

This extension will help you manage various notices at the top of all the pages.
This is not the same as an announcement. An announcement is global, whereas notices are contextual.

You can configure the notice to be dismissible (either forever, or it will come back after some time). Guest users can also dismiss a notice (although it will come back if they clear their cookies)

Please note, in version 1 you can only display one notice at a time. Displaying multiple notices is for a version 2

A few examples:
  • Display a message to bots only (the notice is the first piece of text indexed by robots so it's likely to appear as a description on search engine results)
  • Display a message to guests asking them to register
  • Display a welcoming message to users who registered today
  • Display a welcoming message asking you to write an introduction if you never posted yet.
  • Display a reminder to check the board rules forum
  • Display a congratulation message when the user reaches a high rank
  • Congratulations for your 1,000th post
  • Congratulations for your 5th year registration anniversary
  • Some warning that you're browsing a specific forum (like a read-only section)
  • Display a happy birthday message on your birthday.
  • Wishing a happy Christmas day every 25th December
  • Alert that you haven't posted for more than 2 weeks!
  • etc.
This extension is in the beta stage: even though the code base is fairly stable and unit tested, it might not ready to be installed on a production board.

English is not my native language, so feel free to fix the default language files :roll:


Extension Version: Image

Image
As I was upgrading the extension to phpBB 3.2 I realised it was getting difficult to keep a compatibility with phpBB 3.1
Please tell me if you desperately need compatibility with phpBB 3.1 and I'll see what I can do.

Features:

Here are all the rules that are already implemented:
  • Birthday
  • Never posted (the post count includes posts waiting for moderation)
  • Number of active posts equals to (by active I mean visible, which is approved and non-deleted)
  • Number of active posts less than
  • Number of active posts more than
  • Member of a usergroup
  • Member of a usergroup (and is the default group)
  • User is logged in
  • User is not logged in
  • User rank
  • User current board language
  • User current style (works with Guest styles if you have Quick Style extension installed)
  • Current forum the user is browsing
  • Registration anniversary
  • Has not posted for n days
  • On a specific date, and/or day and/or month and/or year
  • Has posted in some selected forums
  • Has not posted in a selection of forums
  • User is at the board index (or not)
  • User has never visited any of these forums
  • User has not visited any of these forums for x day(s)
  • User registered less than x day(s)
  • (New) User registered before a date
  • (New) User registered after a date
  • (New) User is browsing some specific topic(s)
A number of variables can be specified in the notice, like:
{SESSIONID}, {USERID}, {USERNAME}, {LASTVISIT}, {LASTPOST}, {REGISTERED}
and also some other that can be used combined with a rule providing them:
{AGE}, {ANNIVERSARY} (registration date), {RANKID}, {RANK}, {POSTS} (total number of user posts), {GROUPID}, {GROUPNAME} (default group only)

With these variables, you can show personalized messages. The message:

Image

will be displayed like this:

Image

Extension Download:

Github repository: https://github.com/gouarfig/board-notices/

Download this archive: https://github.com/gouarfig/board-notic ... v0.5.3.zip
And copy all the files from the folder inside the zip to the folder [root of your phpBB]/ext/fq/boardnotices/


Screenshots

The Board Notice manager:

Image

An example of notice for guests:

Image


Code Coverage (unit tests & integration tests)

Code is analysed with SonarCloud Image Image
Last edited by FredQ on Tue Jul 16, 2019 5:10 pm, edited 40 times in total.

AdamsUKMB
Registered User
Posts: 16
Joined: Mon Jun 22, 2015 1:53 am

Re: [Dev] Board Notices Manager

Post by AdamsUKMB » Wed Jul 22, 2015 11:29 pm

Sounds cool.

huytrang90
Registered User
Posts: 25
Joined: Mon Jul 06, 2015 2:14 pm

Re: [Dev] Board Notices Manager

Post by huytrang90 » Thu Jul 23, 2015 9:32 am

Sound great.!

Tuqe
Registered User
Posts: 63
Joined: Mon Nov 10, 2014 9:18 am
Location: Turkey

Re: [Dev] Board Notices Manager

Post by Tuqe » Sat Jul 25, 2015 1:58 pm

Hi,

Nice job.
Does one just looks at the home page notice?

User avatar
FredQ
Registered User
Posts: 136
Joined: Sat Nov 01, 2014 10:48 am
Location: Northeast Scotland
Name: Fred Q
Contact:

Re: [Dev] Board Notices Manager

Post by FredQ » Sat Jul 25, 2015 4:03 pm

Tuqe wrote: Does one just looks at the home page notice?
What do you mean?
My board (converted from vBulletin)

User avatar
KlausiMaus
Registered User
Posts: 128
Joined: Sat Nov 15, 2014 4:55 pm

Re: [Dev] Board Notices Manager

Post by KlausiMaus » Sat Jul 25, 2015 4:52 pm

Hi, I'm not able to add a rule, alway in add notice :roll:
Klaus (http://forum.kuhnert.ch/) :: Keep it simple, stupid :!:

User avatar
FredQ
Registered User
Posts: 136
Joined: Sat Nov 01, 2014 10:48 am
Location: Northeast Scotland
Name: Fred Q
Contact:

Re: [Dev] Board Notices Manager

Post by FredQ » Sat Jul 25, 2015 5:05 pm

KlausiMaus wrote:Hi, I'm not able to add a rule, alway in add notice :roll:
Indeed :shock:

The extension is not finished :o
FredQ wrote:Finish the admin console: As of today the rules are to be written directly into the database.
If you add the rules with phpMyAdmin it will work though.
My board (converted from vBulletin)

Tuqe
Registered User
Posts: 63
Joined: Mon Nov 10, 2014 9:18 am
Location: Turkey

Re: [Dev] Board Notices Manager

Post by Tuqe » Sat Jul 25, 2015 10:03 pm

FredQ wrote:
Tuqe wrote: Does one just looks at the home page notice?
What do you mean?
I mean : Does not display more than one notice ? Did you understand?
Image

User avatar
FredQ
Registered User
Posts: 136
Joined: Sat Nov 01, 2014 10:48 am
Location: Northeast Scotland
Name: Fred Q
Contact:

Re: [Dev] Board Notices Manager

Post by FredQ » Sat Jul 25, 2015 11:42 pm

Tuqe wrote: I mean : Does not display more than one notice ? Did you understand?
No, no more than one at a time. I suppose it's technically possible, but not something I had in mind. I could see to include it later. I want to finish the configuration first tough.
My board (converted from vBulletin)

User avatar
FredQ
Registered User
Posts: 136
Joined: Sat Nov 01, 2014 10:48 am
Location: Northeast Scotland
Name: Fred Q
Contact:

Re: [Dev] Board Notices Manager

Post by FredQ » Mon Jul 27, 2015 3:11 pm

Good news everyone!

I've released version 0.1.0 with an almost complete configuration module: You can now add and edit notices (but not delete them yet - although you can deactivate them if needed), and manage all the rules and conditions for each notice.

It's getting there ;)
My board (converted from vBulletin)

Miri4ever
Registered User
Posts: 409
Joined: Sat Mar 07, 2015 11:18 am

Re: [Dev] Board Notices Manager

Post by Miri4ever » Mon Jul 27, 2015 5:59 pm

Wonderful extension really nice and useful. It might be good having a preview function to see how the messages looks like, because a lot of images could not be seen if a lot of custom roles setup.

I have my calendar there at mainpage, how to tell the extension to appear under the calendar if both using the same overall header code to appear ??
Homepage: Terra Oceanica

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [Dev] Board Notices Manager

Post by RMcGirr83 » Mon Jul 27, 2015 6:04 pm

Miri4ever wrote:I have my calendar there at mainpage, how to tell the extension to appear under the calendar if both using the same overall header code to appear ??
That isn't possible with phpBB in it's current form as of today.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Miri4ever
Registered User
Posts: 409
Joined: Sat Mar 07, 2015 11:18 am

Re: [Dev] Board Notices Manager

Post by Miri4ever » Mon Jul 27, 2015 6:46 pm

Maybe but there is something in some extension who tells them to appear first before others. Somewhere is an counter for this, or it has to do with the name or witch exentsion enabled as last so it looks like.
Homepage: Terra Oceanica

User avatar
FredQ
Registered User
Posts: 136
Joined: Sat Nov 01, 2014 10:48 am
Location: Northeast Scotland
Name: Fred Q
Contact:

Re: [Dev] Board Notices Manager

Post by FredQ » Mon Jul 27, 2015 7:05 pm

Miri4ever wrote:Wonderful extension really nice and useful. It might be good having a preview function to see how the messages looks like, because a lot of images could not be seen if a lot of custom roles setup.
Thank you ;)
It won't be easy to do a preview function using your current style, all inside the admin site. What I could propose you is to setup the text with the rule for administrators only or something similar, and when you're happy with it you change the rules for the real ones.
Miri4ever wrote:I have my calendar there at mainpage, how to tell the extension to appear under the calendar if both using the same overall header code to appear ??
Maybe it has to do with the order the extensions were installed? I haven't had a look at how events are managed.

Don't try on a live board though (Uninstalling board-notices will delete all notices)
My board (converted from vBulletin)

falcon23
Registered User
Posts: 46
Joined: Fri Nov 21, 2014 6:42 pm

Re: [Dev] Board Notices Manager

Post by falcon23 » Mon Jul 27, 2015 8:22 pm

Can we make notice for one forum group?

Post Reply

Return to “Extensions in Development”