Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
j4rdin
Worker
Worker



Joined: May 26, 2006
Posts: 153

PostPosted: Sun Jul 29, 2007 6:25 am Reply with quote

I have found a problem with the Avatars after upgrading to RN2.10.01.

I have 4 sub directories with Avatars in under the ../modules/Forums/images/avatars/

directory. This includes a gallery folder with gif files in them, all of these can still be selected and saved in the Your Info page, but I also have a number of gif files in the folder with the following file format obe_white.gif which won't save. I get the following error message.

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


I also have a folder with jpg files in the following format cep_portrait_15.jpg
which also can't be saved. I have checked both the folder permissions and that the size 100x100 pix (was 80x80) and 12144bytes (was 61440) in admin preferences is correct.

As I can change some of the Avatars I don't see it being a database problem, but other than that I'm not sure where to look.


John
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sun Jul 29, 2007 10:33 am Reply with quote

When you say "they don't save", do you mean you can't upload them via the forums profile?

I think the way phpBB is coded is that you can only upload files to one directory. If you want to make them available to other users, you are going to have to put them in the other galleries folders yourself.

Sorry if I am misunderstanding the problem.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
j4rdin







PostPosted: Sun Jul 29, 2007 11:03 am Reply with quote

Gremmie wrote:
When you say "they don't save", do you mean you can't upload them via the forums profile?

I think the way phpBB is coded is that you can only upload files to one directory. If you want to make them available to other users, you are going to have to put them in the other galleries folders yourself.

Sorry if I am misunderstanding the problem.



No the Avatars are all ready on the server and if you log-in to RavenNuke and go to the Your Info page at the bottom of the settings are the Avatar selection boxes. If you select a gallery from the drop down box, the available Avatars are displayed to the user. If he/she selects the one they want and try to save the setting you get the error.

John
 
Gremmie







PostPosted: Sun Jul 29, 2007 11:15 am Reply with quote

Oh, ok. Thanks.

Hmmm....that is weird, it shouldn't need to save the graphic file anywhere, just update a database table. Let me look at the code and try a few things.
 
Gremmie







PostPosted: Sun Jul 29, 2007 11:30 am Reply with quote

When you hover your mouse over an avatar in a gallery, can you tell me the link it is producing down in your status bar of your browser?

It should look something like this:

http://xxx.com/modules.php?name=Your_Account&op=avatarsave&category=gallery&avatar=114.gif

I am curious what your link looks like, in particular the category= part. Thanks.
 
j4rdin







PostPosted: Sun Jul 29, 2007 12:14 pm Reply with quote

Gremmie wrote:
When you hover your mouse over an avatar in a gallery, can you tell me the link it is producing down in your status bar of your browser?

It should look something like this:

http://xxx.com/modules.php?name=Your_Account&op=avatarsave&category=gallery&avatar=114.gif

I am curious what your link looks like, in particular the category= part. Thanks.


In my gallery directory the link that works is:
www.xxx.co.uk/account-avatarsave-gallery-049.gif.html

the ones that don't:
/account-avatarsave-gallery-obi.html_yellow.gif
(the file is obi_yellow.gif)

I also have two other Avatar directories as follows that don't work on the same level as the gallery directory above:

/account-avatarsave.html?category=Neverwinter&avatar=cep_portrait_10.jpg

and

/account-avatarsave.html?category=1-Avatar_pack&avatar=000.gif


I'm wondering if its something to do with the shortlinks settings in RN2.10.01

John
 
j4rdin







PostPosted: Sun Jul 29, 2007 12:58 pm Reply with quote

Have had a bit of a play and removed the _ (underscore) from within the obi_yellow.gif and it saves out to Your Info without any problem, so it looks like it might be an issue with the way shortlinks is handling the underscore within links.

I have tried the same thing with the underscore in the Neverwinter directory by changing the cep_portrait_10.jpg to 10.jpg and it still won't save, so looks like some setting to read jpegs isn't working properly.


John
 
Gremmie







PostPosted: Sun Jul 29, 2007 2:22 pm Reply with quote

The error message you are getting is very misleading. It isn't actually saving the picture. It is just checking that it exists in the proper folder and that it ends in .gif, .jpg, .png, etc.

I think you are right that it is a short links problem. I don't have that turned on at my site, and I'm afraid I'm not very familiar with it. Perhaps one of the other mods here can jump in.
 
j4rdin







PostPosted: Sun Jul 29, 2007 2:31 pm Reply with quote

Gremmie wrote:
The error message you are getting is very misleading. It isn't actually saving the picture. It is just checking that it exists in the proper folder and that it ends in .gif, .jpg, .png, etc.

I think you are right that it is a short links problem. I don't have that turned on at my site, and I'm afraid I'm not very familiar with it. Perhaps one of the other mods here can jump in.


Thanks for the help anyway. I'm wondering if i will have to move all the avatars into the one directory and change the names to remove all the underscores from the titles as it looks like it might not like multiple sub-directories either.

I assume that the url pointer to the avatar is just stored in the database, so if I change the avatar file names or directory structure all the links will be broken in the site.

John Evil or Very Mad
 
Gremmie







PostPosted: Sun Jul 29, 2007 2:50 pm Reply with quote

Don't do anything drastic until we hear from a short links expert. Smile
 
Gremmie







PostPosted: Tue Jul 31, 2007 5:00 pm Reply with quote

Montego, can you shed any light on this? Thanks.
 
j4rdin







PostPosted: Sat Aug 04, 2007 1:28 pm Reply with quote

Gremmie wrote:
Montego, can you shed any light on this? Thanks.


Has anyone had a chance to look into this issue yet.

I have just installed a fresh copy of RN2.10.01 in a sub directory for another website, having copied over the same avatar directories as in the original website, the same problem occurs.

So I would suspect that the same problem is present on all RN installs if using multiple avatar galleries.

John
 
Gremmie







PostPosted: Sat Aug 04, 2007 3:00 pm Reply with quote

I think Montego is on vacation. I don't know anything about short links, sorry.
 
montego
Site Admin



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

PostPosted: Thu Aug 09, 2007 12:01 pm Reply with quote

Just now saw this, but don't have time to look at it right this minute. Will try to get to it sometime later today or early in the morning to take a look.

_________________
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
j4rdin







PostPosted: Tue Aug 28, 2007 1:54 pm Reply with quote

montego wrote:
Just now saw this, but don't have time to look at it right this minute. Will try to get to it sometime later today or early in the morning to take a look.


Montego,
I have had to change the Avatar directory and file names to make them compatible. If this gets fixed in next RN release will see if the old versions work then.

John
 
montego







PostPosted: Tue Aug 28, 2007 7:27 pm Reply with quote

Yeah, still on my list of "TO DOs" but haven't gotten to it yet. Sorry...
 
montego







PostPosted: Fri Sep 14, 2007 9:05 pm Reply with quote

Sorry for the delays, but I believe the fix to be quite easy if you would be willing please to test it:

=== OPEN FILE ===

ShortLinks/GT-Your_Account.php

=== FIND ===

Code:


'"(?<!/)modules.php\?name=Your_Account&amp;op=avatarsave&amp;category=([a-z]*)&amp;avatar=([\.0-9a-z]*)"',


=== REPLACE WITH ===

Code:


'"(?<!/)modules.php\?name=Your_Account&amp;op=avatarsave&amp;category=([a-z]*)&amp;avatar=([\.0-9a-z_-]*)"',


=== OPEN FILE ===

.htaccess

=== FIND ===

Code:


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


=== REPLACE WITH ===

Code:


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


=== DONE ===

If this ends up working, I will modify the RavenNuke and ShortLinks next versions accordingly.
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Oct 29, 2007 4:11 pm Reply with quote

I've been experiencing the same problem, but I've not been able to get it to work. Confused

Unless you take the underscore out of the filename it thinks it is the wrong filetype.
 
View user's profile Send private message
montego







PostPosted: Tue Oct 30, 2007 7:00 am Reply with quote

jakec, does the underscore work with ShortLinks turned OFF?
 
jakec







PostPosted: Tue Oct 30, 2007 7:11 am Reply with quote

Montego,

I believe I tried that combination last night and it did work with shortlinks turned off, but I will check when I get home tonight and let you know.
 
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Tue Oct 30, 2007 10:36 am Reply with quote

Works only with short links off in the newest version without issues but I can`t check this in 2.10.01
 
View user's profile Send private message
jakec







PostPosted: Tue Oct 30, 2007 1:59 pm Reply with quote

Yes it works with shortlinks off.

Also when shortlinks is on you can change the avatar using the forums profile option instead of in Your Account, but obviously this is not ideal.
 
jakec







PostPosted: Tue Nov 06, 2007 7:16 am Reply with quote

Hi Montego,

Did you get chance to look at this?

Jakec
 
montego







PostPosted: Sat Nov 10, 2007 2:17 pm Reply with quote

No. Have been swamped as you could tell from my absence from the forums... its on "the list".
 
jakec







PostPosted: Sat Nov 10, 2007 2:33 pm Reply with quote

Good stuff, I know everyone is busy at the moment and your absence from the forums had been noted. Wink
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All 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 ©