3D FlipBook - RTL support with shortcode

x***g@gmail.com
2023-02-11
2023-02-12

Hi there, first thing first, thank you for this amazing plugin!

I would like to know if there is an option to set the direction of the book to RTL via a shortcode, and if there isn't perhaps it will be added in a future update? I can't create the books from the book editor since I get my pdf files from custom pods

thanks in advance for the help

Replies

a***r@3dflipbook.net
2023-02-12
2023-02-12

Use book templates for this:

[3d-flip-book id="1" book-template="template-name"][/3d-flip-book]

When you edit any book in the book editor there is an additional function to save it as the book template. So create a book with properties that you need (RTL) and save it as a book template. Then use this template in shortcodes.

x***g@gmail.com
2023-02-12
2023-02-12

Thanks a lot, that worked like a charm.

one more thing though, I made a test template that now I want to get rid of but couldn't find a place where I can manage my templates, do you know how to delete it?

a***r@3dflipbook.net
2023-02-12
2023-02-12

Unfortunately you will need to wait for next release. There is not delete function in current release.

x***g@gmail.com
2023-02-12
2023-02-12

I tried reinstalling the plugin but that didn't work either, perhaps do you know where the templates are saved so I can delete it from there?

a***r@3dflipbook.net
2023-02-12
2023-02-12

They are stored in the database.

a***r@3dflipbook.net
2023-02-12
2023-02-12

Well, there is a way if you really need to remove it.

x***g@gmail.com
2023-02-12
2023-02-12

I have access to the database I just don't know where to look for, I couldn't find anything from a brief look at it

a***r@3dflipbook.net
2023-02-12
2023-02-12

there is an easier way, please wait a little.

a***r@3dflipbook.net
2023-02-12
2023-02-12

Open book editor and launch debugging console, edit and execute this code:

jQuery.ajax({
  type: 'post',
  dataType: 'json',
  url: ajaxurl,
  data: {
   action: 'fb3d_receive_book_template',
   fb3d_nonce: FB3D_ADMIN_LOCALE.nonce,
   template: {
     name: 'Template Name'
   },
   error: (e)=> {
     console.log(e);
   },
   success: (d)=> {
     console.log(d);
   }
 }
});
x***g@gmail.com
2023-02-12
2023-02-12

Thank you so much for the help I really appreciate it

I encountered the following error: Uncaught ReferenceError: FB3D_ADMIN_LOCALE is not defined

a***r@3dflipbook.net
2023-02-12
2023-02-12

did you open the book editor?

x***g@gmail.com
2023-02-12
2023-02-12

yeah, is there a specific category I need to go to?

a***r@3dflipbook.net
2023-02-12
2023-02-12

no, you need to open any of your book for editing or add a new one, then open debugging console for this window and insert this code.

a***r@3dflipbook.net
2023-02-12
2023-02-12
x***g@gmail.com
2023-02-12
2023-02-12

it worked!

thank you so much for your help, you are amazing

best regards and have a great day!

Log In to leave a comment