close× Call Us +49 (1805) 01 29 59

PHPFusion DE NSS
Thread Author: Gagamel
Thread ID: 802
Thread Info
Es gibt 12 Beiträge zu diesem Thema, und es wurde 2431 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
[Gelöst] Avatar Studio Fehler
Gagamel
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
 
emblinux
befindet sich in deinem Ordner /images/avatars ein Unterordner namens avatar_studio ?
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
Gagamel
Nein der Ordner ist nicht da,

Habe ihn angelegt aber trotzdem noch der Fehler
 
emblinux
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?
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
djhurz
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
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

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.
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
Gagamel
Zeile 19 :


  return $avatarCategories;




    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))

Bearbeitet von Gagamel am 12.03.2009 00000003 20:19
 
emblinux
versuchs mal so:


    if ($handle = opendir(AVATAR_FOLDER))
    {
       $avatarCategories = array();
        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))


Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
Gagamel
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
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]
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
Gagamel
Hat Geklappt-

Super DANKE
 
Springe ins Forum:

 Ähnliche Themen 

TEST
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
Gr@n@dE