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
soulreaver418
Client



Joined: Oct 24, 2007
Posts: 20

PostPosted: Wed Oct 24, 2007 7:32 pm Reply with quote

I have a problem with my phpbb settings in RavenNuke, everytime I try to change the directory for uploaded and click 'submit', it does not hold the setting.

However, if I change the gallery directory it takes no problem. I have no mods installed other than what came with the raven download. I have tried taking off my site theme back to default to no avail, I have chmod the avatar directory to 777 due to an avatar uploading issue I was facing.

Now I need to add an upload folder under the images/avatar folder but it does nothing when I update and submit.

Any ideas?


Last edited by soulreaver418 on Thu Oct 25, 2007 4:00 pm; edited 1 time in total 
View user's profile Send private message
soulreaver418







PostPosted: Thu Oct 25, 2007 3:28 pm Reply with quote

No ideas from anyone yet? Well, I'll keep on picking at it, worked out alot of the other issues but, hey.

Also, my site is www.sanctified-wow.com if you wanted to visit it to check out stuff or just give a suggestion here or there.
 
Gremmie
Former Moderator in Good Standing



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

PostPosted: Thu Oct 25, 2007 5:32 pm Reply with quote

I have reproduced the problem on my site. I will enter this as a bug in our bugtracker and look into a fix shortly. Thanks.

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







PostPosted: Thu Oct 25, 2007 5:45 pm Reply with quote

I looked at the code, and apparently it is trying to be "helpful"....it is checking to see if the directory exists first before allowing you to change the setting. Try creating the directory first and then change the setting accordingly. Let me know. Thanks.
 
soulreaver418







PostPosted: Thu Oct 25, 2007 6:56 pm Reply with quote

I have created the directory and chmoded it to 777 as well to see if that was an issue and no go. Odd that the gallery dir can be changed but not the uploaded avatars.

Thanks for looking into it. Oh, I also tried just to delete the directory as well in the admin settings but I can't modify it at all. It's like it is locked into the default dir settings.
 
Gremmie







PostPosted: Thu Oct 25, 2007 8:07 pm Reply with quote

It looks like it checks to see if the directory you entered exists and is writable. If not then it goes back to the default setting.

I will look into this a bit more.
 
Gremmie







PostPosted: Thu Oct 25, 2007 8:08 pm Reply with quote

To get you going temporarily you could change the directory using phpMyAdmin directly in the database.
 
Gremmie







PostPosted: Thu Oct 25, 2007 8:36 pm Reply with quote

Yeah there may be something goofed up in the code regarding the phpBB root path. I'll have to look into it more tomorrow.
 
Gremmie







PostPosted: Fri Oct 26, 2007 5:36 pm Reply with quote

Okay, try this out.

In modules/Forums/admin/admin_board.php find the following bit of code:

Code:


      // Attempt to prevent a mistake with this value.
      if ($config_name == 'avatar_path')
      {
         $new['avatar_path'] = trim($new['avatar_path']);
         if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path']))
         {
            $new['avatar_path'] = $default_config['avatar_path'];
         }
      } // end


Change it to this:

Code:


      // Attempt to prevent a mistake with this value.
      if ($config_name == 'avatar_path')
      {
         $new['avatar_path'] = trim($new['avatar_path']);
         $fullPath = $phpbb_root_path . '../../' . $new['avatar_path'];
         if (strstr($new['avatar_path'], "\0") || !is_dir($fullPath) || !is_writable($fullPath))
         {
            $new['avatar_path'] = $default_config['avatar_path'];
         }
      } // end


I'm not sure I like this, but you'll still have to create the directory first and make sure it is writable before you can change the value in the form.
 
Susann
Moderator



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

PostPosted: Sun Oct 28, 2007 7:25 am Reply with quote

You will have to check if the avatar displays everywhere on your site correct, I remember I had an issue with this when I used my own upload folder in a previous version of nuke, and whenever you change this folder after an upgrade or so you will end up with countless 404 errors because search engines have the path in the cache sometimes for a very long time.

Maybe evaders can look into this I´m not sure if this is really a BB2Nuke issue in RavenNuke.
 
View user's profile Send private message
Gremmie







PostPosted: Sun Oct 28, 2007 9:39 am Reply with quote

I believe it is a issue. In PHP-Nuke, that path should be relative to your PHP-Nuke root path. The way it is right now, it is assumed to be relative to the Forums directory. My fix, above, corrects that.
 
soulreaver418







PostPosted: Sun Oct 28, 2007 11:20 am Reply with quote

Ok, manually added the avatar directory in the MySQL tables. Also changed the code that you gave me. Now I can see users uploading the avatars and it saves them, but they tell me they get an Invalid user session error when they try to submit that avatar for their profile.

So, I tired to manually go in and change the users avatar path in the forums admin, that worked, only whenever I do it, it takes away that users signature. The only thing left are the img tags. Any suggestions there?
 
Susann







PostPosted: Sun Oct 28, 2007 12:51 pm Reply with quote

Check this:

http://www.ravenphpscripts.com/posts12160-highlight-invalid+session.html
 
banelos
Hangin' Around



Joined: May 05, 2006
Posts: 30

PostPosted: Tue Dec 25, 2007 9:20 am Reply with quote

Was this ever fixed in the release? I just ran into it again after having setup RN 2.10.01 and used a script to import a phpbb forum to phpnuke.

The avatar and gallery paths were wrong since they were set to phpbb standard, but when I changed the avatar path to modules/Forums/images/avatars it would not save the location.. I had made sure the folder was chmod'ed to 777 but it didn't seem to help. Ended up setting it manually in phpMyAdmin and it worked after that.

Btw. Merry Christmas to the RavenNuke team, I will donate a little christmas present today.
 
View user's profile Send private message
Gremmie







PostPosted: Tue Dec 25, 2007 2:14 pm Reply with quote

It is fixed internally, but it has not made it into an official release yet.
 
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 ©