Cube

XF2 Addons Cube 1.2
Adds a Custom BB codes called Cube

Compatible versions
2.0, 2.1, 2.2, 2.3
Description:
Adds a Custom BB codes called Cube.

This add-on uses the AnimCubeJS code to display an animated Rubik's cube.

(Example post)
pic001.webp


(Example of Options page)
pic002.jpg


Setup:
In the src/Andy/Cube directory, copy the following files to your /misc/cube directory:

AnimCube.txt
cube2.php
cube3.php
cube4.php
cube5.php
cube6.php
cube7.php

In the Options page enter the URL for your /misc/cube directory.

How to use:
Add this BB code to a message:
[CUBE=3]move=R U R' U R U2 R'[/CUBE]

Questions and answers:
Q: How many different types of cubes can I add?
A: There are six different BB codes you can use. Choose one of the following:

[CUBE=2]move=R U R' U R U2 R'[/CUBE]
[CUBE=3]move=R U R' U R U2 R'[/CUBE]
[CUBE=4]move=R U R' U R U2 R'[/CUBE]
[CUBE=5]move=R U R' U R U2 R'[/CUBE]
[CUBE=6]move=R U R' U R U2 R'[/CUBE]
[CUBE=7]move=R U R' U R U2 R'[/CUBE]

Q: What is the result if I leave out the cube option? For example: [CUBE]move=R U R' U R U2 R'[/CUBE]
A: It will default to a standard cube.

Q: Can I add parameters?
A: Yes. You can add parameters by using the & and then the parameter.

Example: [CUBE=3]move=R U R' U R U2 R'&supercube=1[/CUBE]

Q: Where can I get a list of the parameters available?
A: Here's a link to the manual:

https://cubing.github.io/AnimCubeJS/animcubejs.html
  • Like
Reactions: akox and 2pacman
shanruto
Author shanruto
Level
10
5,175 pts
1.2 Version
3 Downloads
775 Views
Published
Updated
0.00 star(s) 0 ratings Average Rating (0)
No Tags

More files from shanruto

Top Bottom