is there any application to automtically make .pak files? i would like to install lots of smileys and it is extremely hard to manually compile a .pak file.

Comments

yngens’s picture

instructions from http://www.phpbb.com/community/viewtopic.php?f=1&t=19111&st=0&sk=t&sd=a&... worked for me

Heres the scenario : You just downloaded 500 new smilies for your board. You want to use them all but you dont want to have to sit there and add each one to a .pak file then import it. So heres what you do, its not as hard as it looks, just copy paste some code and your on your way.

Now this will work smoothly assuming a few things:
1. You dont care what the actual description of the emoticons say.
2. All of your smilies are .gifs

*note* keep an eye out for the difference between "smiles" and "smilies" im not sure why it changes sometimes. Also emoticons/smilies get confused alot, i pretty much consider them the same thing.

make a new file called index.php.
Then inside that file put this php code :

Code:
<?
$dh=opendir("/home/yourdir/");
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);
?>

Save and close it up.
Now upload this index.php AND *all* of your new smilies to yourforums/images/smiles/

Now visit the website yourpage.com/phpbb/images/smiles/

when it loads it should look like mine :
http://www.clanorb.com/forums/images/smiles/

Now right click on the page and click view source*. Now that should open notepad. go to file -> Save As. Save it as mysmiley.pak.
then thats it.

vm’s picture

Gurpartap Singh’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.