ZB Block ZB Block
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

ZB Block

Started by Irondutchess, June 16, 2020, 03:38:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Irondutchess

Hi,

Has anyone successfully installed ZB Block https://zb-block.net/ into Coppermine? I would like to know how they did it. Basically what I need to know is, is there a .php file that always gets included before any page load?  I can then put the line of code that calls ZB Block at the top of that page so it is implemented before any page is loaded.

ron4mac

A simpler solution that can be effective is a problem solving captcha.

The secret is to have good Q&A's.
See some ideas here: https://www.phpbb.com/community/viewtopic.php?t=2170168

Irondutchess

Thanks for the reply.

The problem with captcha is it will stop everything that can't solve it.  ZB-Block has a black and a white list so you can choose what can and can't access the site. Also if your site doesn't require a login to view sections of it, then captcha isn't a solution.

ron4mac

The earliest .php file that you could use is your theme's theme.php file. I see you are using the included curve theme. So you would have to copy it as a different folder (or rename it) so it wouldn't get overwritten by a CPG update.

Irondutchess

Adding the code to theme.php didn't work. After some experimenting adding the code to include/init.inc.php gets ZB Block working on all pages in the site including the login page.

So if anyone else wants to implement ZB Block that's the file to use.