Smilie Creator

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
Richio747
Registered User
Posts: 49
Joined: Thu Feb 19, 2009 7:39 am
Contact:

Re: Smilie Creator

Post by Richio747 » Fri Feb 27, 2009 2:20 am

Using 3.0.4
'Have checked and rechecked everything, flushed the cache and refreshed the template,
but I get this error when clicking to make a post:
WHITE PAGE

Code: Select all

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/explorer/public_html/includes/bbcode.php on line 75
Line 75: $str = array('search' => array(), 'replace' => array());

I suppose it's because I'm attempting to use it with AeroBlue. :o
Neither the prosilver nor the subsilver smilie_creator.html works.

Oh well, it was worth a try. :(

User avatar
Dr.Death
QA Team
Posts: 363
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death » Fri Feb 27, 2009 3:43 pm

Hi,

you have an syntax error in your edited includes/bbcodes.php

Please link your edited bbcode.php, so we can check your problem.

Maybe there is only a missing character a few lines before or you deleted a special braket:

Code: Select all

	function bbcode_second_pass(&$message, $bbcode_uid = '', $bbcode_bitfield = false)
	{
Doc.

User avatar
Richio747
Registered User
Posts: 49
Joined: Thu Feb 19, 2009 7:39 am
Contact:

Re: Smilie Creator

Post by Richio747 » Fri Feb 27, 2009 4:44 pm

Re: BBCode syntax error.

Thank you for looking.
Somethings I can do, but this is beyond me.
http://www.ozarkcountyforums.com/bbcode-error.zip

Update:
Just as a link (even from the root) resulted in a blank file. ???
Anyway, I copied it to the desktop and it opened fine, so I zipped that up.
Link corrected.

User avatar
Richio747
Registered User
Posts: 49
Joined: Thu Feb 19, 2009 7:39 am
Contact:

Re: Smilie Creator

Post by Richio747 » Fri Feb 27, 2009 5:20 pm

'Multitasking this morning, but I checked to make sure I'd redone both edits as previously installed.
(I had to uninstall, as it left the board useless - even in a pre-lauch state)
Well, I'd missed the second edit, so now the file is as it was when I first received the error.

That "hanging" closing bracket } thingy on line 76 bothered me, but the install file didn't include it, so I didn't either

'Seems to me that the "find" for the 2nd edit was part of larger routine and that the addition should have been after that closing } bracket.

But what do I know? I'm only a chimp.

User avatar
Dr.Death
QA Team
Posts: 363
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death » Fri Feb 27, 2009 8:34 pm

You have edit the includes/bbcode.php at the wrong place.

Take a closer look at this posting: http://www.phpbb.com/community/viewtopi ... 5#p6246755
Doc.

User avatar
Richio747
Registered User
Posts: 49
Joined: Thu Feb 19, 2009 7:39 am
Contact:

Re: Smilie Creator

Post by Richio747 » Sat Feb 28, 2009 12:45 am

Thank you. I see the error.
I won't have a chance to test it out until Sunday, though.

UPDATE:
I did have some time. 'Works like a charm!
Thank You!

Zhono
Registered User
Posts: 1
Joined: Wed Apr 01, 2009 9:31 pm

Re: Smilie Creator

Post by Zhono » Wed Apr 01, 2009 10:26 pm

Is it possible to edit text2schild.php to use larger smilies? Like ones that are about 48x64?

User avatar
Dr.Death
QA Team
Posts: 363
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death » Sat Apr 04, 2009 10:20 am

You are free to edit the text2schild.php

But i don't support these mofifcations ;-)
Doc.

User avatar
bobocop
Registered User
Posts: 175
Joined: Wed May 19, 2004 10:46 pm
Contact:

Re: Smilie Creator

Post by bobocop » Sun Apr 05, 2009 9:21 pm

Hi, this is a great mod.
I have it installed in my 3.04 board and works perfectly.

The one thing i would like to do is to be able to add bigger smilies (as poster above)
I know that's not supported, but can you at least point me into which line of code i should mess with?

I added a smiley just a bit wider.
smilie31.jpg
smilie31.jpg (2.7 KiB) Viewed 723 times
but this is how it looks with the sign
test.jpg
test.jpg (5 KiB) Viewed 723 times
as you can see it cuts off the arm on the smiley

Can you point me to which line of code to fix that please.

User avatar
Dr.Death
QA Team
Posts: 363
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death » Tue Apr 07, 2009 6:22 pm

FIND:

Code: Select all

imagecopy ($img, $smilie, ($width / 2 + 6), ($height - 24), 0, 0, 23, 23); // Copy image tile  
REPLACE WITH:

Code: Select all

imagecopy ($img, $smilie, ($width / 2 + 6), ($height - 24), 0, 0, 38, 38); // Copy image tile  
But be carefull...if someone uses a short "text", the smilies will cut off, because of the short shield box.

The main problem with bigger smilies is: The width of the smilie box depends of the written text and the font-size.

Code: Select all

//Main work here
$smilie                = imagecreatefrompng("{$phpbb_root_path}images/smilie_creator/smilie" . $smilie . ".png");
$schild                = imagecreatefrompng("{$phpbb_root_path}images/smilie_creator/schild.png");
$img                = imagecreate($width, $height); 
Later the smilie will be attached to the textbox.
If the smilie is bigger than the textbox, the smilie will be cut off. Thats the main problem.

Just play around with the $width variable and some copy commands...... it's your turn ;-)
Doc.

User avatar
Ahri89
Registered User
Posts: 516
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: Smilie Creator

Post by Ahri89 » Sun May 24, 2009 9:34 pm

This mod is very nice jeje but i cant use "¿" this mod not support UTF-8 no? Thanks :D
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD

User avatar
A_O_C
Registered User
Posts: 2383
Joined: Sun Jul 01, 2007 11:26 pm
Location: phpbb_

Re: Smilie Creator

Post by A_O_C » Sun May 24, 2009 11:35 pm

Ahri89, from the first page, third post:
Dr.Death wrote:Only plain text is allowed
;)

