Drupal 6 conversion notes

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

These are just some notes on the module SpectralDart has converted to Drupal 6. Logins and logouts (= sessions) appear to work fine, just remember to increase phpBB's session lifetime (see instructions, item 4). Changes to the profile (email, password) also appear to work fine, the same is true for the recent topics block.

I haven't tested avatars yet. I'm very tempted to shut down all of phpBB's fancy avatar protection system, since it's a performance hog too, and can be replace with a simple mod_rewrite rule.

The problems I have found so far are:

That's not bad at all, I think you've covered about 60% of the way (safety margin included).

Don't forget to send SpectralDart a nice thank you note for his work :) If you want to help out, grab a copy from here: http://drupal.i1media.no/downloads/phpbb3_drupal6.tar.gz

The instructions are the same as for the Drupal 5.x module, the only difference is that there is no sequence table, so you have to update the auto increment value in your database. The following is for MySQL, consult your manualt for other dbs:

ALTER TABLE table.users AUTO_INCREMENT = 1000
where table.users should be something like .drupal_users

Comments

Hi arkepp, i see you got the

demon326's picture

Hi arkepp, i see you got the files from SpectralDart..,its nice he did it :).., but i'm having a question about the code.. SpectralDart is still using the '$user' variable, but since drupal 6 the variabel needs to be '$account' :
http://api.drupal.org/api/function/hook_user/6

i dont know why he removed the $account and changed it back to $user.. altough both variables ar working :)

you did a great job SpectralDart ;)

Its just a variable name

SpectralDart's picture

Hi,

It doesn't matter what variable you use. Its just a parameter for a function. As long as you know what user stands for. All we know is what goes in the variable $user is the User's account so in the end, it doesn't make a difference.. The Avatar stuff wont work since I havent done any work on it. Didn't have much time to do it. As for the allow drupal profiles, I didn't test that. I haven't touched it so something changed from Drupal 5 to Drupal 6 that breaks it. We'll need to investigate.

We're not too far from something that will be rock solid. Arkepp, it would be nice to discuss what needs to be done and who takes care of what and the time frame to do it. That way we can get this done and over with.. Feel free to get in touch with me through email.

Glad I could help.

Any progress? I'm still

arkepp's picture

Any progress? I'm still swamped :(

Not yet...

SpectralDart's picture

I didn't have time either. Been very busy at work and the family. Doesn't look like its going to get any better since my compnay is expected to deliver lots of LEVEL D full flight sims and I might travel to places like Russia, Brazil, etc to deploy them.. Since we are both busy, maybe we can define what we could look at. You're the project leader so I'm all ears.

I mean, the first step would

arkepp's picture

I mean, the first step would be to just go through the topics I have linked to in the module maintainer guide and fix those two. That's probably an hour of work. And then poke it again until it breaks, rinse and repeat.

I wouldn't worry about the avatars from Drupal to phpBB for now, it can take a while.

Module maintainer guide

SpectralDart's picture

Hmm I must have been reading in diagonal.. I haven't seen that.. Could you put a little light into my confusion and tell me where it is? About the avatars, I gathered some information that will help do the work. At least for me since I didnt know how the avatar system worked for phpbb 3. Look here :
http://www.phpbb.com/community/viewtopic.php?f=46&t=830545&p=4726505#p47...

I'll try to do my best.. I am also fixing the teamspeak module and that takes time.. And the DRUPAL 6 caching system doesn't seem to work for me.. thats why teamspeak module is taking alot of my time..

So, has there been any

archard-gdo's picture

So, has there been any progress on an update for Drupal 6 yet? I really wanna upgrade and this pretty much the only module i need that hasn't been ported yet.

Excited to see it

nonoy5's picture

I am excited to try out Drupal 6 with phpBB3. Keep up the great work guys and hope to get an update on any advances.

:)

Thanks!
- Nonoy

I'm waiting in line too!!

appdreamer@drupal.org's picture

I'm waiting in line too!! Keep up the good work.

A bazillion thanks in advance.

I've been working on this a

archard-gdo's picture

I've been working on this a little, and I've figured out why the profile views with $phpbbcfg['allow_drupal_profiles'] weren't working. I've also diagnosed, but haven't been able to figure out how to fix the private messages link.

$phpbbcfg['allow_drupal_profiles'] was broken because in configuration.inc it was set to 'false' with quotation marks instead of without. php was treating it as a string.

As for the private message menu item, its type was set to "MENU_DYNAMIC_ITEM" - which no longer exists in Drupal 6. So I changed it to MENU_NORMAL_ITEM and the link showed up, but the new message counter is broken now and this I can't figure out how to fix it. What I have discovered is that the variable $user being used in phpbb_menu() for some reason is always using information from the super-user's account (drupal user ID 1). I haven't been able to figure out why it's doing that. And it's unusual because php_block() does almost exactly the same thing but it doesn't have any problems.

A couple insignificant

archard-gdo's picture

A couple insignificant things I found from poking at the module.

1) hook_user should check if the Drupal user ID is 1, so it doesn't overwrite the record for the anonymous user in phpBB.

2) All the profile and password stuff works both ways except for signature, which only works from Drupal to phpBB.

Re: 2

Justin W Freeman's picture

The version at http://groups.drupal.org/node/12949#comment-83940 has the signature working both ways.

It also has avatars syncing both ways and some group syncing.

phpbb

Group organizers

Group notifications

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

Hot content this week