few problems

Events happening in the community are now at Drupal community events on www.drupal.org.
demon326's picture

Hi all,i'm starting this topics so i dont have to hijack the other ones :).

now i'm having some problems and these are the following:
1 recent topics block wont show topics
2 new user regestration gets ""this board has no forums"( i dont know if the problem is with the module but i have to grant the user manualy the acces :S)
3 session problem?,when i log in to phpbb using my drupal super account nothings hapens when logging in the fields just reset,but when i comment out the following lines in .htacces:

#RewriteCond %{QUERY_STRING} ^mode=login(.)$
  #RewriteCond %{QUERY_STRING} !^bypass=true(.
)$
  #RewriteRule ^ucp.php(.*)$ ../phpbb/login [L]

then i can log in without problems

avatars wont show up:
this is what i did:
1. make a dir /shared/avatars in the forum directory
2.set the file system path off drupal to /forum/shared/
3. set the avatar path of drupal in /avatars
4. edit the ucp_profile.php file for the avatar settings
5. i set the avatar path to ../shared/avatars/
6. it wont work when i view the avatar emty field the url is like this:
http://www.ashladan.be/forum/download.php?avatar=3.jpg

<?php
 
/** Write changes back to Drupal */
   
function update_drupal() {
     global
$config, $user, $db;
      
//Variables you may have to change
    
$drupal_user_table = 'drupal_users';
    
$drupal_avatar_path = '../shared/avatars';
      
//the line above is relative to <drupal-directory/files
    
?>

those are all the problems that i encounter so pls help me with it cause other uses can also having this problem :)

Greetz Demon

Comments

problem 1 - try readin the

jase951's picture

problem 1 - try readin the other article

problem 2 - have you added any forums on phpBB login using bypass phpBB admin and create forums.

prblem 3 - fields just reset? what do you mean - are you logging in properly i.e. can other users and youself login to both drupal and phpbb without problems. If not, you need to look at your cookies.

Jason

hi jason, you sayed "problem

demon326's picture

hi jason,

you sayed "problem 2 - have you added any forums on phpBB login using bypass phpBB admin and create forums."

i dident added any forums with the bypass function the function dont even works but i think its a phpbb bug and not off the module..

"prblem 3 - fields just reset? what do you mean - are you logging in properly i.e. can other users and youself login to both drupal and phpbb without problems. If not, you need to look at your cookies."

people can log in but not me as admin.. when i fill in the username field and password on the forum and when i click log on the fields just reset themself.. nothing hapens and yes i always log in to drupal whats not a problem here..

problem 1 - try readin the other article:
i already did it but i dont get i.. and i made this topic to post all my problems here so i can stop hijacking other peoples there topics :D

Demon:)

so you are saying that

jase951's picture

so you are saying that everyone else can login to both Drupal and phpBB via the Drupal login form, apart from you (the admin). You should have a drupal admin and this account should be able to login to Drupal but not phpBB and you should have a phpBB admin which can only log in to phpbB (use the phpBB admin to login to the bypass form).

Does your login work without the phpBB module? Have you tried creating a new account? When you say resets itself, there are no warnings (e.g. wrong password - if you do get wrong password try to reset your passworrd using forgot password in Drupal and then change your password through on-time login)?

Have you changed anything yourself to the phpBB module and .htaccess and are you using the latest versions?

hi, my 2 super user ar my

demon326's picture

hi,

my 2 super user ar my main accounts so

super user on drupal=super user on phpbb ;)

when i comment out the redirect urls i can log in phpbb and drupal without a problem so its a session problem i think

i dident change a thing to the module nor the htacces files off drupal and the module :)

and the bypass form does not work when i tryed it maybe cause the super users both have the same names..

Don't post all over the place

arkepp's picture

Please stick to one (this) story / topic and stop posting everywhere else, even if someone answers in an old thread you have created. You have duplicate / contradicting information in three threads now.

I am not sure whether the identical usernames create the problem, the bypass function passes the variables directly to phpBB exactly as if the .htaccess files wasn't there. But that's really all I can say, I am sure it is a bad decision to have two distinct users with identical usernames, and I really can't help you if you try to outsmart the instructions.

You should keep the admins separate and create a new user for yourself, and then give that user all rights in both phpBB and Drupal.

Browser dependant problem

Yorlik's picture

Hello !

Seems I have a problem similar to #2 here:

I just installed the module and happily integrated phpbb3 and Drupal 5.2.
No problems when using Firefox:
Login from the Drupal site works, switching to the forums works, logging out works, everything fine.

But:
When using Internet Explorer 7 I do not seem to be logged in in the forums after using IE7 for the login process as well.
Deleting all cookies in my Temporary internet files and trying the whole login again didn't work as well.
When I use Internet explorer to login into my Drupal site I get logged in there and can work,
but changing to the forums doesn't log me into the forums as opposed to what happens when I use Firefox.

I must admit I'm clueless here.

That could very well be,

arkepp's picture

That could very well be, since I don't have access to IE 7.

Have a look at http://groups.drupal.org/node/5912 , I'm particularly interested in what cookies you have.

hm, I had a friend test http://kepp.net/phpbb3 with IE 7. He says it worked fine, so at least it works in some cases.

The cookies ...

Yorlik's picture

I analyzed the cookies I got from using Firefox and IE7, and it appears, the uid on the phpbb_..._u cookie is correct on the firefox generated cookies, but when i try to login with IE7 the user ID is set to 1. I'm not sure if there is a security setting or something in IE which prevents that.

