don_miguel
Guest
|
|
Re:[Done 1.5.1 Final] Add More Smilies 2.0
« Reply #720 on: April 20, 2003, 03:45:44 PM » |
|
... I still have the same problem - and I do not know why? I've installed the final Version of the Smilies Mod - but the same problem. One extra smiley and one standard smiley - the extra smiley is shown, the standard one not ... the same source error as mentioned ... [source code] width="" height="" alt="" border="0" [/source code]
|
|
|
Logged
|
|
|
|
|
|
|
|
|
|
don_miguel
Guest
|
|
Re:[Done 1.5.1 Final] Add More Smilies 2.0
« Reply #727 on: April 22, 2003, 05:31:05 PM » |
|
Locally - with Add more Smilies as single modification - it works ... It think I have to do another 1.5.1 Final Update .... *puuuh*
|
|
|
Logged
|
|
|
|
don_miguel
Guest
|
|
Re:[Done 1.5.1 Final] Add More Smilies 2.0
« Reply #728 on: April 22, 2003, 07:39:21 PM » |
|
Locally with all mods everything went fine. (with an empty database)
So I've updatet all files on my webserver - but: the same "error" like before and I do not know why. I've deleted the Smilies Table - created a new one - the same ... I'm going crazy ...
|
|
|
Logged
|
|
|
|
|
|
|
|
|
chris
Guest
|
|
Re:[Done 1.5.1 & 1.5.2] Add More Smilies 2.0
« Reply #734 on: May 01, 2003, 01:18:04 PM » |
|
There are some minor Bugs in the mod... 1. Disabling Smilies doesn't workIf you disable the smilies for a certain post, the "advanced" smilies are still shown... to fix this problem, open "Subs.php" and search for if ($enableSmilies) $message = parsesmilies($message); replace it with: if ($enableSmilies) { $message = parsesmilies($message); a few lines lower, you'll find: $message = parsecode($message); you have to replace it with: } $message = parsecode($message); now, disabling smilies should work 2. more than 3 chars as file-extensionI haven't tested this, but if you put a file "test.jpeg" into the smilies-directory, this should cause some problems... the same happens if there are any directories in the smilies-directory... you should think about using something like: while ($file = readdir($dh)) {
if (is_file($dir_to_open.'/'.$file)) to check if a file is really a file instead of comparing $file to "." and ".." and I would use something like: $path_parts = pathinfo($file); if ((strtolower($path_parts['extension'])=='gif') || (strtolower($path_parts['extension'])=='png') || (strtolower($path_parts['extension'])=='jpg') || (strtolower($path_parts['extension'])=='jpeg')) { $desc = basename($path_parts['basename'],'.'.$path_parts['extension']); $code = ':'.$desc.':'; $address = $boardurl.'/smilies/'.$file; to get proper filenames and check if a file is a smiley or something else.... jm2c
|
|
« Last Edit: May 01, 2003, 01:19:52 PM by Christian Land »
|
Logged
|
|
|
|