Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
Emmelmann
New Member
New Member



Joined: Dec 18, 2005
Posts: 13

PostPosted: Sun Dec 18, 2005 6:45 pm Reply with quote

Hello,

first, sorry for my bad english.

I have Nuke 6.9 and the CNB_Your_Account_750_440_beta2 - Module. It works fine, but then a User is UPLOADING a picture, this picture is not displayed in his Profile. In the Forums there is no problem, but in the Profile, no one cann see the pic.

If i logged in as admin i can see the pic. Has anyone a answer for this bug?

Regards
Peter
 
View user's profile Send private message
zudo
New Member
New Member



Joined: Dec 18, 2005
Posts: 3

PostPosted: Sun Dec 18, 2005 7:37 pm Reply with quote

Do you use Members_Photo_Upload, I have the same problem??
 
View user's profile Send private message
Emmelmann







PostPosted: Mon Dec 19, 2005 2:36 am Reply with quote

Yes, only then the User was uploading his picture, the problem is available.
 
zudo







PostPosted: Mon Dec 19, 2005 4:02 am Reply with quote

But i have also problem where to put the codes in installinstructions


THIS ONE

4b. EDIT modules/your_account/index.php

Line 200 approx
Right after echo "<center><font class=\"content\">";
>> Add:
//Member Photo hack 2005
$user_id = $userinfo[user_id];
if(file_exists("images/members/$user_id.jpg")) {
echo "<image src=\"images/members/$user_id.jpg\" alt=\"Mein Photo\"><br>";
}
elseif(file_exists("images/members/$user_id.gif")) {
echo "<image src=\"images/members/$user_id.gif\" alt=\"Mein Photo\"><br>";
} else{
echo "<image src=\"images/members/no_user_pic.gif\" alt=\"Momentan kein Bild vorhanden\">";
}
//Member Photo hack end
 
Emmelmann







PostPosted: Mon Dec 19, 2005 2:24 pm Reply with quote

Do the follow and the pictures are displayed.

Open the file /modules/Your_Account/public/userinfo.php and search the following code:

Its near Line 62
Code:
if ($usrinfo[user_avatar_type] == 1) {      // Type 1

                $user_avatar = $board_config[avatar_path]."/".$usrinfo[user_avatar];


and change it with the follow code:

Code:


if ($usrinfo[user_avatar_type] == 1) {      // Type 1
              echo "<img src=/modules/Forums/images/avatars/$usrinfo[user_avatar]>";


If the Path to the Forumavatar is an other, change the path and the pictures are displayed.

Regards
Peter
 
zudo







PostPosted: Tue Dec 20, 2005 4:36 am Reply with quote

Finally i have fixed it!!!

This is where i put the code! U must chmod 777 images/members directory too, I took away gif option to upload.

Code:
      echo "<font class=\"title\">"._PERSONALINFO.": ".$usrinfo['username']."</font></center><br>";

        }
        if($num == 1) {
            echo "<center>\n";
            echo "<table bgcolor='$bgcolor4' border='0' cellpadding='2' cellspacing='1' class='content' width='60%'>\n";
            echo "<tr>\n<td align='center' bgcolor='$bgcolor2' class='title' colspan='2' width='100%'>";
            echo "</td>\n</tr>\n";
       echo "<center>\n";
           $user_id = $usrinfo[user_id];
   if(file_exists("images/members/$user_id.jpg")) {
   echo "<image src=\"images/members/$user_id.jpg\" alt=\"Moja slika\"><br>";
   }
   elseif(file_exists("images/members/$user_id.gif")) {
   echo "<image src=\"images/members/$user_id.gif\" alt=\"Moja slika\"><br>";
   } else{
   echo "<image src=\"images/members/no_user_pic.gif\" alt=\"Trenutno nemam sliku\">";
   }
            $usrinfo[user_website] = strtolower($usrinfo[user_website]);




Now i Need a block there ONLINE NOW can show with my members pics/does anybody know????
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©