3D FlipBook - Change settings based on user role or login status

t***o@bewisesolutions.com
2020-09-17
2020-09-20

Hi,

I was wondering if there is a way to for example disable to print/save option for only the guest users? So the ability to programmatically change the options by user role/login status? I have tried forcing CSS or JavaScript, but the flip-book is inside an Iframe

I hope you can help me with this.

Kind regards,

Replies

a***r@3dflipbook.net
2020-09-20
2020-09-20

Edit the plugin code or you use book ready function to remove the buttons when you need:

function ready(scene) {
jQuery(scene.view.getContainer()).find('.cmdSave,.cmdPrint').remove();
} ready
t***o@bewisesolutions.com
2020-10-10
2020-10-10

Hi, This does not seem to solve the issue. The ready() gives an undefined scene variable. Where should this be placed? Also, is there no way of doing this on higher level? Now its sort of dirty trick of removing them. Is there no hook or a way to overwrite the default-book-view.html?

a***r@3dflipbook.net
2020-10-13
2020-10-13

This code should be inserted in Ready function for the book edit dialog or in settings to do it globally. There is no other way using this plugin.

Log In to leave a comment