Easy to test, does it work

arkepp's picture

Easy to test, does it work at http://kepp.net/phpbb3 ?

No problem at the test site

Yorlik's picture

It seems to work fine at the test site.

I checked the following at my site:

Drupal version: 5.2
phpbb3 version: phpBB3 RC5 - The database got converted from a former phpbb2 installation. User_IDs all over the database got changed manually - install was almost fresh
module from: phpbb3-drupal5.2-beta.tgz

drupal table prefix: none => edited the changed ucp_profile.php from the module package accordingly and copied it to includes/ucp/ucp_profile.php
picture path in same file adapted as well, it is the directory /var/drupalfiles/pictures, softlinked to /forum/shared/pictures - works from both sides - drupal and phpbb3
"Clean URLs" : enabled
picture support: enabled
Move the phpBB3 directory into the Drupal directory, rename it "forum": done
Make sure phpBB uses the same database as Drupal: done (with a table prefix)
Leave the prefix as "phpbb_": its phpbb3_ in my case
Give the first user a name that reminds you it is the phpBB super-user: Done.
phpbb Account activation: disable: Done
Security settings - Allow persistent logins: Yes: done
cookie domain: .mydomain.org (example)
cookie path: /
This module has not been tested with forced password changes.: not activated
Create the structure shared/avatars in the forum directory: Its /forum/shared/pictures as a softlink from /var/drupalfiles/pictures (my drupal image place)
Enable Avatar uploading: Yes: done
Maximum avatar dimensions: 85 x 85 (identical to Drupal): done
Avatar storage path: shared/pictures: done (chmoded to 777, owner www-data)
Now go back to Drupal and change the upload directory to forum/shared: I'm using /var/drupalfiles/
configure in user settings the path to avatars to be "avatars" rather than pictures. : different setup here
1.4 Recommended: Install phpMyAdmin: done - I love it
Tweak user sequence in Drupal: done

Unpack the phpbb module in /modules: done
Edit the configuration file configuration.inc to your needs: done - changed the phpbb3 prefix to mine (phpbb3_)
Then go into Drupal's module configuration dialog and activate the module: done
Rename phpbb.htaccess to .htaccess and move it into the phpBB3-directory: done

Create a new user.Login as this user, the go to the forum. Check that the user is logged in: Done: Works fine in Firefox, doesn't work in IE7

cp {drupal-directory}/modules/phpbb/ucp_profile.php /forum/includes/ucp/ucp_profile <== I assume you meant ucp_profile.php, which I did

Editing:
$drupal_user_table = 'drupal_users'; <== its 'users' in my case - I have no prefix for drupal
$drupal_avatar_path = 'forum/shared/avatars/'; <== changed to 'forum/shared/pictures'

You should be done at this point. Test thouroughly before you let your users in: Everything worked fine until i used IE7

'administer phpbb' and 'edit drupal users': Both disabled for authenticated and anonymous users.

Must be client side problem -. but which ?

Yorlik's picture

I think it must be a client side problem .. just which ??
Maybe some IE7 settings ?

Issue solved

Yorlik's picture

It appears that the issue on my side was an incorrect cookie domain.
I used the dot ahead, like in
'.mydomain.com', and after changing it to
'mydomain.com' it worked.

Glad you figured it out. I

arkepp's picture

Glad you figured it out. I think the cookie domain issue is still largely unresolved, in the sense that everyone can get it to work, but there currently isnt a way that works for everyone. Probably because of differences in installations / environments that haven't been nailed down yet.

kjuib sort of reported the opposite of what you saw: http://groups.drupal.org/node/5912#comment-16882 (but he is using a subdomain, and I am not sure what browser he tested with).

hi people,i gona steal my

demon326's picture

hi people,i gona steal my own topic again :D.

Arkepp this question is special for you..,

like you can read in the start post the users arent getting in the right user group..,i was just inspecting the .module file and i see this code

<?php
 
// Insert a group for the user
     
$query "INSERT INTO {$phpbbcfg['db_user_group']} "
               
."(<code>group_id</code>,<code>user_id</code>,<code>group_leader</code>,<code>user_pending</code>)"
               
." VALUES( 2, {$edit['uid']}, 0, 0)";
     
$res = db_query($query) or die('Query failed: ' . db_error() . " \n" . $query . "\n");
?>

this code is putting the user in the registerd user group right?.. can you explain why its not working onmy board.. they get the rank and titel off "member" but they dont get in the registerd user group and its not a phpbb 3 bug cause i'm the only one that has the problem.

Greetz Demon

Yeah, I should update that

arkepp's picture

Yeah, I should update that comment in the code.

What is the value of SELECT * FROM phpbb_groups WHERE group_id =2

Don't forget that no attempt has been made to support upgrades from phpBB 2.0. I'll probably deal with it later, but it'll be well after the phpBB folks finalize the upgrade script.

mm thx for clearing out the

demon326's picture

mm thx for clearing out the problem.., but what do you mean with this "What is the value of SELECT * FROM phpbb_groups WHERE group_id =2"?..

your script is running great that the only nasty problem that we have on the moment :)

Greetz

That would be an output from

arkepp's picture

That would be an output from the SQL database, a query you can run through phpMyAdmin.

Spend some time learning SQL and PHP while things are working and you have time ;)

phpbb

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week