View Full Version : Problem
.Hybrid
09-14-2006, 02:32 AM
With the smilies. I know there was s imilar topic, it didn't help me.
Smilies aren't working on the forums. When I go into a test forum, it shows the default smilies path to be
images/test/smilies
The script is installed in the directory, s1. Therfore, should it be:
images/smilies
instead? Where can I change the default smilie path for every forum?
Thanks for the help.
Cronos
09-14-2006, 03:27 AM
nbs/new_forum_sql.php
find
$sql[] = "INSERT INTO " . $accessname . "_config (config_name, config_value) VALUES ('smilies_path','images/".$accessname."/smiles');";
i don't sure if the string to find is the same as i put in the quote, it could be similar, i've changed it lot of time ago
and replace with
$sql[] = "INSERT INTO " . $accessname . "_config (config_name, config_value) VALUES ('smilies_path','images/smiles');";
another suggestion is, if you don't use the 'access name' smile path, you could stop the script for make it ;)
then, go to
/new_forum.php
and find something like
mkdirftp($nbs->setting['ftp_server'], $nbs->setting['ftp_username'], $nbs->setting['ftp_password'], $nbs->setting['ftp_path'] . 'images/' . $accessname . '/', 'smile');
and truncate it
some line after the script do a copy of the 'standard smile'
toggle it ;)
Derek
09-14-2006, 06:55 AM
You shouldn't have to do it, it purposely creates a separate folder for each forum so they can add their own through phpBB's admin panel. Not sure how that feature works though, I've never messed with it. In your case test was the person's access name, you probably have an incorrect FTP path, so I'd try checking to make sure the path is correct. Please PM me if you would like me to look.
Thanks,
Derek
Cronos
09-14-2006, 07:30 AM
i prefer only 1 folder for the image
/images/ -> all the 'basic' smile and the .pak file
/images/*packname*/ -> all the smile for every pack file
so, if i would add a single smile i've the capablietes to choose into the 'basic' smile, wich some other smile added by me
and if you add the package you could have lot of extra smile without make a HUGE folder and a HUGE select for choose only a smile
for what i've seen this is a good choice, because my forum folder is small, and it contain all the smile anyone need, and it is very easy to use
the avatar insted is stored in the right subfolder into images
this is why i edited your script ;)
and this is a very good choice :)
edit: anyway.. i don't know how user can add the smiles..? you don't have a page for UPLOAD files >_> in phpBB the user has to upload every thing directly into the folder, the only file you can upload is the attachment and the avatar >_>
Derek
09-14-2006, 04:12 PM
Hmm, I might just add a setting to disable it from creating a separate smilies folder for each forum, but I'll still have it make the accessname folder for avatars.
Derek
Cronos
09-14-2006, 04:40 PM
you have to develop an 'upload smile' for do what you want..
yes, anyway, i use a separed folder for the avatar ;)
it's the better choose, because, the smile is unique for every forum, and if you put order in the folder you could have a very huge collection of smile and let it choose between a copuple of .pak file, and the use don't have to surf the net discovering how to add a smile, check how to download, upload it..
just choose che package like 'funny' 'blue' or similar, and it will full the forum of the smile he choose, with 2 click ;)
insted of avatar wich are usually unique for every ppl, and you have arleady the upload script for it, so you don't have to develp nothing ;)
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.