phpBBHacks.com - Adding Smilies to Your Forums
Talk martial arts at KarateForums.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Customizing Your phpBB
 See a User Guidelines violation? Please contact us.
Author Message

Rapid Dr3am
Dedicated User

Joined: 25 Jan 2003
Posts: 8319
Location: Not here

PostPosted: June 28th 2003, 5:22 pm    Post subject: Adding Smilies to Your Forums Reply with quote

Okay, so you got some smilies that you want to add.

If you have a something.pak file then upload it with your smileys to your smilies directory.

By default, this is at images/smilies.

Now go to your forums and your admin panel and go to.

General Admin -> Smilies

Now scroll to the bottom and select import smiley pack and choose a smile pack .pak file in the dropdown menu.

Delete existing smileys before import if you select this all other smiles will be deleted. This might be useful, if you want a whole set of new images.

What should be done in case of conflicts - Keep the original and you may not import all the new ones, but will keep all your original smilies.

Replace Existing Smiley - Any names the same will be overwriten.

What's that now? I don't have a smiley pak but I have a load of images to add and it will take too long to add them manually?

Well, let's cheat.

Code:
<?
$dh=opendir("");
   while(gettype($file=readdir($dh)) != boolean)
   {
      if(!is_dir("$file") && strpos($file, ".gif"))
      {
         $file2 = str_replace(".gif","",$file);
         echo $file. "=+:" .$file2. "=+::" .$file2. ":";
         echo "\n";
      }
   }
   closedir($dh);
?>


Upload that script to your smilies directory with all your new images in and execute it, it will create an output, that can be used to create a *.pak, just copy and paste the output into a text file called whatever.pak and upload and import and you will add them all.

And finally, if you only have a few images so you don't need a pak then add them manually. Select add new smilie and select the following:

Smiley Code: This is were you select the :whatever: part.
Smiley Image File: This will show you a drop down were you select the image name you want.
Smiley Emotion: This will add the alt tag to your image.

And now you've added some smilies!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Customizing Your phpBB All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.