Back to vBulletin 3.8 Add-ons

Jigzone.com BB Code - Embed Puzzles in your forums - (BBCode)
Mod Version: 1.00, by BirdOPrey5

vB Version: 3.8.x Rating: (4 votes - 5.00 average) Installs: 10
Released: 19 Aug 2010 Last Update: Never Downloads: 29
Not Supported Re-usable Code Translations External Content  

http://www.jigzone.com is a free website where you can upload photos and make jigsaw puzzles out of them. These puzzles can then be embedded into your forum using this BB Code, like you would a YouTube video.

Jigzone offers many options in terms of how to embed the puzzle and in how many pieces (and what shaped pieces) your photo should be broken into. For simplicity's sake I have hard coded this BB Code as a traditional 20 piece jigsaw. I will explain what needs to be changed for other options.

After being embedded users will have options to change the shape and number of pieces from the options that will appear to the left of the puzzle.

Live Demo: http://www.juot.net/forums/showthread.php?p=852997#post852997

Add a New BB Code

Title: Jigzone Puzzle
BB Code Tag Name: puzzle
Replacement:
Code:
<script src="http://www.jigzone.com/zes?i={param}&amp;z=6" type="text/javascript"></script><noscript><a href="http://www.jigzone.com/puzzles/{param}">Link to Puzzle</a></noscript>
Example:[puzzle]5F14EE77238[[/puzzle]
Description: Embedded Puzzles powered by http://www.jigzone.com.
Use Option: No
Button Image: (optional)
Remove Tag If Empty: Yes
All Disable Options: Yes

------
This code makes a 20 piece classic shaped jigsaw puzzle. The part of code that decides this is the part: &amp;z=6

6 = 20 piece classic jigsaw
0 = 48 piece classic jigsaw
5 = 6 piece classic (too easy!)
18 = 41 pieces "Tetris" Blocks
30 = 154 piece classic (Hard!)
34 = 240 piece squares (Weird!)
33 = 247 piece triangles (Crazy!)

For a complete list make a puzzle at Jigzone and play with the options, look at the embed code to see how the number after "z=" changes to see what number corresponds to your preferred puzzle.
------

To make one you need to sign up for an account at http://www.jigzone.com and upload a photo or image. You will then be given link and embed codes. Go to the first link code it will look something like:
Code:
<a href="http://www.jigzone.com/puzzles/5F14EE77238?z=0&amp;m=AE250BFF3C.930EFB0"><img src="http://www.jigzone.com/im/pCut/0.png" alt="Click to Mix and Solve" style="width:400px;height:300px;margin:4px;padding:0;border:1px solid #999;background:transparent url(http://www.jigzone.com/puz/zemThumb?p.up.M.U5.P0.32u0i:jpg)"/></a>
The number you need is from the line: http://www.jigzone.com/puzzles/5F14EE77238?z=0&amp;m=AE250BFF3C.930EFB0">
All you need is the puzzle code, in this case: 5F14EE77238

You put the "Puzzle Code" in between the "puzzle" tags:
[puzzle]5F14EE77238[/puzzle]

As the embed code uses JavaScript you may need to reload the page after submitting to see the puzzle, and of course you must have JavaScript enabled. If you don't have JS enabled you'll get a link to the puzzle instead.

I have hard coded the initial options as a 20 piece classic jigsaw but before you start the puzzle you can use the options on the left to change the shape and number of pieces to your liking.

-----

Notice: The 'puzzle code' must be entered exactly as it is from the link code provided, including the fact it MUST be in UPPERCASE- CE14EEB7547 for example...
If you have "Prevent Shouting" enabled you will have to disable it-
VBulletin Options -> Message Posting and Editing Options -> Prevent Shouting

Please mark as installed if you use this.

Check My Profile for other BB Code enhancements. They work on all versions.

Screenshot Attached:
&stc=1&d=1282230253
&stc=1&d=1282230253

Download the .txt file for a copy of the Install instructions.

Download

File Type: %1$s jigzone bbcode.txt (3.4 KB, 25 downloads)

Screenshots

Click image for larger version
Name:	ss_puzzlebefore.jpg
Views:	155
Size:	141.6 KB
ID:	121037   Click image for larger version
Name:	ss_puzzleafter.jpg
Views:	93
Size:	121.4 KB
ID:	121038  

Similar Mods

BB Code Enhancements BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code) vBulletin 4.x Add-ons
BB Code Enhancements BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code) vBulletin 3.8 Add-ons
Profile Enhancements URL, BB code & Embed code information under album images vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024