Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin is not working (?anymore?) #1

Open
WillemJansen opened this issue Oct 2, 2013 · 5 comments
Open

plugin is not working (?anymore?) #1

WillemJansen opened this issue Oct 2, 2013 · 5 comments

Comments

@WillemJansen
Copy link

Hello everyone,

first of all thank you very much for this plugin, I am looking forward to use it on my private website as soon as possible!

Unfortunately, the password plugin seems not to be working with the current version of koken!

What I did:

  • Created an album & put two test pictures in it
  • I installed the plugin (It appeared under Settings->Plugins)
  • I configured it to protect the whole subfolder "weddingpictures"
    (h**t://xxxxxx.de/weddingpictures)
  • I enabled the plugin
  • I put "weddingpictures|test" under "Pages & Passwords"
  • I saved the inputs
  • I disabled "Template caching" under Site publishing
  • I restarted apache2

What happened:

  • I could still see the pictures as if they had no password protection at all

Any idea what I could do different?
Kind regards,
Willem

@bhays
Copy link
Owner

bhays commented Oct 3, 2013

Hi Willem,

I haven't used or tested the plugin since around version .6 or .7 of Koken, so there is a decent chance it doesn't work properly anymore.

I'll have a look in the next couple of days and let you know if things are still workable or not.

Cheers,

ben

@WillemJansen
Copy link
Author

thx!

@WillemJansen
Copy link
Author

Hi Ben,

any news on the plugin? If you have any directions for me, I could probably try to fix it as well ...

Willem

@bhays
Copy link
Owner

bhays commented Oct 9, 2013

Hi Willem,

I tested it over the weekend with no success. I didn't get a chance to debug anything, so I only know that it doesn't work the way it used to. Unfortunately, I won't be able to look into it more at this time due to other work.

If you want to try to fix it, I'd first look at the hook used to capture the output from Koken and then make sure the URL matching is correct.

ben

@hjochman
Copy link

hjochman commented May 2, 2018

Hi Ben,

thanks for the plugin. I got it working again in the current koken version (0.22.24).

Simply change the construct function to:
function __construct()
{
$this->register_filter('site.output', 'logins');
//$this->url = self::get_current_url();
$this->url = $_SERVER[REQUEST_URI];
}

Hanspeter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants