Author |
Message |
j4rdin
Worker


Joined: May 26, 2006
Posts: 153
|
Posted:
Sun Jul 29, 2007 6:25 am |
|
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 |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Sun Jul 29, 2007 10:33 am |
|
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 |
|
|
 |
j4rdin

|
Posted:
Sun Jul 29, 2007 11:03 am |
|
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

|
Posted:
Sun Jul 29, 2007 11:15 am |
|
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

|
Posted:
Sun Jul 29, 2007 11:30 am |
|
|
|
 |
j4rdin

|
Posted:
Sun Jul 29, 2007 12:14 pm |
|
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

|
Posted:
Sun Jul 29, 2007 12:58 pm |
|
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

|
Posted:
Sun Jul 29, 2007 2:22 pm |
|
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

|
Posted:
Sun Jul 29, 2007 2:31 pm |
|
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  |
|
|
|
 |
Gremmie

|
Posted:
Sun Jul 29, 2007 2:50 pm |
|
Don't do anything drastic until we hear from a short links expert.  |
|
|
|
 |
Gremmie

|
Posted:
Tue Jul 31, 2007 5:00 pm |
|
Montego, can you shed any light on this? Thanks. |
|
|
|
 |
j4rdin

|
Posted:
Sat Aug 04, 2007 1:28 pm |
|
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

|
Posted:
Sat Aug 04, 2007 3:00 pm |
|
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
|
Posted:
Thu Aug 09, 2007 12:01 pm |
|
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! |
|
|
 |
j4rdin

|
Posted:
Tue Aug 28, 2007 1:54 pm |
|
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

|
Posted:
Tue Aug 28, 2007 7:27 pm |
|
Yeah, still on my list of "TO DOs" but haven't gotten to it yet. Sorry... |
|
|
|
 |
montego

|
Posted:
Fri Sep 14, 2007 9:05 pm |
|
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&op=avatarsave&category=([a-z]*)&avatar=([\.0-9a-z]*)"',
|
=== REPLACE WITH ===
Code:
'"(?<!/)modules.php\?name=Your_Account&op=avatarsave&category=([a-z]*)&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
|
Posted:
Mon Oct 29, 2007 4:11 pm |
|
I've been experiencing the same problem, but I've not been able to get it to work.
Unless you take the underscore out of the filename it thinks it is the wrong filetype. |
|
|
|
 |
montego

|
Posted:
Tue Oct 30, 2007 7:00 am |
|
jakec, does the underscore work with ShortLinks turned OFF? |
|
|
|
 |
jakec

|
Posted:
Tue Oct 30, 2007 7:11 am |
|
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
|
Posted:
Tue Oct 30, 2007 10:36 am |
|
Works only with short links off in the newest version without issues but I can`t check this in 2.10.01 |
|
|
|
 |
jakec

|
Posted:
Tue Oct 30, 2007 1:59 pm |
|
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

|
Posted:
Tue Nov 06, 2007 7:16 am |
|
Hi Montego,
Did you get chance to look at this?
Jakec |
|
|
|
 |
montego

|
Posted:
Sat Nov 10, 2007 2:17 pm |
|
No. Have been swamped as you could tell from my absence from the forums... its on "the list". |
|
|
|
 |
jakec

|
Posted:
Sat Nov 10, 2007 2:33 pm |
|
Good stuff, I know everyone is busy at the moment and your absence from the forums had been noted.  |
|
|
|
 |
|