Search found 3005 matches

by MarkDHamill
Mon Jun 24, 2019 1:16 pm
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

Re: event folder

This suggestion is to make phpBB more usable to board administrators. There are lots of them out there. Basically they don't want to keep updating their stylesheets and templates manually as phpBB updates are released. Many of them have some basic skills like being able to edit a stylesheet or templ...
by MarkDHamill
Sun Jun 23, 2019 11:05 pm
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

Re: event folder

Clearly it wasn't obvious to me that phpBB had this limitation, as it seemed logical that it should and custom styles already provides a level of insulation for custom styles through inheritance from a parent style. Most board owners probably aren't extension developers and it won't be obvious what ...
by MarkDHamill
Sun Jun 23, 2019 3:14 pm
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

Re: event folder

It's a pretty common pattern for board owners to want to make little changes to templates. A custom style allows them to make style changes. I hope the developers of phpBB will allow users to create event folders in their template folders and have it hook into these template events by design. I will...
by MarkDHamill
Sun Jun 23, 2019 1:33 pm
Forum: Extension Writers Discussion
Topic: Best event for blocking traffic and double logging
Replies: 0
Views: 57

Best event for blocking traffic and double logging

Working on a filter by country extension and it seems to be working correctly. I have a few issues and concerns. I am using the core.user_setup_after event for blocking traffic. That's where I check the IP and if it is not associated with allowed countries. I use trigger_error to block traffic: // N...
by MarkDHamill
Fri Jun 21, 2019 10:07 pm
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

Re: event folder

That's essentially what I did. The only problem is that if a template is copied from the base style like prosilver, the base template may have changes made to it over time. The only way to catch those changes is to periodically look at the template comparing it with previous versions and apply them ...
by MarkDHamill
Fri Jun 21, 2019 1:19 am
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

Re: event folder

I was hoping to avoid hard coding in a template itself because upgrades will overwrite them. Thanks for your insight.
by MarkDHamill
Fri Jun 21, 2019 1:06 am
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

Re: event folder

It's not in the extension. It's in the main file system, ex /styles/prosilver/template/event.
by MarkDHamill
Fri Jun 21, 2019 12:54 am
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

Re: event folder

Stuff like this works in my extension too. I assumed the logic would work outside of an extension for minor customizations for clients. Perhaps not?
by MarkDHamill
Fri Jun 21, 2019 12:25 am
Forum: Extension Writers Discussion
Topic: event folder
Replies: 19
Views: 408

event folder

Am I understanding this wrong? This is not part of an extension, just some work I am doing for a client. I am trying to add some text before the username field on the registration form. In the template, I see an event: <!-- EVENT ucp_register_credentials_before --> So I create an event folder /style...
by MarkDHamill
Tue Jun 18, 2019 1:50 am
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 2015

Re: [BETA] Filter by country - version 1.0.2

Awesome suggestions and testing everyone! I'll incorporate these soon (in the middle of a big job at the moment).
by MarkDHamill
Mon Jun 17, 2019 5:43 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 2015

Re: [BETA] Filter by country - version 1.0.2

We don't know if these solutions will work. That will take time.
by MarkDHamill
Mon Jun 17, 2019 4:30 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 2015

Re: [BETA] Filter by country - version 1.0.2

These are excellent ideas. Maybe using a function like htmlspecialchars() is all I need when loading the $countries array. If not, using the array approach sounds promising.
by MarkDHamill
Mon Jun 17, 2019 4:03 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 2015

Re: [BETA] Filter by country - version 1.0.2

I haven't changed any defaults in phpStorm. I would think it would default to UTF-8 encoding.
by MarkDHamill
Mon Jun 17, 2019 3:41 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 2015

Re: [BETA] Filter by country - version 1.0.2

I could apply the change to my GitHub master if you publish it. When I copy and paste it I see the error you described. The question is what's causing it? The page asserts UTF-8 content: <meta charset="utf-8"> This data comes from your language file. I use phpStorm for my editor. I can choose any en...
by MarkDHamill
Mon Jun 17, 2019 3:23 pm
Forum: Extensions in Development
Topic: [BETA] Filter by country - version 1.0.2
Replies: 66
Views: 2015

Re: [BETA] Filter by country - version 1.0.2

In your language file, I see: https://github.com/Solidjeuh/filterbycountry/blob/master/phpbbservices/filterbycountry/language/nl/common.php for Belgium: <option value="BE">Belgie</option> but I do see it for Ukraine: <option value="UA">Oekraïne</option> I installed the Dutch language pack. On the st...

Go to advanced search