[BETA] ScribblePad Mod v0.6.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

[BETA] ScribblePad Mod v0.6.0

Postby 0beron » Wed Jul 06, 2005 11:53 pm

MOD Title: Scribble Pad Mod
MOD Description: Puts a scribble pad on the posting screen to allow diagrams/drawings to be added to posts and PMs without an external graphics app.
MOD Version: 0.6.0

MOD Download: http://www.rmf33.co.uk/scribblePad-0.6.0.zip
Alternate download for PCP compatibility: http://www.rmf33.co.uk/scribblePad-0.6.0-overPCP.zip
Last Stable version: N/A

Demo Board: http://www.rmf33.co.uk/phpBB2/
Demo Username: test
Demo Password: asdfgh

Screenshot from v0.4.0:

Image

This MOD allows similar (but fairly basic at the moment) functionality as the MSN handwriting feature to phpBB. The posting screen includes a button marked 'Add Scribble' which when clicked will display a JAVA applet that you can draw on. (The applet is hidden at first to avoid loading the JVM every time you want to post). This is submitted with the post and then displayed in the topic using the GD libraries. It could be useful for discussing math formulae, drawing maps to places, drawing brief diagrams or for anything else where a text explanation would be difficult. Plus it's great if you are a tablet user like me :)

Changes in version 0.6.0:
- Added caching of scribbles to image files.

Changes in version 0.5.1:
- Got rid of compression since it caused problems with some peoples configurations.
- Sorted out some repainting bugs in the drawing applet.

Changes in version 0.5.0:
- ACP control. Scribbles can be controlled in the same way as posting announcements/polls etc. You can effectively switch off scribbles in a forum by restricting scribbles to admin only for that forum.
- Scribbles are compressed in the database.
- scribbleApplet drawing code optimised.

Changes in version 0.4.0:
- Anti-aliased lines and line thicknesses.

Changes in version 0.3.0:
-Added scribble support to the PM system.

Changes in version 0.2.2:
- fixed the MOD file so it might actually work! (oops.... :oops: )

v0.2.1 fixes bug with post previews.
For those with v0.2.0, all you need to do is replace showscribble.php, nothing else in the MOD has changed.

Changes in version 0.2.0:
- Eraser tool!
- Colours!
- Removed check for empty message with non-empty scribble.

Note that scribbles drawn in v 0.1.0 will appear blank in 0.2.0

Please try it out on the demo board or with the linked mod file and report any bugs or suggest improvements and new features.

- Updated status to BETA since the main features are there and working.
Last edited by 0beron on Sun Sep 11, 2005 6:01 pm, edited 16 times in total.
User avatar
0beron
Registered User
 
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Postby Narc0sis » Thu Jul 07, 2005 6:37 pm

this is a cool idea.

for some reason im getting just a gray box and it says in the status bar that the applet is not found
User avatar
Narc0sis
Registered User
 
Posts: 662
Joined: Tue Apr 09, 2002 12:59 am

Postby ScionCrow » Thu Jul 07, 2005 9:14 pm

Neat idea.. I suggest adding an eraser to it. =P And more colors would be nice as well.
No longer supporting phpBB. PM or email me regarding support and you will be ignored. I'm fully done with phpBB and everything.
ScionCrow
Registered User
 
Posts: 3621
Joined: Fri Feb 13, 2004 6:59 am
Location: Darkness

Postby Cybertims » Thu Jul 07, 2005 9:51 pm

Great mod, but I have found it doesnt work with the Rich Text Feature.
Shame really.
Cybertims
Registered User
 
Posts: 69
Joined: Sat Dec 04, 2004 6:30 pm
Location: London UK

Postby 0beron » Thu Jul 07, 2005 10:14 pm

Rich Text Feature? Is that another phpBB mod that clashes with this one?

I'm working on V0.2.0 which includes an eraser tool and colours other than black.
User avatar
0beron
Registered User
 
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Postby ScionCrow » Thu Jul 07, 2005 10:16 pm

Oooh.. I just remembered this about MSN.. it has different thickness in the lines like, thin, medium, and thick or something? That'd be a bit nice.
No longer supporting phpBB. PM or email me regarding support and you will be ignored. I'm fully done with phpBB and everything.
ScionCrow
Registered User
 
Posts: 3621
Joined: Fri Feb 13, 2004 6:59 am
Location: Darkness

Postby Cybertims » Thu Jul 07, 2005 10:19 pm

0beron wrote:Rich Text Feature? Is that another phpBB mod that clashes with this one?

I'm working on V0.2.0 which includes an eraser tool and colours other than black.


Yeah, I have that HotEditor installed as my members love it but It wont work alongside yours.
Cybertims
Registered User
 
