PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

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

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 Visit poster's website
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 Back to top

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.
View user's profile Send private message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

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

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
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

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.
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 11:30 am Reply with quote Back to top

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:
Only registered users can see links on this board!
Get registered or login to the forums!


I am curious what your link looks like, in particular the category= part. Thanks.
View user's profile Send private message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

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

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:
Only registered users can see links on this board!
Get registered or login to the forums!


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


In my gallery directory the link that works is:
Only registered users can see links on this board!
Get registered or login to the forums!


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
View user's profile Send private message Visit poster's website
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

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

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
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

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.
View user's profile Send private message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

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

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
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

Don't do anything drastic until we hear from a short links expert. Smile
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

Montego, can you shed any light on this? Thanks.
View user's profile Send private message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

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

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
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

I think Montego is on vacation. I don't know anything about short links, sorry.
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

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

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
View user's profile Send private message Visit poster's website
montego
Site Admin


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

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

Yeah, still on my list of "TO DOs" but haven't gotten to it yet. Sorry...
View user's profile Send private message Visit poster's website
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
jakec
Site Admin


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

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

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
Site Admin


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

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

jakec, does the underscore work with ShortLinks turned OFF?
View user's profile Send private message Visit poster's website
jakec
Site Admin


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

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

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.
View user's profile Send private message
Susann
Moderator


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

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

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 Visit poster's website
jakec
Site Admin


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

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

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.
View user's profile Send private message
jakec
Site Admin


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

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

Hi Montego,

Did you get chance to look at this?

Jakec
View user's profile Send private message
montego
Site Admin


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

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

No. Have been swamped as you could tell from my absence from the forums... its on "the list".
View user's profile Send private message Visit poster's website
jakec
Site Admin


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

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

Good stuff, I know everyone is busy at the moment and your absence from the forums had been noted. Wink
View user's profile Send private message
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum