[Release] 'Dark Style' phpBB3 Smilies

For style authors to post and receive feedback on 3.0.x styles still in development. Any development styles you wish to use on your live board should be installed with caution!
Scam Warning
User avatar
camm15h
Former Team Member
Posts: 4981
Joined: Wed Jul 30, 2003 1:02 am
Location: Hull, UK
Name: Paul Cammish

[Release] 'Dark Style' phpBB3 Smilies

Post by camm15h » Tue Apr 15, 2008 2:49 pm

Title: 'Dark Style' phpBB3 Smilies
Description: The current phpBB3 smilies altered slightly in order to display correctly on darker styles (removes white pixels around the edges).

Demo: View a comparison
Download: 'Dark Style' phpBB3 Smilies
Compatability: 3.0.0 - 3.0.11
Notes: Simply upload to your 'phpBB3/images/smilies' directory, overwriting the existing smilies. You may need to refresh your browser cache for the changes to appear.

If the smilies appear distorted, correct their dimensions by using the following script (upload to root and execute).
It's also worth mentioning that using these smilies on a light style (like prosilver or subsilver2) makes them look less smooth and more 'square'. I advise you use the normal ones in this case.

Fix smiley sizes (thanks to eviL3):

Code: Select all

<?php
/**
*
* @package secret
* @version $Id$
* @copyright (c) 2008 phpbbmodders
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

$dir = $phpbb_root_path . 'images/smilies/';
if ($dh = opendir($dir))
{
   while (false !== ($file = readdir($dh)))
   {
      if (in_array(substr(strrchr($file, '.'), 1), array('jpg', 'jpeg', 'png', 'gif'), true))
      {
         list($width, $height) = getimagesize($dir . $file);

         $sql = 'UPDATE ' . SMILIES_TABLE . ' SET ' . $db->sql_build_array('UPDATE', array(
            'smiley_width'   => (int) $width,
            'smiley_height'   => (int) $height,
         )) . ' WHERE smiley_url = \'' . $db->sql_escape($file) . '\'';
         $db->sql_query($sql);
      }
   }
   closedir($dh);
}

echo 'Smiley sizes adjusted.';

?>
Need the icons for dark styles too? Have a look here.

User avatar
Raimon
Former Team Member
Posts: 12089
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Raimon » Tue Apr 15, 2008 2:52 pm

Nice Job you done there camm15h , It looks very nice the dark Smilies :D
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

User avatar
Derky
Extension Customisations
Extension Customisations
Posts: 4760
Joined: Sun Apr 10, 2005 9:58 am
Location: Netherlands
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Derky » Tue Apr 15, 2008 5:36 pm

Thanks camm15h, very usefull! :D

ruthc
Registered User
Posts: 172
Joined: Sun Jun 06, 2004 8:54 pm
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by ruthc » Tue Apr 15, 2008 6:03 pm

That's terrific. Just saved me, and a lot of others a bunch of time :)

Ruth
Disclaimer: I get my result from experimenting, not from knowledge of php, styling etc.

User avatar
echo2k5
Registered User
Posts: 197
Joined: Sun May 21, 2006 6:09 pm
Location: 3 paces to the west.
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by echo2k5 » Tue Apr 15, 2008 6:07 pm

Nice! That had to be time consuming. Thanks :D

Realisty
Registered User
Posts: 92
Joined: Sun Jan 21, 2007 5:15 pm

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Realisty » Tue Apr 15, 2008 7:40 pm

Thanks .... they look great .... just what i needed ;)

Squid Nunc?
Registered User
Posts: 51
Joined: Sun Mar 30, 2008 12:21 pm

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Squid Nunc? » Wed Apr 16, 2008 10:16 pm

Great! I can definately use those, thanks!

User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by *Christian* » Wed Apr 16, 2008 10:32 pm

Yipee :)

Are the animated ones still animated?
Proud owner of Bertie 3.0
:: No support via PM or IM ::

User avatar
Raimon
Former Team Member
Posts: 12089
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Raimon » Wed Apr 16, 2008 11:01 pm

yes, see the first post for the demo, and you see it for your self ;)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by *Christian* » Thu Apr 17, 2008 10:33 am

Excellent Work cam15h :)

Thank you very much :D
Proud owner of Bertie 3.0
:: No support via PM or IM ::

User avatar
Brandon05
Registered User
Posts: 316
Joined: Sun Apr 06, 2008 9:14 pm
Location: Grand Rapids, Michigan
Name: Brandon Kaylor
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Brandon05 » Thu Apr 17, 2008 12:00 pm

Ahhh dangit you beat me to it. I was already half way through with editing the smilies to blend into darker skins.

User avatar
Friends4U
Registered User
Posts: 256
Joined: Fri Mar 22, 2002 5:09 pm
Location: Dordrecht, The Netherlands
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Friends4U » Thu Apr 17, 2008 7:13 pm

Do they work on a light background too?
Forums4U - Http://www.Forums4U.nl - Dutch

User avatar
*Christian*
I've Been Banned!
Posts: 884
Joined: Sat Nov 03, 2007 1:35 pm
Location: Location, Location.

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by *Christian* » Thu Apr 17, 2008 7:24 pm

camm15h wrote:...
It's also worth mentioning that using these smilies on a light style (like prosilver or subsilver2) makes them look less smooth and more 'square'. I advise you use the normal ones in this case![/size][/i]
Proud owner of Bertie 3.0
:: No support via PM or IM ::

User avatar
Friends4U
Registered User
Posts: 256
Joined: Fri Mar 22, 2002 5:09 pm
Location: Dordrecht, The Netherlands
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by Friends4U » Thu Apr 17, 2008 7:58 pm

*Christian* wrote:
camm15h wrote:...
It's also worth mentioning that using these smilies on a light style (like prosilver or subsilver2) makes them look less smooth and more 'square'. I advise you use the normal ones in this case![/size][/i]
LOL Sorry for my stupid question...
Forums4U - Http://www.Forums4U.nl - Dutch

ruthc
Registered User
Posts: 172
Joined: Sun Jun 06, 2004 8:54 pm
Contact:

Re: [Release] 'Dark Style' phpBB3 Smilies

Post by ruthc » Thu Apr 17, 2008 8:56 pm

Too bad the program doesn't allow you to choose which smilies. The program could have two folders, smilies1, smilies2, 1 being light and 2 being dark and then an option when you install the style to choose the smilie folder

Ruth
Disclaimer: I get my result from experimenting, not from knowledge of php, styling etc.

Locked

Return to “[3.0.x] Styles in Development”

Who is online

Users browsing this forum: No registered users and 8 guests