You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 217 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - avatars getting deleted [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
MaXCoDeR
Nuke Cadet
Nuke Cadet


Joined: Jun 19, 2003
Posts: 2


PostPosted: Mon Jun 23, 2003 12:15 am Reply with quoteBack to top

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?
Find all posts by MaXCoDeRView user's profileSend private message
JGNYC
Nuke Soldier
Nuke Soldier


Joined: May 24, 2003
Posts: 22


PostPosted: Mon Aug 11, 2003 3:12 am Reply with quoteBack to top

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?
Find all posts by JGNYCView user's profileSend private message
Feret
Sergeant
Sergeant


Joined: Jul 09, 2003
Posts: 149

Location: Dunbar, WV

PostPosted: Tue Aug 12, 2003 6:10 am Reply with quoteBack to top

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 Sad
Find all posts by FeretView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Feret
Sergeant
Sergeant


Joined: Jul 09, 2003
Posts: 149

Location: Dunbar, WV

PostPosted: Tue Aug 12, 2003 8:29 am Reply with quoteBack to top

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 ?
Find all posts by FeretView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
JGNYC
Nuke Soldier
Nuke Soldier


Joined: May 24, 2003
Posts: 22


PostPosted: Tue Aug 12, 2003 8:32 am Reply with quoteBack to top

It seems weird because people that already had avatars are losing them, while the path is clearly wrong.
Which file did you edit?
Find all posts by JGNYCView user's profileSend private message
Feret
Sergeant
Sergeant


Joined: Jul 09, 2003
Posts: 149

Location: Dunbar, WV

PostPosted: Tue Aug 12, 2003 8:56 am Reply with quoteBack to top

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 Sad
Find all posts by FeretView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Aug 12, 2003 9:20 am Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
Feret
Sergeant
Sergeant


Joined: Jul 09, 2003
Posts: 149

Location: Dunbar, WV

PostPosted: Tue Aug 12, 2003 9:42 am Reply with quoteBack to top

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 Smile

edit

actually that sounds like a tweak i want so i went ahead and used it Smile
Find all posts by FeretView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
JGNYC
Nuke Soldier
Nuke Soldier


Joined: May 24, 2003
Posts: 22


PostPosted: Wed Aug 13, 2003 4:33 am Reply with quoteBack to top

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.
Find all posts by JGNYCView user's profileSend private message
Feret
Sergeant
Sergeant


Joined: Jul 09, 2003
Posts: 149

Location: Dunbar, WV

PostPosted: Wed Aug 13, 2003 10:19 am Reply with quoteBack to top

hrm.... make sure its enabled in youf forum configuration?
Find all posts by FeretView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
JGNYC
Nuke Soldier
Nuke Soldier


Joined: May 24, 2003
Posts: 22


PostPosted: Wed Aug 13, 2003 9:05 pm Reply with quoteBack to top

Feret wrote:
hrm.... make sure its enabled in youf forum configuration?

Yes, of course it is. Smile
Find all posts by JGNYCView user's profileSend private message
Feret
Sergeant
Sergeant


Joined: Jul 09, 2003
Posts: 149

Location: Dunbar, WV

PostPosted: Thu Aug 14, 2003 3:00 pm Reply with quoteBack to top

this is most odd but maybe your host doesnt support such linking? dunno
Find all posts by FeretView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
JGNYC
Nuke Soldier
Nuke Soldier


Joined: May 24, 2003
Posts: 22


PostPosted: Fri Aug 15, 2003 1:14 pm Reply with quoteBack to top

Feret wrote:
this is most odd but maybe your host doesnt support such linking? dunno

It worked perfectly before the upgrade.
Find all posts by JGNYCView user's profileSend private message
JGNYC
Nuke Soldier
Nuke Soldier


Joined: May 24, 2003
Posts: 22


PostPosted: Sat Aug 16, 2003 6:07 pm Reply with quoteBack to top

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.
Find all posts by JGNYCView user's profileSend private message
Altec
Private
Private


Joined: Aug 04, 2003
Posts: 46


PostPosted: Wed Aug 20, 2003 4:01 pm Reply with quoteBack to top

so what should we be changing the code to?
Find all posts by AltecView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 5.590 Seconds - 125 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::