gmvasek
Registered User
Posts: 7
Joined: Sun Nov 20, 2005 10:57 am
Location: Czech Republic
Contact:

Re: Smilie Creator

Post by gmvasek » Wed Jul 01, 2009 5:33 am

prudil wrote:Your script doesn't accept diacritic...
For example: ěščřžýáíéůú ěščřžýáíéůú ěščřžýáíéůú
Image
And many others... try this:
I maybe solved it:

In current version IT IS possible to make characters like ěščřžýáíé work. I have tested it on my localhost. This solution works with most GD libraries and will support any iso-8859-2 character. Iconv must be enabled on the server.

OPEN text2schild.php
FIND:

Code: Select all

$text             = utf8_decode(request_var('text', '', true));  
REPLACE WITH:

Code: Select all

$text             = request_var('text', '', true);  
FIND:

Code: Select all

$text = htmlspecialchars_decode($text);  
BEFORE, ADD:

Code: Select all

$text = iconv('UTF-8', 'ISO-8859-2', $text);  
Screenshots:
Before
Image
After
Image


Or it is possible to rewrite the script to use imagettftext instead of imagestring, which will solve the problem probably with all UTF-8 characters.

updown
Registered User
Posts: 542
Joined: Sat Jan 05, 2008 6:53 am

Re: Smilie Creator

Post by updown » Wed Jul 01, 2009 10:52 am

And by the way: Imagemagick-support for animated Smilie-GIFs would also be VERY nice ;)

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: Smilie Creator

Post by autinhyeu » Wed Jul 01, 2009 11:04 am

gmvasek wrote:
prudil wrote:Your script doesn't accept diacritic...
For example: ěščřžýáíéůú ěščřžýáíéůú ěščřžýáíéůú
Image
And many others... try this:
I maybe solved it:

In current version IT IS possible to make characters like ěščřžýáíé work. I have tested it on my localhost. This solution works with most GD libraries and will support any iso-8859-2 character. Iconv must be enabled on the server.

OPEN text2schild.php
FIND:

Code: Select all

$text             = utf8_decode(request_var('text', '', true));  
REPLACE WITH:

Code: Select all

$text             = request_var('text', '', true);  
FIND:

Code: Select all

$text = htmlspecialchars_decode($text);  
BEFORE, ADD:

Code: Select all

$text = iconv('UTF-8', 'ISO-8859-2', $text);  
Screenshots:
Before
Image
After
Image


Or it is possible to rewrite the script to use imagettftext instead of imagestring, which will solve the problem probably with all UTF-8 characters.
don't work for me :(
phpinfo
phpinfo
untitled.PNG (9.52 KiB) Viewed 563 times
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

Locked

Return to “[3.0.x] MOD Database Releases”