|
[Gelöst] Avatar Studio Fehler
|
|
| Gagamel |
Geschrieben am 12.03.2009 00000003 19:26
|
|
Mitglied ![]() Beiträge: 129 Registriert am: 07.03.09 Fusioneer: 16 years 9 months 1 weeks 10 days 9 hours 32 minutes 9 seconds |
Hallo habe folgende Fehlermeldung. Warning: opendir(../../images/avatars/avatar_studio/) [function.opendir]: failed to open dir: No such file or directory in /is/city/infusions/avatar_studio/avatar_studio_functions_inc.php on line 7 Habe die readme befolgt jedoch weiss ich nicht ob ich das hier richtig gemacht habe : ********************************************************************** .row1 { background-color: #484848; border: 1px dashed #FFEB77; } .row2 { background-color: #262626; } .large { font-size: 14px; font-weight: bold; } hr.mid-hr { height: 1px; border: 1px solid #13CA2F; } ********************************************************************** Das sollte ich in die style.css einfügen vom jeweiligen Theme. Habe dies ganz unten eigefügt und zwar so : ********************************************************************************** .row1 { background-color: #484848; border: 1px dashed #FFEB77; } .row2 { background-color: #262626; } .large { font-size: 14px; font-weight: bold; } hr.mid-hr { height: 1px; border: 1px solid #13CA2F; } } *************************************************************************************** |
|
|
|
| SC-Ad-Bot | Advertisement |
| |
| emblinux |
Geschrieben am 12.03.2009 00000003 19:45
|
|
Seiten Administrator ![]() Beiträge: 3813 Registriert am: 04.10.08 Fusioneer: 17 years 2 months 1 weeks 12 days 9 hours 1 minutes 14 seconds |
befindet sich in deinem Ordner /images/avatars ein Unterordner namens avatar_studio ?
|
|
|
|
| Gagamel |
Geschrieben am 12.03.2009 00000003 20:05
|
|
Mitglied ![]() Beiträge: 129 Registriert am: 07.03.09 Fusioneer: 16 years 9 months 1 weeks 10 days 9 hours 32 minutes 9 seconds |
Nein der Ordner ist nicht da, Habe ihn angelegt aber trotzdem noch der Fehler |
|
|
|
| emblinux |
Geschrieben am 12.03.2009 00000003 20:09
|
|
Seiten Administrator ![]() Beiträge: 3813 Registriert am: 04.10.08 Fusioneer: 17 years 2 months 1 weeks 12 days 9 hours 1 minutes 14 seconds |
Ist die Fehlermeldung genau die gleiche oder weicht si doch etwas ab? Was stand denn noch alles in der readme, hast du wirklich alles nach Anleitung installiert? |
|
|
|
| djhurz |
Geschrieben am 12.03.2009 00000003 20:12
|
|
Mitglied ![]() Beiträge: 149 Registriert am: 27.10.08 Fusioneer: 17 years 1 months 2 weeks 19 days 9 hours 46 minutes 40 seconds |
Schau mal ob der Ordner auch die nötigen schreibrechte besitzt. Die sollten 777 sein. Gruß: Markus -|__________|- This is Nudelholz. Copy Nudelholz in your Signature to make better Kuchens and other Teigprodukte. |
|
|
|
| Gagamel |
Geschrieben am 12.03.2009 00000003 20:12
|
|
Mitglied ![]() Beiträge: 129 Registriert am: 07.03.09 Fusioneer: 16 years 9 months 1 weeks 10 days 9 hours 32 minutes 9 seconds |
Ist eine andere und zwar diese : ******************************* Notice: Undefined variable: avatarCategories in /is/city/infusions/avatar_studio/avatar_studio_functions_inc.php on line 19 ******************************** PS : das kapiere ich nicht in der Readme : 3. Create sub-directories under the ( avatar_studio ) folder containing your avatar images Schreibrechte hat der Ordner Bearbeitet von Gagamel am 12.03.2009 00000003 20:13 |
|
|
|
| emblinux |
Geschrieben am 12.03.2009 00000003 20:15
|
|
Seiten Administrator ![]() Beiträge: 3813 Registriert am: 04.10.08 Fusioneer: 17 years 2 months 1 weeks 12 days 9 hours 1 minutes 14 seconds |
Zitat Gagamel schrieb: Ist eine andere und zwar diese : ******************************* Notice: Undefined variable: avatarCategories in /is/city/infusions/avatar_studio/avatar_studio_functions_inc.php on line 19 ******************************** PS : das kapiere ich nicht in der Readme : 3. Create sub-directories under the ( avatar_studio ) folder containing your avatar images Schreibrechte hat der Ordner 3. hast du doch jetzt erledigt, in dem du den Ordner angelegt hast. Poste doch mal bitte diese Zeile 19 bzw den Bereich darum und kennzeichne die Zeile 19. |
|
|
|
| Gagamel |
Geschrieben am 12.03.2009 00000003 20:18
|
|
Mitglied ![]() Beiträge: 129 Registriert am: 07.03.09 Fusioneer: 16 years 9 months 1 weeks 10 days 9 hours 32 minutes 9 seconds |
Zeile 19 : Code return $avatarCategories; Code if ($handle = opendir(AVATAR_FOLDER)) Bearbeitet von Gagamel am 12.03.2009 00000003 20:19 |
|
|
|
| emblinux |
Geschrieben am 12.03.2009 00000003 21:00
|
|
Seiten Administrator ![]() Beiträge: 3813 Registriert am: 04.10.08 Fusioneer: 17 years 2 months 1 weeks 12 days 9 hours 1 minutes 14 seconds |
versuchs mal so: Code if ($handle = opendir(AVATAR_FOLDER)) |
|
|
|
| Gagamel |
Geschrieben am 12.03.2009 00000003 22:29
|
|
Mitglied ![]() Beiträge: 129 Registriert am: 07.03.09 Fusioneer: 16 years 9 months 1 weeks 10 days 9 hours 32 minutes 9 seconds |
Ne das klappt nicht. habe dir mal die komplette datei miteingefügt: Datei: avatar_studio_functions_inc.php [geshi=php]<?php function LoadAvatarCategories() { $ignore = array('.', '..'); if ($handle = opendir(AVATAR_FOLDER)) { while (false !== ($file = readdir($handle))) { if(!in_array($file, $ignore) && !is_file(AVATAR_FOLDER . '/' . $file)) { $avatarCategories[] = $file; } } closedir($handle); return $avatarCategories; } return false; } function loadAvatarImages($dir) { if ($handle = opendir(AVATAR_FOLDER . $dir)) { while (false !== ($file = readdir($handle))) { if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $file) ) { $avatar_images[] = $file; } } closedir($handle); return (isset($avatar_images)) ? $avatar_images : false; } return false; } function saveAvatar() { global $userdata, $db_prefix, $locale; $output = null; // check that an avatar is selected if(isset($_POST['avatar_save']) && !empty($_POST['avatar_save'])) { // get the avatar category $avatar_studio = $_POST['avatar_studio']; // get the selected avatar $avatar_image = $_POST['avatar_select']; // build the path to the avatar $avatar_path = AVATAR_FOLDER . $avatar_studio . '/' . $avatar_image; // check that the choosen avatar exists if(file_exists($avatar_path)) { $ext = strrchr($avatar_path, '.'); copy($avatar_path, IMAGES.'avatars/avatar['.$userdata['user_id'].']'.$ext); $saveresult = dbquery("UPDATE `".$db_prefix."users` SET `user_avatar` = 'avatar[".$userdata['user_id']."]".$ext."' WHERE `user_id` = '".$userdata['user_id']."' LIMIT 1"); $output .= " <tr>\n <td class='row1' colspan='5'>"; $output .= '<br /><center>'.$locale['AST_004'].'<br /><br />'; $output .= '<a href="'.BASEDIR.'edit_profile.php">'.$locale['AST_005'].'</a><br /><br /></center>'; } else { $output .= " <tr>\n <td class='row1' colspan='5'>ERROR</td>\n </tr>\n"; } } return $output; } ?>[/geshi] |
|
|
|
| emblinux |
Geschrieben am 12.03.2009 00000003 22:46
|
|
Seiten Administrator ![]() Beiträge: 3813 Registriert am: 04.10.08 Fusioneer: 17 years 2 months 1 weeks 12 days 9 hours 1 minutes 14 seconds |
probier das nochmal: [geshi=php]<?php function LoadAvatarCategories() { $ignore = array('.', '..'); $avatarCategories = array(); if ($handle = opendir(AVATAR_FOLDER)) { while (false !== ($file = readdir($handle))) { if(!in_array($file, $ignore) && !is_file(AVATAR_FOLDER . '/' . $file)) { $avatarCategories[] = $file; } } closedir($handle); return $avatarCategories; } return false; } function loadAvatarImages($dir) { $avatar_images = array(); if ($handle = opendir(AVATAR_FOLDER . $dir)) { while (false !== ($file = readdir($handle))) { if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $file) ) { $avatar_images[] = $file; } } closedir($handle); return (isset($avatar_images)) ? $avatar_images : false; } return false; } function saveAvatar() { global $userdata, $db_prefix, $locale; $output = null; // check that an avatar is selected if(isset($_POST['avatar_save']) && !empty($_POST['avatar_save'])) { // get the avatar category $avatar_studio = $_POST['avatar_studio']; // get the selected avatar $avatar_image = $_POST['avatar_select']; // build the path to the avatar $avatar_path = AVATAR_FOLDER . $avatar_studio . '/' . $avatar_image; // check that the choosen avatar exists if(file_exists($avatar_path)) { $ext = strrchr($avatar_path, '.'); copy($avatar_path, IMAGES.'avatars/avatar['.$userdata['user_id'].']'.$ext); $saveresult = dbquery("UPDATE `".$db_prefix."users` SET `user_avatar` = 'avatar[".$userdata['user_id']."]".$ext."' WHERE `user_id` = '".$userdata['user_id']."' LIMIT 1"); $output .= " <tr>\n <td class='row1' colspan='5'>"; $output .= '<br /><center>'.$locale['AST_004'].'<br /><br />'; $output .= '<a href="'.BASEDIR.'edit_profile.php">'.$locale['AST_005'].'</a><br /><br /></center>'; } else { $output .= " <tr>\n <td class='row1' colspan='5'>ERROR</td>\n </tr>\n"; } } return $output; } ?>[/geshi] |
|
|
|
| Gagamel |
Geschrieben am 12.03.2009 00000003 23:07
|
|
Mitglied ![]() Beiträge: 129 Registriert am: 07.03.09 Fusioneer: 16 years 9 months 1 weeks 10 days 9 hours 32 minutes 9 seconds |
Hat Geklappt- Super DANKE |
|
|
|
| Springe ins Forum: |
Austria
Czech Republic
Germany
Denmark
Spain
France
Iran
Lithuania
Norway
Poland
Romania
Russia
Sweden
Slovakia
Turkey
United States
United Kingdom