Posts: 69
Joined: Sat Dec 04, 2004 6:30 pm
Location: London UK

Postby 0beron » Fri Jul 08, 2005 12:08 am

OK, version 0.2.0 is running on the demo board - that means colours, an eraser and I've got rid of the check for empty messages when there is a non-empty scribble attached. I'll update the download link above tomorrow morning.

ScionCrow wrote:Oooh.. I just remembered this about MSN.. it has different thickness in the lines like, thin, medium, and thick or something? That'd be a bit nice.


Yeah I'd half thought about that. I'd need to learn a bit more about the GD libraries before I tried it but it should't be too hard as long as GD is actually capable of drawing thick lines.
User avatar
0beron
Registered User
 
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Postby DKing » Fri Jul 08, 2005 1:58 am

The eraser doesn't work for me... (firefox, java just installed, WinXPro =P SP2) :? But other than that, it's a great mod... :D Nice job, and I hope it gets validated quickly when it's ready to be submitted! :D
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search
DKing
Registered User
 
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Postby 0beron » Fri Jul 08, 2005 8:57 am

Hmmm - it shouldn't be your OS/browser that is the problem - cos I have the exact same setup. The eraser is fairly basic at the moment in that it only erases a line when the cursor passes within 3 pixels of one of the points on the line - if you drew a line very quickly and the points are far apart (the curved lines are just a bunch of straight segments) the eraser might pass between them. Try erasing a line from the very end of the line where there is guaranteed to be a point. I may well update this to interpolate properly between points.
User avatar
0beron
Registered User
 
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Postby Joe Belmaati » Fri Jul 08, 2005 9:36 am

W2k SP4 latest Java Run Time release. Firefox 1.0.4

No problems on your test site. Very nice :D
Image
User avatar
Joe Belmaati
Registered User
 
Posts: 2111
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Postby 0beron » Fri Jul 08, 2005 9:49 am

OK version 0.2.0 is ready, download link in first post has been changed to point to the new file.

When updating the MOD I found there was an omission in the original MOD file for v0.1.0 so this may be the cause of the trouble for those of you that have tried to install it. Give version 0.2.0 a try and see what happens. The part that was missing was:

Code: Select all
#
#-----[ FIND ]------------------------------------------
#
'L_DELETE_POST' => $lang['Delete_post'],

#
#-----[ AFTER, ADD ]------------------------------------
#
'L_ADD_SCRIBBLE' => $lang['Add_scribble'],
'L_REMOVE_SCRIBBLE' => $lang['Remove_scribble'],
'L_SCRIBBLE' => $lang['Scribble'],
'S_SCRIBBLE_STRING' => $scribble_string,


EDIT : this FIND/ADD should be done in posting.php
Last edited by 0beron on Fri Jul 08, 2005 10:14 am, edited 1 time in total.
User avatar
0beron
Registered User
 
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Postby DKing » Fri Jul 08, 2005 10:09 am

0beron wrote:OK version 0.2.0 is ready, download link in first post has been changed to point to the new file.

When updating the MOD I found there was an omission in the original MOD file for v0.1.0 so this may be the cause of the trouble for those of you that have tried to install it. Give version 0.2.0 a try and see what happens. The part that was missing was:

Code: Select all
#
#-----[ FIND ]------------------------------------------
#
'L_DELETE_POST' => $lang['Delete_post'],

#
#-----[ AFTER, ADD ]------------------------------------
#
'L_ADD_SCRIBBLE' => $lang['Add_scribble'],
'L_REMOVE_SCRIBBLE' => $lang['Remove_scribble'],
'L_SCRIBBLE' => $lang['Scribble'],
'S_SCRIBBLE_STRING' => $scribble_string,

in language/lang_english/lang_main.php


That wouldn't be in lang_main.php, right? Because that is the code that goes into the .php file not the language file
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search
DKing
Registered User
 
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Postby 0beron » Fri Jul 08, 2005 10:11 am

DKing wrote:That wouldn't be in lang_main.php, right? Because that is the code that goes into the .php file not the language file

You're absolutely right - sorry I wrote that down without checking the file. It's in the right place in the MOD file anyway. If I get a chance I'll test the MOD on a clean phpBB install to make sure.
User avatar
0beron
Registered User
 
Posts: 123
Joined: Mon Jul 04, 2005 3:23 pm

Postby Cybertims » Fri Jul 08, 2005 11:34 am

Download link broken :-(
Cybertims
Registered User
 
Posts: 69
Joined: Sat Dec 04, 2004 6:30 pm
Location: London UK

Next

Return to [2.0.x] MODs in Development

Who is online

Users browsing this forum: No registered users and 10 guests