Please enable JavaScript from your browser settings.

The xBook Guide Cover What is an xBook? How to Buy an xBook with Cooins Building Blocks How to Set Paid Content using x-clip Tags How to Set Paid Content with paid_only Class How to Create an xBook Welcome to The Official xBook Guide!
What is an xBook?

An xBook is an online book enhanced with videos, streamlined to its essentials and designed with a fresh, modern user experience.

It's a new option for publishing and selling booklike content online. You are reading one right now.

To buy an xBook, SM Cooins are used.

After finalizing My Two Lives Cancer Story and enjoying its reading experience, I decided to provide an easy access to that format to all. Hence, xBook was born.

DESIGN CHOICES VIDEO EXAMPLE
How to Buy an xBook with Cooins

Cooins are digital coins bought with real money, a feature of ShowMoor Web Payments.

The creator of an xBook can set specific content visible only for those who have bought it.

To buy an xBook, you need enough Cooins to match the price set by its creator. For instance, to buy this xBook with all its content, you would need 3 Cooins. The creator would earn 30 cents after the payment; ten cents per Cooin.

Of course, there's no need for you to buy this guide; the 'example' member has bought already. So, you can just click the Cooin and log in to ShowMoor Test system with these credentials: example / easypeasyas123.

BUYING WITH COOINS
Building Blocks

Generally, an xBook consists of a single HTML file (e.g. xBook.html) and several smaller HTML snippet files.

The structure of an xBook is defined by custom HTML tags. For example, this xBook begins with these definitions:

xBook Custom Tags

Cover image is automatically added below headline. Chapters on the menu are also automatically linked to chapter headings.

The first option on the menu is always 'Cover'.


How to Set Paid Content using x‑clip Tags

There are three x-clips below. The first one is loaded and shown for everyone, the second and third only for those who have bought this xBook.

The paid video is defined with this: <x-clip id="p6">PAID VIDEO</x-clip>

The HTML snippet for the video is fetched from this file on the web server: xbook.showmoor.com/6ec6b7…f0/p6.html

Do note that the snippets for paid content, with ids starting with p, are always fetched from your unique ShowMoorXID folder.

The snippet has an embed code to a video hosted on Streamable.

Code snippet (p6.html) for video embed.

You can use 'example' member as mentioned above to open the paid content.

VISIBLE TO ALL PAID CONTENT PAID VIDEO
How to Set Paid Content with paid_only Class

The blurred and mangled text below has paid_only class. That defines text that is only readable for those who have paid. Here's an example: <x-part class='paid_only'>   <p>This is readable only for the buyers of this xBook.</p> </x-part>

Once again, you can use 'example' member as mentioned above to see the text.


Below is a story generated by Grok. It's clear and visible for buyers of this xBook only.



How to Create an xBook

Here are the steps to make an xBook of your own.

Download xBook.zip.

Upload its contents with folder structure to your website. It should resemble this within your own domain:

Now, when you open xBook.html, you will see this xBook example. Those files provide a good playground for tinkering. Have fun.

CRASH COURSE

Next, let's see how to sell your xBook. The information below supplements the Crash Course video.


You as an xBook creator can set specific content available for those only who have bought it. You also set the price for your xBook.

Here are the steps to add ShowMoor Web Payments into your xBook.

First, you need Creator Access. It's free. Get it here.

After login, select SM Cooin from Creator menu, then Example: xBook from SM Code settings dropdown.

Now, fill in the required fields with your data and click Save Settings.

Finally, Generate SM Code and replace the current one with it on xBook.html file.


Tutorial by ShowMoor 2025