Wer ist hier? 1 Gäste
[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 0 months 2 weeks 15 days 16 hours 0 minutes 46 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: 16 years 5 months 2 weeks 17 days 15 hours 29 minutes 51 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 0 months 2 weeks 15 days 16 hours 0 minutes 46 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: 16 years 5 months 2 weeks 17 days 15 hours 29 minutes 51 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: 16 years 4 months 3 weeks 24 days 16 hours 15 minutes 17 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 0 months 2 weeks 15 days 16 hours 0 minutes 46 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: 16 years 5 months 2 weeks 17 days 15 hours 29 minutes 51 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 0 months 2 weeks 15 days 16 hours 0 minutes 46 seconds |
Zeile 19 : Code Download Code return $avatarCategories; Code Download 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: 16 years 5 months 2 weeks 17 days 15 hours 29 minutes 51 seconds |
versuchs mal so: Code Download 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 0 months 2 weeks 15 days 16 hours 0 minutes 46 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: 16 years 5 months 2 weeks 17 days 15 hours 29 minutes 51 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 0 months 2 weeks 15 days 16 hours 0 minutes 46 seconds |
Hat Geklappt- Super DANKE |
|
Springe ins Forum: |
Ähnliche Themen
Thema | Forum | Antworten | Letzter Beitrag |
---|---|---|---|
My Buddysytem-Fehler: Bitte überprüfe die Dateien des Benutzerfeldes | Infusionen | 3 | 22.02.2018 00000002 14:56 |
Datenbank fehler | Infusionen | 7 | 24.03.2017 00000003 07:20 |
Hilfe MWN Geschenke System fehler | Infusionen | 2 | 27.12.2016 00000012 20:11 |
Avatar Bilder | Allgemeine Support Fragen | 2 | 11.12.2016 00000012 17:11 |
17+4 Fehler | Games, Spiele & Co. | 1 | 04.12.2016 00000012 09:41 |