Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
sak
Worker
Worker



Joined: Jul 06, 2005
Posts: 172

PostPosted: Wed Nov 18, 2009 10:20 pm Reply with quote

http://www.ravenphpscripts.com/postt18150.html

Posted towards the end of this thread, but I started a new thread to try to keep it organized.

I'm having trouble with the avatar gallery in 2.4 release. I just updated from 2.4 RC1 to 2.4 release (although I never tested the gallery with RC1 - always assumed it worked...)

This is the error message I get when trying to use the gallery:

Quote:
There was an error when we tried to save your Avatar: Wrong avatar format! Avatars can only be gif, jpg, or png format.


All of the files displayed in the gallery are .jpg and .gif. Any idea what the problem is?


Avatar uploading and off-site linking seems to work just fine, however.

_________________
www.ICarry.org
www.GunOwnersFellowship.com 
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Thu Nov 19, 2009 8:46 am Reply with quote

Are these Avatar images you have uploaded or just the default images?

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Thu Nov 19, 2009 10:18 am Reply with quote

I assume your getting this through the Your Account module? I had this issue before RNYA so always encouraged users to use Forum - Edit Profile instead.

I'm still on RC1 but looked at it and noticed I had some shortlinks issues in the gallery.. You using shortlinks?

btw, I submitted an issue on mantis...
 
View user's profile Send private message Visit poster's website
sak







PostPosted: Thu Nov 19, 2009 11:22 am Reply with quote

Update: Custom gallery directories seem to work fine in Forums>Profile

But only the standard default images in the Your Account Gallery work. When I try to use Your Account, I cannot choose any images from any directory besides the "Gallery" directory that comes with RN with the smilies.
 
sak







PostPosted: Thu Nov 19, 2009 11:31 am Reply with quote

Looks like a problem with shortlinks

Example of a working Your Account gallery link (from "Gallery" stock avatars)

Code:
http://www.icarry.org/account-avatarsave-gallery-059.gif.html


Example of a non-functioning Your Account gallery link (from a custom directory):

Code:
http://www.icarry.org/account-avatarsave.html?category=Member%20Custom&avatar=SAK-link.jpg



It's trying to pass off the variables like with php, which doesn't work with mod_rewrite obviously :\
 
nuken







PostPosted: Thu Nov 19, 2009 11:39 am Reply with quote

One way around this is to make sure the new directory does not have a space in the name. Example Member Custom should be Member_Custom. and make sure the image names are lowercase and without dashes. Example SAK-link.jpg needs to be saklink.jpg. I'm sure this will be addressed with a permanent fix soon, but this should avoid the shortlinks issue until then.


edit. The folders need to be lowercase and can not contain _ . The folder and image needs to be one word and all lowercase.


Last edited by nuken on Thu Nov 19, 2009 11:58 am; edited 1 time in total 
spasticdonkey







PostPosted: Thu Nov 19, 2009 11:51 am Reply with quote

the rewrites have an issue with capitalization of the gallery categories and avatar filenames... I don't have time to play with it today but I imagine an edit to htaccess like this is needed, as well as the corresponding Shortlinks files.

RewriteRule ^account-avatarsave-([a-zA-Z0-9_-]*)-([\.a-zA-Z0-9_-]*).html modules.php?name=Your_Account&op=avatarsave&category=$1&avatar=$2 [L]

I'm sure an official fix will be forthcoming soon.

note: looks like nuken got a post in before me Smile
good point about the space in the folder name, but just keep in mind if you change the folder or filenames that any users that have avatars in those folders (or with those filenames) will be broken in the forums; and you'll need to fix either by phpmyadmin or in the forums acp.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Nov 26, 2009 9:04 am Reply with quote

sak, I believe spasticdonkey's fix to be the right one, however, I would like your concurrence of the same if you would please. For now, I have made the above changes within our repository.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
sak







PostPosted: Mon Nov 30, 2009 10:31 am Reply with quote

Thanks tego, I'll give that a try. So all that seems to be necessary is the htaccess fix? No shortlinks files?
 
montego







PostPosted: Wed Dec 02, 2009 6:08 am Reply with quote

No, both .htaccess and GT file changes are necessary.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

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 ©