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
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 »

anyway to make the hand holding the sign yellow? i think it ugly being green. i tried to color the schild.png image yellow, but that didnt work. :|
User avatar
Dr.Death
Registered User
Posts: 400
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death »

Yes thats possible.

The original script tries to match the smilie hand color with the main color of the attached smilie.

First: change your schild.png with this one:
schild.png
schild.png (269 Bytes) Viewed 1196 times
Now OPEN text2schild.php

SEARCH AND REMOVE the following code lines:

Code: Select all

imagesetpixel($schild, 1, 14, imagecolorallocate($schild, ($smiliecolor["red"] + 52), ($smiliecolor["green"] + 59), ($smiliecolor["blue"] + 11)));
imagesetpixel($schild, 2, 14, imagecolorallocate($schild, ($smiliecolor["red"] + 50), ($smiliecolor["green"] + 52), ($smiliecolor["blue"] + 50)));
imagesetpixel($schild, 1, 15, imagecolorallocate($schild, ($smiliecolor["red"] + 50), ($smiliecolor["green"] + 52), ($smiliecolor["blue"] + 50)));
imagesetpixel($schild, 2, 15, imagecolorallocate($schild, ($smiliecolor["red"] + 22), ($smiliecolor["green"] + 21), ($smiliecolor["blue"] + 35)));
imagesetpixel($schild, 1, 16, imagecolorat($smilie, 5, 14));
imagesetpixel($schild, 2, 16, imagecolorat($smilie, 5, 14));
imagesetpixel($schild, 5, 16, imagecolorallocate($schild, ($smiliecolor["red"] + 22), ($smiliecolor["green"] + 21), ($smiliecolor["blue"] + 35)));
imagesetpixel($schild, 6, 16, imagecolorat($smilie, 5, 14));
imagesetpixel($schild, 5, 15, imagecolorallocate($schild, ($smiliecolor["red"] + 52), ($smiliecolor["green"] + 59), ($smiliecolor["blue"] + 11)));
imagesetpixel($schild, 6, 15, imagecolorallocate($schild, ($smiliecolor["red"] + 50), ($smiliecolor["green"] + 52), ($smiliecolor["blue"] + 50)));
Doc.
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 »

awesome! thanks!
Texuga
Registered User
Posts: 180
Joined: Thu Sep 21, 2006 4:31 pm
Location: Portugal - Lisbon

Re: Smilie Creator

Post by Texuga »

Edited: solved!
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 »

ok, how to remove the extra space below the text (or add extra space above the text)?
User avatar
Dr.Death
Registered User
Posts: 400
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death »

Open the text2schild.php

FIND:

Code: Select all

$height = (sizeof($output) * $fontheight) + 40;
Maybe try this :
REPLACE WITH:

Code: Select all

$height = (sizeof($output) * $fontheight) + 36;
It depends from the installed or used font:
//Maybe we have to tweak here a bit. Depends on the font...
$width = ($character_count * $fontwidth) + 40;
$height = (sizeof($output) * $fontheight) + 36;
Doc.
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 »

yup, that was it, thanks!
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 26938
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Smilie Creator

Post by Paul »

MOD Updated to version 1.0.5
See first post for Download Link
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development
User avatar
Origin30
Registered User
Posts: 122
Joined: Wed Sep 19, 2007 1:41 pm

Re: Smilie Creator

Post by Origin30 »

After installing 1.0.5, whenever a smilie is posting within a topic, it sends it all out of line.
See here:
Image

Any ideas, I've re-gone through edits and purged cache again, still the same.
The topics are fine until a smilie is created.
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 »

what is new in 1.0.5? :D

i am pretty sure i am running 1.0.4, any security reasons to update?
User avatar
Dr.Death
Registered User
Posts: 400
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death »

@ A_O_C : Changes are listed in the history ;-)
No security update, only changes to meet once more the coding guidelines ( moved HTML code out of the *.php files into the *.html files )

@ Origin30: Could you provide a link to your board and a testuser ?
Doc.
User avatar
Dr.Death
Registered User
Posts: 400
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: Smilie Creator

Post by Dr.Death »

A little bug was introduced into version 1.0.5

If you select in the smilie creator popup the first available smile ( smilie1.png ) the script returned a "undefined" instead of the value "1".

Here is the fix:

OPEN text2schild.php

FIND:

Code: Select all

if ($smilie == 'standard')
REPLACE WITH

Code: Select all

if ($smilie == 'undefined' || $smilie == 'standard')
Doc.
madshark
Registered User
Posts: 89
Joined: Wed Jun 11, 2008 4:27 pm

Re: Smilie Creator

Post by madshark »

If you want to add it advanced quick reply by Z3u5

open styles/prosilver/template/quickreply_body.html
find

Code: Select all

<!-- IF S_SHOW_SMILEY_LINK -->
               <br /><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=350,resizable=yes,scrollbars=yes,WIDTH=300'); return false;">{L_MORE_SMILIES}</a>

Add after

Code: Select all

  <br /><a href="{U_SMILIE_CREATOR}" onclick="popup(this.href, 450, 600, '_phpbbsmilies'); return false;">Smilie Creator</a>     


not sure if this is the 100% correct way but works for me ;)
madshark
Registered User
Posts: 89
Joined: Wed Jun 11, 2008 4:27 pm

Re: Smilie Creator

Post by madshark »

something strange happending here ...

all the smileys display perfectly except the first one ... it shows "image" in lettering

any ideas ?
User avatar
MartectX
Translator
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: Smilie Creator

Post by MartectX »

madshark wrote:something strange happending here ...

all the smileys display perfectly except the first one ... it shows "image" in lettering

any ideas ?
Way to not read at least the latest two posts... look up there!
Locked

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