Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
s60addict
Worker
Worker


Joined: Jun 11, 2006
Posts: 206
Location: http://www.s60Addict.co.nr

PostPosted: Sun Sep 03, 2006 4:21 am Reply with quote

is there any way to add several smilies to the forum???

i have around 100+ new smilies and adding them one by one is really tiring job !!!

so is there any way to add all of them altogether???

thnx

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sun Sep 03, 2006 6:33 am Reply with quote

only by .pak file.
 
View user's profile Send private message
s60addict
PostPosted: Sun Sep 03, 2006 6:36 am Reply with quote

i have 100+ gif smilies.

i have not yet installed them on the forum ... so i dont have a .pak file ... so is there any script/method/hack which can make a pak file of the gif files in a particular directory on the server ??
 
hitwalker
PostPosted: Sun Sep 03, 2006 6:43 am 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!

By http://www.phpbbhacks.com
 
s60addict
PostPosted: Sun Sep 03, 2006 6:49 am Reply with quote

Kool !!!

thnx alot hitwalker, !!

lemme c. ill reply soon.
 
hitwalker
PostPosted: Sun Sep 03, 2006 6:52 am Reply with quote

take your time for this,where needed change paths or whatever..
 
s60addict
PostPosted: Sun Sep 03, 2006 6:56 am Reply with quote

Well, it is giving an error when i copied the script as it is in a .php file and uploaded it to the same dir as the new smilies.

Code:
Warning: readdir(): supplied argument is not a valid Directory resource in /home/*****/public_html/modules/Forums/images/smiles/addsmile.php on line 3


Warning: closedir(): supplied argument is not a valid Directory resource in /home/*****/public_html/modules/Forums/images/smiles/addsmile.php on line 12
 
hitwalker
PostPosted: Sun Sep 03, 2006 7:01 am Reply with quote

im not sure if it has to be filled in but put the dirtectory or path in this..
$dh=opendir("whatever directory patyh..");
 
s60addict
PostPosted: Sun Sep 03, 2006 7:04 am Reply with quote

Now that i added the path as u suggested, it is giving an error,

Code:
Warning: opendir(): open_basedir restriction in effect. File(/modules/Forums/images/smiles) is not within the allowed path(s): (/home/*****:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/*****/public_html/modules/Forums/images/smiles/addsmile.php on line 2


Warning: opendir(/modules/Forums/images/smiles/): failed to open dir: Operation not permitted in /home/*****/public_html/modules/Forums/images/smiles/addsmile.php on line 2

Warning: readdir(): supplied argument is not a valid Directory resource in /home/*****/public_html/modules/Forums/images/smiles/addsmile.php on line 3

Warning: closedir(): supplied argument is not a valid Directory resource in /home/*****/public_html/modules/Forums/images/smiles/addsmile.php on line 12
 
hitwalker
PostPosted: Sun Sep 03, 2006 7:16 am Reply with quote

try it with full root pat like/home/user/public_html/etc..
 
hitwalker
PostPosted: Sun Sep 03, 2006 7:19 am Reply with quote

and if that doesnt work,look at this list.. Only registered users can see links on this board! Get registered or login!
 
s60addict
PostPosted: Sun Sep 03, 2006 7:54 am Reply with quote

Woow !!

Thnx hitwalker !!!

this Only registered users can see links on this board! Get registered or login! worked !!

it has created a .pak file.... but i dont know on which basis has it arranged the gif's.

anyways thanks alot .
 
hitwalker
PostPosted: Sun Sep 03, 2006 7:55 am Reply with quote

Wink
 
s60addict
PostPosted: Sun Sep 03, 2006 8:36 am Reply with quote

s**t !!!

now its messed up !!!! Sad Sad

goto s60addict.co.nr and then forums

c what is happening now !

in evey topic, every post, it is displaying

Code:
smile.gifs/order.gif" alt="order.gif" border="0" />="0" align="center" width="90%" cellpadding="3" cellspacing="1">


dont know whats the matter now!

i just replaced the smilies.

im pissed off.

really need ur help !
 
hitwalker
PostPosted: Sun Sep 03, 2006 8:40 am Reply with quote

you messed up something ?
The pak creation seemd ok like you said...
What did you do then..
 
s60addict
PostPosted: Sun Sep 03, 2006 8:45 am Reply with quote

well, it appeared good

here's how it looked in rapidPHP

Code:
laugh.gif=+:laugh.gif=+:laugh

bye.gif=+:bye.gif=+:bye
wub.gif=+:wub.gif=+:wub
devil.gif=+:devil.gif=+:devil
brokenheart.gif=+:brokenheart.gif=+:brokenheart
thumbup1.gif=+:thumbup1.gif=+:thumbup1
cheers.gif=+:cheers.gif=+:cheers
please.gif=+:please.gif=+:please
dont.gif=+:dont.gif=+:dont
cry.gif=+:cry.gif=+:cry
confused.gif=+:confused.gif=+:confused
spam.gif=+:spam.gif=+:spam
yes.gif=+:yes.gif=+:yes
bday.gif=+:bday.gif=+:bday
walkman.gif=+:walkman.gif=+:walkman
party.gif=+:party.gif=+:party
argue.gif=+:argue.gif=+:argue
blabla.gif=+:blabla.gif=+:blabla
dance1.gif=+:dance1.gif=+:dance1
dance2.gif=+:dance2.gif=+:dance2
sigh.gif=+:sigh.gif=+:sigh
dance3.gif=+:dance3.gif=+:dance3
dance4.gif=+:dance4.gif=+:dance4
rtfm.gif=+:rtfm.gif=+:rtfm
nottalking.gif=+:nottalking.gif=+:nottalking
sorry.gif=+:sorry.gif=+:sorry
think.gif=+:think.gif=+:think
sad.gif=+:sad.gif=+:sad
thanks.gif=+:thanks.gif=+:thanks
thanku.gif=+:thanku.gif=+:thanku
suicide.gif=+:suicide.gif=+:suicide
whistle.gif=+:whistle.gif=+:whistle
punk.gif=+:punk.gif=+:punk
rules.gif=+:rules.gif=+:rules
rulez.gif=+:rulez.gif=+:rulez
grin.gif=+:grin.gif=+:grin
earsclosed.gif=+:earsclosed.gif=+:earsclosed
pokey.gif=+:pokey.gif=+:pokey
victory.gif=+:victory.gif=+:victory
devil1.gif=+:devil1.gif=+:devil1
rollinlaugh.gif=+:rollinlaugh.gif=+:rollinlaugh
sleep1.gif=+:sleep1.gif=+:sleep1
shy.gif=+:shy.gif=+:shy
mad.gif=+:mad.gif=+:mad
sadwalk.gif=+:sadwalk.gif=+:sadwalk
tooth.gif=+:tooth.gif=+:tooth
banned.gif=+:banned.gif=+:banned
shock.gif=+:shock.gif=+:shock
applaud.gif=+:applaud.gif=+:applaud
lol.gif=+:lol.gif=+:lol
cool1.gif=+:cool1.gif=+:cool1
dance.gif=+:dance.gif=+:dance
rolleyes.gif=+:rolleyes.gif=+:rolleyes
smoke.gif=+:smoke.gif=+:smoke
sport.gif=+:sport.gif=+:sport
bringit.gif=+:bringit.gif=+:bringit
whip.gif=+:whip.gif=+:whip
angel.gif=+:angel.gif=+:angel
kiss.gif=+:kiss.gif=+:kiss
dj.gif=+:dj.gif=+:dj
order.gif=+:order.gif=+:order
rockon.gif=+:rockon.gif=+:rockon
waiting.gif=+:waiting.gif=+:waiting
cool.gif=+:cool.gif=+:cool
hypno.gif=+:hypno.gif=+:hypno
smile.gif=+:smile.gif=+:smile
serenade.gif=+:serenade.gif=+:serenade
scared.gif=+:scared.gif=+:scared
no.gif=+:no.gif=+:no
india.gif=+:india.gif=+:india
10on10.gif=+:10on10.gif=+:10on10
surrender.gif=+:surrender.gif=+:surrender
shock1.gif=+:shock1.gif=+:shock1
applaud1.gif=+:applaud1.gif=+:applaud1
applaud2.gif=+:applaud2.gif=+:applaud2
pray.gif=+:pray.gif=+:pray
silly.gif=+:silly.gif=+:silly
forgetit.gif=+:forgetit.gif=+:forgetit
angry.gif=+:angry.gif=+:angry
wink.gif=+:wink.gif=+:wink
flat.gif=+:flat.gif=+:flat
razz.gif=+:razz.gif=+:razz
oops.gif=+:oops.gif=+:oops
dontgetit.gif=+:dontgetit.gif=+:dontgetit
flex.gif=+:flex.gif=+:flex
thumbup.gif=+:thumbup.gif=+:thumbup
boxing.gif=+:boxing.gif=+:boxing
question.gif=+:question.gif=+:question
welcome.gif=+:welcome.gif=+:welcome
raisedeyebrow.gif=+:raisedeyebrow.gif=+:raisedeyebrow
peace.gif=+:peace.gif=+:peace
punchywink.gif=+:punchywink.gif=+:punchywink
punish.gif=+:punish.gif=+:punish
drunk.gif=+:drunk.gif=+:drunk
horse.gif=+:horse.gif=+:horse
offtopic.gif=+:offtopic.gif=+:offtopic
hug.gif=+:hug.gif=+:hug
think1.gif=+:think1.gif=+:think1
silly1.gif=+:silly1.gif=+:silly1
money.gif=+:money.gif=+:money
bow.gif=+:bow.gif=+:bow
cheerleader.gif=+:cheerleader.gif=+:cheerleader
smug.gif=+:smug.gif=+:smug
drool.gif=+:drool.gif=+:drool
friends.gif=+:friends.gif=+:friends
thumbdown.gif=+:thumbdown.gif=+:thumbdown
help.gif=+:help.gif=+:help
rapper.gif=+:rapper.gif=+:rapper
shutup.gif=+:shutup.gif=+:shutup


i just uploaded it to the smilies folder, and then imported smilies pack. (delete existing smilies)

thats all i did and c how my forums came up!

s60addict.co.nr
 
hitwalker
PostPosted: Sun Sep 03, 2006 8:49 am Reply with quote

Well mine looked like :

caution.gif=+:caution=+::caution:
censored.gif=+:Censored=+::censored:

and yours :

laugh.gif=+:laugh.gif=+:laugh
bye.gif=+:bye.gif=+:bye


See the difference ?
 
s60addict
PostPosted: Sun Sep 03, 2006 8:50 am Reply with quote

yes i do, but i dont know what is wrong....

glad i had a backup of the previous smilies...

for now ive reverted back to those smilies and it is working fine !!!

what shud i do now?
 
hitwalker
PostPosted: Sun Sep 03, 2006 8:55 am Reply with quote

nothing....
leave your forum alone...
ill bet that if you continue like this one day your gonna trash your forum...
most things you install will not be used by your members.,thats a fact...
when all is running and working like it should then you should leave it alone,and not continue to build just as long till it crashes.
just some advice...
 
s60addict
PostPosted: Sun Sep 03, 2006 8:58 am Reply with quote

well, ok !

thnx for the sugestion !

btw, ill try adding them 1 by one
 
Dronk
New Member
New Member


Joined: Oct 03, 2006
Posts: 5

PostPosted: Tue Oct 17, 2006 6:11 pm Reply with quote

hitwalker wrote:
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.

Hello. I think this may be slightly off-topic, but I couldnt find a more appropriate thread. And you guys seem to know a lot about smileys, so I hope you can help me.

I created my .pak file using notepad, made sure I had all the .gif files, uploaded the .pak and .gif files to the smiles folder and followed these instructions. It says it was successful, but when I return to Smiley Admin (or the forums) no smilies appear.

When I click on "Add New Smiley", my graphics show up as selectable, and I can add each one individually ... but I thought importing a Smiley Pack was supposed to add them for me.

Or am I misunderstanding something? Thanks for your help!

*Ready to be whapped upside the head for missing something very obvious*
 
View user's profile Send private message
hitwalker
PostPosted: Tue Oct 17, 2006 6:16 pm Reply with quote

well not realy offtopic ..
but i have a bad feeling that the smiley is a bit buggy...

try to play around with an older smiley forum php file....of previous version...
 
Dronk
PostPosted: Tue Oct 17, 2006 7:14 pm Reply with quote

Thanks for the quick reply.

I guess I should have said I was using phpNuke 7.6 (the one from the front page of this website). Did you mean I should try an even older version?

If so, any idea where I would find that...?

Thanks again!
 
hitwalker
PostPosted: Wed Oct 18, 2006 3:48 am Reply with quote

well if you have ravennuke and its not working then it could be a bug.
just start a topic about this here : Only registered users can see links on this board! Get registered or login!
 
Dronk
PostPosted: Wed Oct 18, 2006 5:38 am Reply with quote

Thanks, I have posted it there. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©