PDA

View Full Version : How do you upload smilies from non-forum directory?


Velocd
09-07-2002, 07:01 PM
I'm not sure why I can't figure this out myself, but it has defiantly been bugging me.

Say I create this folder:
http://www.mysite.com/images

And I upload all my smilies to it. Now it's not located in my forums directory, which is http://www.mysite.com/forums.

I need to somehow grab the smilies from this directory in admin/smilie.php, and insert them into the database.

In admin/smilie.php, according to this line:

makeinputcode("Path to images (relative to your forums directory)","smiliepath","images/smilies");


The path must be relative to the forums directory.
I need it to be relative to my top directory, which is public_html.

I figured somehow changing:

if($dirhandle=@opendir('../'.$smiliepath)) {
chdir('../'.$smiliepath);
$ok_exit='no';


Would do it, yet I can't seem to modify it in the right way to get this to work.

I don't need this for the smilies, but another hack that I am making.

Anyhelp would be wonderful ;)

Velocd
09-07-2002, 09:40 PM
Never mind, figured it out :p

Rose
09-07-2002, 10:06 PM
Originally posted by Velocd
Never mind, figured it out :p


You might post the fix for others who may be curious. ;)