[DEV] Puzzle

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
dmzx
Registered User
Posts: 769
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

[DEV] Puzzle

Post by dmzx » Fri Oct 16, 2015 6:28 am

Extension Name: Puzzle
Author: femu, dmzx

Special thanks to: martin

Extension Description:
With this extension you can offer a image puzzle game for your users.

Extension Version: 1.0.1

Version 1.0.1
Code update

Screenshots:
Image
Image
Image
Image

Extension Download:
http://www.dmzx-web.net/downloadsystemcat?id=10

Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `puzzle`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `puzzle` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at (your forum root)/ext/dmzx/puzzle/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Puzzle` under the Disabled Extensions list, and click its `Enable` link.
Last edited by dmzx on Tue Jan 19, 2016 8:25 pm, edited 2 times in total.
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

Lehrling
Registered User
Posts: 43
Joined: Tue Aug 13, 2013 12:52 pm

Re: [DEV] Puzzle

Post by Lehrling » Mon Jan 18, 2016 2:11 pm

Hi,
I put an image into ext/dmzx/puzzle/puzzles, but it doesn't show up. When I want to open the image I get No route found for "GET /ext/dmzx/puzzle/puzzles/Wiese2.jpg".
What is wrong?

User avatar
dmzx
Registered User
Posts: 769
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [DEV] Puzzle

Post by dmzx » Mon Jan 18, 2016 7:03 pm

Lehrling wrote:Hi,
I put an image into ext/dmzx/puzzle/puzzles, but it doesn't show up. When I want to open the image I get No route found for "GET /ext/dmzx/puzzle/puzzles/Wiese2.jpg".
What is wrong?
Did you also add the images in ACP options under Puzzle management?
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [DEV] Puzzle

Post by noth » Mon Jan 18, 2016 7:14 pm

what a brilliant idea :mrgreen: marvellous, pretty refreshing to see such a different idea suddenly land, NICE ONE dmzx!! so many great ideas :D

Lehrling
Registered User
Posts: 43
Joined: Tue Aug 13, 2013 12:52 pm

Re: [DEV] Puzzle

Post by Lehrling » Mon Jan 18, 2016 7:34 pm

In ACP options under Puzzle management I added Wiese2.jpg, which is the name of the image.

User avatar
wkuzma
Registered User
Posts: 389
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [DEV] Puzzle

Post by wkuzma » Tue Jan 19, 2016 6:56 pm

I have the same problem of the picture of the puzzle not showing
I put ambush.jpg into ext/dmzx/puzzle/puzzles
added in acp ambush.jpg

name ambush
disc test2
image name ambush.jpg

puzzle shows but no image of the puzzle to play with
Ambush

Description:

Test 2

Difficulty





Move: Click and move
Rotate: Double-click
Flip vertically: Hold [SHIFT] and double-click
Flip horizontally: Hold [ALT] and double-click

Jane Doe
Registered User
Posts: 145
Joined: Thu Aug 11, 2005 12:35 pm

Re: [DEV] Puzzle

Post by Jane Doe » Tue Jan 19, 2016 8:17 pm

In a local testboard the mod generates links to the images with a wrong path.
Path generated is:

Code: Select all

http://127.0.0.1/phpbb3/app.php/ext/dmzx/puzzle/puzzles/testimage.jpg
So no wonder the images can't be found.

User avatar
dmzx
Registered User
Posts: 769
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [DEV] Puzzle

Post by dmzx » Tue Jan 19, 2016 8:25 pm

New version see first post
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
tahoebuff
Registered User
Posts: 1427
Joined: Tue Jul 20, 2004 12:33 am
Location: Nevada
Name: Michael
Contact:

Re: [DEV] Puzzle

Post by tahoebuff » Wed Jan 20, 2016 7:02 am

Puzzle works great. The only thing I find not working is the puzzle pieces mix flipped, regardless if the option "simple mixed" is ticked yes or no.

silberfuchs
Registered User
Posts: 36
Joined: Mon Oct 27, 2008 6:17 pm

Re: [DEV] Puzzle

Post by silberfuchs » Wed Jan 20, 2016 8:36 am

Great news, it' s working now!

Holger
Registered User
Posts: 1752
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Puzzle

Post by Holger » Wed Jan 20, 2016 10:01 am

Nice one! Thanks!

User avatar
wkuzma
Registered User
Posts: 389
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [DEV] Puzzle

Post by wkuzma » Wed Jan 20, 2016 10:57 pm

tahoebuff wrote:Puzzle works great. The only thing I find not working is the puzzle pieces mix flipped, regardless if the option "simple mixed" is ticked yes or no.
The new version now shows the pictures and I have the same results as stated above.
Otherwise it woks great.

User avatar
donsenilo
Registered User
Posts: 303
Joined: Wed Oct 08, 2014 6:23 pm
Name: Markus
Contact:

Re: [DEV] Puzzle

Post by donsenilo » Thu Jan 21, 2016 8:29 am

hi

very nice extension !

But is it possible to add a button "Next Puzzle" and remove "Description:" if the description-field is empty ?

Where is the "PUZZLE_BACKLINK" ?

And can guests use the puzzle ?


Btw ...
I have the common.php translated to german (mayby not perfect, but I've tried my best):

Code: Select all

<?php
/**
*
* @package phpBB Extension - Puzzle
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'COPYRIGHT_OWN'					=> '<strong>Powered by DM Puzzle</strong><br />&copy; 2010, 2011 by femu at <a href="http://die-muellers.org" onclick="window.open(this.href); return false">Die Muellers Dot Org</a>',
	'OWN_COPYRIGHT'	=> '&copy; 2015 <a href="http://www.dmzx-web.net" onclick="window.open(this.href); return false">dmzx-web.net</a>',
	'PLAYING_PUZZLE'				=> 'spielt gerade DM Puzzle',
	'PUZZLE_BACKLINK'				=> '%sGo on to the next puzzle%s',
	'PUZZLE_DESCRIPTION'			=> 'Beschreibung',
	'PUZZLE_FALSE'					=> 'false', // Never change this language string!!!
	'PUZZLE_FLIP_X'					=> 'Horizontal wenden',
	'PUZZLE_FLIP_X_EXP'				=> 'Taste [ALT] halten und Doppel-Klick',
	'PUZZLE_FLIP_Y'					=> 'Vertikal wenden',
	'PUZZLE_FLIP_Y_EXP'				=> 'Taste [SHIFT] halten und Doppel-Klick',
	'PUZZLE_IMAGE_MISSING'			=> 'Dieses Puzzle-Bild existiert nicht ! Bitte benachrichtige den Administrator &uuml;ber das Fehlen dieses Bildes:<br /><br /><strong>%1$s</strong><br />',
	'PUZZLE_LEVEL'					=> 'Schwierigkeitsgrad:',
	'PUZZLE_LEVEL_1'				=> 'Sehr einfach',
	'PUZZLE_LEVEL_2'				=> 'Einfach',
	'PUZZLE_LEVEL_3'				=> 'Noch immer einfach',
	'PUZZLE_LEVEL_4'				=> 'Etwas schwieriger',
	'PUZZLE_LEVEL_5'				=> 'Schwierig',
	'PUZZLE_LEVEL_6'				=> 'Sehr schwierig',
	'PUZZLE_LEVEL_7'				=> 'Extrem schwierig',
	'PUZZLE_MIX'					=> 'Mischen',
	'PUZZLE_MOVE'					=> 'Bewegen',
	'PUZZLE_MOVE_EXP'				=> 'Klicken, halten und bewegen',
	'PUZZLE_NAVIGATION'				=> 'Puzzles',
	'PUZZLE_NO_PUZZLES'				=> 'Aktuell sind keine Puzzles verf&uuml;gbar. Bitte informiere den Administrator dar&uuml;ber.',
	'PUZZLE_PREVIEW'				=> 'Vorschau',
	'PUZZLE_ROTATE'					=> 'Rotieren',
	'PUZZLE_ROTATE_EXP'				=> 'Doppel-Klick',
	'PUZZLE_SOLVE'					=> 'Aufl&ouml;sen',
	'PUZZLE_SOLVED'					=> 'Gratulation ! Du hast das Puzzle gel&ouml;st !',
	'PUZZLE_TITLE'					=> 'DM Puzzle',
	'PUZZLE_TITLE_DEFAULT_EXPLAIN'	=> 'Nachfolgend findest du ein zuf&auml;llig ausgew&auml;hltes Puzzle.<br />Es gibt unterschiedliche Einstellungen (je nachdem, welche vom Administrator eingestellt wurden).<br /><br />Um das Puzzle zu Starten, klicke auf <strong>Mischen</strong>.<br /><br /><strong>Hinweis: </strong>Nicht vergessen, dass die Puzzle-Teile auch horizontal sowie vertikal gewendet werden k&ouml;nnen !<br /><br /><strong>Viel Vergn&uuml;gen mit unseren Puzzles !</strong><br /><br />',
	'PUZZLE_TITLE_EXPLAIN'			=> 'Nachfolgend findest du ein zuf&auml;llig ausgew&auml;hltes Puzzle.<br />Du kannst den Schwierigkeitsgrad selbst einstellen.<br /><br />Um das Puzzle zu Starten, klicke auf <strong>Mischen</strong>.<br /><br /><strong>Hinweis: </strong>Nicht vergessen, dass die Puzzle-Teile auch horizontal sowie vertikal gewendet werden k&ouml;nnen !<br /><br /><strong>Viel Vergn&uuml;gen mit unseren Puzzles !</strong><br /><br />',
	'PUZZLE_TRUE'					=> 'true', // Never change this language string!!!
));

User avatar
noth
Registered User
Posts: 2472
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [DEV] Puzzle

Post by noth » Sat Feb 06, 2016 8:28 am

Lehrling wrote:In ACP options under Puzzle management I added Wiese2.jpg, which is the name of the image.
I see where the image goes but what are optimum dimensions for this ext?

should you look for an image 500x500? what's the best?

User avatar
Fast_Eddie
Registered User
Posts: 206
Joined: Tue Jun 09, 2015 8:32 pm
Name: Ed

Re: [DEV] Puzzle

Post by Fast_Eddie » Sun Feb 07, 2016 12:16 am

Just a suggestion ? Ad a timer to solve and save/display best times?

Post Reply

Return to “Extensions in Development”