Jump to content

Recommended Posts

Posted

Hi Marcus, 

Thanks for the response, I really appreciate it. I've installed the latest version but having the same issue, my PW install is 3.0.42 Master, PHP version 7.0.

If I remove the FlagPages user permissions in the module settings, on the frontend I do get the 'You need to grant flagging permissions first!' output. When I apply the permission for superuser, $flags->renderList(); outputs blank.

Posted

Ah, I see. renderList() won't output anything when no page is flagged in the first place. You can see renderList as a result listing. Once you use renderLink, flag at least one page renderLink should output this very page

Posted

Apologies for the typo Marcus, I actually meant renderLink() will not ouput the link to add the page as a flag.

Posted

Hm, when you turn ProcessWire debug mode on (in site/config.php), do you get any warnings?

Could you paste the call to renderLink() here? Does it contain an "echo"?

Posted

edit: The reason I was getting no ouput was that I didn't have SessionHandlerDB installed. Probably a rookie mistake, but I'd started implementing this module for testing as admin before I added front end login/registration functionality. 

Thanks for your help with this great module, I can see many uses for it. Do you have a BTC address so I can make a donation for your work?

Posted

This is really strange. What other Modules do you have installed (asking this question feels a little "WordPress" ;))?

  • Like 2
Posted

Hi Marcus,

I had no other non-core modules installed at the time, it was the lack of SessionHandlerDB being activated on the basic profile that caused me issues. 

It's working beautifully now!

However, my next step is implementing this as an option within each item of a selector list!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...