| Author |
Message |
MaXCoDeR
Nuke Cadet


Joined: Jun 19, 2003
Posts: 2
|
Posted:
Mon Jun 23, 2003 12:15 am |
  |
I upgraded from 6.0 with phpBB installed to 6.6 using the Nuke Cops' nukeSQL.
Now, when a user tries to change his avatar, the change does not get effect and the old avatar gets deleted from the server!
How can I fix this problem? |
|
|
   |
 |
JGNYC
Nuke Soldier


Joined: May 24, 2003
Posts: 22
|
Posted:
Mon Aug 11, 2003 3:12 am |
  |
I'm having the same problem. Ever since I upgraded, a number of avatars have been deleted and their path name is just www.mywebsite.com
Is there a way to fix this? |
|
|
   |
 |
Feret
Sergeant


Joined: Jul 09, 2003
Posts: 149
Location: Dunbar, WV
|
Posted:
Tue Aug 12, 2003 6:10 am |
  |
I am having a similar issue but it is only with the default avatar which ive tried putting in three places a directory out sdie the main in avatars and in avatars/gallery and they show up as broken images and i cant seem to figure out a look at the database says they point to "gallery/blank.gif" without the quotes. Remote and uploaded avs work fine though  |
|
|
        |
 |
Feret
Sergeant


Joined: Jul 09, 2003
Posts: 149
Location: Dunbar, WV
|
Posted:
Tue Aug 12, 2003 8:29 am |
  |
ok i did some tweaking and now i have one person whos images are resolving "modules/Forums/images/avatars/gallery/blank.gif" and anothers who is just resolving to "gallery/blank.gif"
The crazy thing if you look at the dbase with phpmyadmin they both say gallery/blank.gif in the user_avatar field any ideas ? |
|
|
        |
 |
JGNYC
Nuke Soldier


Joined: May 24, 2003
Posts: 22
|
Posted:
Tue Aug 12, 2003 8:32 am |
  |
It seems weird because people that already had avatars are losing them, while the path is clearly wrong.
Which file did you edit? |
|
|
   |
 |
Feret
Sergeant


Joined: Jul 09, 2003
Posts: 149
Location: Dunbar, WV
|
Posted:
Tue Aug 12, 2003 8:56 am |
  |
I personally didnt edit a single file. they were working before i upgraded to 6.7
the uploaded avatars work and the remote link ones work as well
the crazy thing is that this is just the blank.gif new users fail to load properly as well  |
|
|
        |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Tue Aug 12, 2003 9:20 am |
  |
Save a backup copy of usercp_avatar.php and then edit one of the copies:
find:
| Code: |
function user_avatar_delete($avatar_type, $avatar_file)
{
global $board_config, $userdata;
if ( $avatar_type == USER_AVATAR_UPLOAD && $avatar_file != '' ) |
change to:
| Code: |
function user_avatar_delete($avatar_type, $avatar_file)
{
global $board_config, $userdata;
if ( $avatar_type == USER_AVATAR_UPLOAD && ($avatar_file != '' and $avatar_file != 'blank.gif') ) |
|
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources |
|
    |
 |
Feret
Sergeant


Joined: Jul 09, 2003
Posts: 149
Location: Dunbar, WV
|
Posted:
Tue Aug 12, 2003 9:42 am |
  |
actually i think i have the problem fixed, it seems a couple of the users had "gallery/blank.gif" but not user_avatar_type as 3 (one was 2 another was 0) Changing those to 3 seems to have ammended the problem. Thank God I figured it out I will watch it over the next few days before i try your tweak chatserv thanks anyways
edit
actually that sounds like a tweak i want so i went ahead and used it  |
|
|
        |
 |
JGNYC
Nuke Soldier


Joined: May 24, 2003
Posts: 22
|
Posted:
Wed Aug 13, 2003 4:33 am |
  |
Unfortunately it didn't work for me. I only allow remote linking, and for some people that were linking before the upgrade, their avatars are missing with the path of my site.
In addition, new members are having the same problem too-they are getting the broken image with the path of the site. |
|
|
   |
 |
Feret
Sergeant


Joined: Jul 09, 2003
Posts: 149
Location: Dunbar, WV
|
Posted:
Wed Aug 13, 2003 10:19 am |
  |
hrm.... make sure its enabled in youf forum configuration? |
|
|
        |
 |
JGNYC
Nuke Soldier


Joined: May 24, 2003
Posts: 22
|
Posted:
Wed Aug 13, 2003 9:05 pm |
  |
| Feret wrote: |
| hrm.... make sure its enabled in youf forum configuration? |
Yes, of course it is.  |
|
|
   |
 |
Feret
Sergeant


Joined: Jul 09, 2003
Posts: 149
Location: Dunbar, WV
|
Posted:
Thu Aug 14, 2003 3:00 pm |
  |
this is most odd but maybe your host doesnt support such linking? dunno |
|
|
        |
 |
JGNYC
Nuke Soldier


Joined: May 24, 2003
Posts: 22
|
Posted:
Fri Aug 15, 2003 1:14 pm |
  |
| Feret wrote: |
| this is most odd but maybe your host doesnt support such linking? dunno |
It worked perfectly before the upgrade. |
|
|
   |
 |
JGNYC
Nuke Soldier


Joined: May 24, 2003
Posts: 22
|
Posted:
Sat Aug 16, 2003 6:07 pm |
  |
Ok, for some reason it looks like its been fixed....after looking into every file, it seems that the viewtopic.php file was the problem.
In that file the code is:
| Code: |
// Default Avatar MOD - Begin
//
if ( empty($poster_avatar) && $poster_id != ANONYMOUS)
{
$poster_avatar = '<img src="'. $images['default_avatar'] .'" alt="" border="0" />';
}
if ( $poster_id == ANONYMOUS )
{
$poster_avatar = '<img src="'. $images['guest_avatar'] .'" alt="" border="0" />';
}
//
// Default Avatar MOD - End |
I'm not sure what that code is there for, but it seems to be giving an incorrect path for users with no avatar. |
|
|
   |
 |
Altec
Private


Joined: Aug 04, 2003
Posts: 46
|
Posted:
Wed Aug 20, 2003 4:01 pm |
  |
so what should we be changing the code to? |
|
|
   |
 |
|
|