Notification types

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Scam Warning
Locked
User avatar
Weird Sis
Registered User
Posts: 4
Joined: Mon Jul 06, 2015 10:49 pm

Notification types

Post by Weird Sis » Mon Jul 06, 2015 10:59 pm

Hi, I'm trying to develop a phpBB template. It's total rebuild so I have to make things almost from scratch - changing css files only isn't enough.

I'm working now on notifications pop-up box and I need to know what types of notifications there are. I see variables like:

Code: Select all

{nocations.REFERENCE}, {notifications.FORUM}, {notifications.REASON}
But it isn't enough. I need to know what kind of REFERENCE or REASON it is. Could someone explain to me what kinds of notifications are possible and/or how to trigger them on my testing version on phpBB?

I would be very greatful.

Cheers,
Filip. :)

User avatar
david63
Registered User
Posts: 16173
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Notification types

Post by david63 » Tue Jul 07, 2015 5:35 am

Those three template variables are just that - template block variables, exactly the same as any other template block variable.

There can be no definitive list of notification types as extensions can, and do, add new ones.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Weird Sis
Registered User
Posts: 4
Joined: Mon Jul 06, 2015 10:49 pm

Re: Notification types

Post by Weird Sis » Tue Jul 07, 2015 11:57 am

I know what they are but my problem is that I don't know how it suppose to look. {notifications.FORUM} will be a forum name, but the rest of them - I'm not so sure.

But nevermind, I'll just test it. Thanks for trying to help anyway. ;)

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: Notification types

Post by Arty » Tue Jul 07, 2015 7:37 pm

Easiest way to figure it out is to find php code where those variables are set. Grep php files for assign_block_vars, then filter by array key. For example, for your loop code would look like this:

Code: Select all

$template->assign_block_vars(array('notification' => array(stuff here));
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

User avatar
Weird Sis
Registered User
Posts: 4
Joined: Mon Jul 06, 2015 10:49 pm

Re: Notification types

Post by Weird Sis » Wed Jul 08, 2015 12:26 am

Thanks, that's a big help. I'll try to dig through these php files. Btw. I found really easy way to find out what kinds of notifications there are - I just headed to notifications setting. It was that simple and yet I didn't think about it earlier.

Locked

Return to “[3.1.x] Styles Support & Discussion”