I thought when the new CVS rights went into effect I lost access to this project, but apparently I didn't, so I guess I'll volunteer to do the 5.0 upgrade and close some of the open bugs in the process.

Comments

Marandb’s picture

This is awesome news! I have a big site upgrade that I am waiting for Troll to complete.

I can help test in any way I can.

Thank you,
Marandb

deekayen’s picture

Reminding me might not hurt. This had already fallen off my list, but I'll put some time into it right now.

deekayen’s picture

I just made several form updates so they don't make apache spew internal errors anymore. Still not ready for testing unless someone wants to help patch stuff. Next opportunity for me to work on this is Feb 1.

Marandb’s picture

Thanks again for your work on this. Unfortunately I am not much help on the coding side.

As soon as there is a testable module I will begin testing. Keep us informed.

Thanks,
Marandb
www.minifigcustomizationnetwork.com

deekayen’s picture

I think the blacklist functions work (the part I contributed). The original troll functions for functions related to searching and banning users is still broken.

chazz’s picture

Hello,
How works going ?
Is it avaible now for D5 ?

deekayen’s picture

Assigned: deekayen » Unassigned

Marco expressed interest in working on this, so I'll unassign myself for now since it'll be at least a week before I get back to this module. There are a few bugs that are show-stoppers, but shouldn't really take much effort in terms of man-hours to resolve.

mcarbone’s picture

Status: Active » Needs review
StatusFileSize
new23.49 KB

OK, here's a patch for upgrading troll for Drupal 5.x. I did as much testing as I could, but of course more is always welcome.

Oh, and here's a .info file: http://crazymonk.org/troll.info -- linked externally because drupal.org won't let me post anything with a .info extension.

mcarbone’s picture

One small issue I didn't address. The module puts the default redirection for blocked users to modules/troll/blocked.html. Problem is that it is now considered bad practice to put contrib modules in modules. They should instead be in sites/all/modules or sites/*/modules. Of course, that means the location of blocked.html is uncertain.

I'm not sure adding a

drupal_get_path('module', 'troll')

is the way to go here either, because it would prevent the user from having an alternative blocked.html anywhere else. Thoughts?

deekayen’s picture

Status: Needs review » Needs work

Re: #8 - I didn't test the patch, just read through it. I noticed most appeared to be just formatting cleanup. In two places you switched % to ! in t() replacement, but for %username, you left it alone. Any particular reason?

Re: #9 - I haven't put much thought into it, but my initial reaction is stuck on what's wrong with what you said - just replace the 'modules/troll/blocked.html' with drupal_get_path, but maybe add a ternary to test empty() on the troll_ip_ban_redirect variable so people can set the variable field to blank to go back to default.

mcarbone’s picture

#8: They were hard-coded URLs, so I didn't want them to go through check_plain. Everything else is text, and fine as is.

#9: Good call. I didn't think much about it before making that comment, obviously.

chazz’s picture

So it is working properly for Drupal 5 ?

deekayen’s picture

#12: When mcarbone updates the patch with #9, I'll commit it, then you can test it, and if you like it and I like it, I'll tag it as 5.x-1.0.

chazz’s picture

Ok, so we are waiting ;)

mcarbone’s picture

Status: Needs work » Needs review
StatusFileSize
new25.05 KB

Here it is, with #9 implemented. Test it out, let me know if there are any other problems.

deekayen’s picture

Status: Needs review » Needs work

It looks like your patch is diffed against an old version of the module; I had been committing my Drupal 5 updates up until I unassigned myself from this task. Please re-diff against the most recent CVS head version. I just committed the part of your patch by hand that updated some of the code formatting issues, but that's it.

mcarbone’s picture

My apologies -- I'm still new to proper procedure. I patched against the latest 4.7 release. I'll upload a patch against HEAD later today.

mcarbone’s picture

StatusFileSize
new15.48 KB

OK, here's the new patch, diffed against the latest CVS HEAD.

One question: why does HEAD have all the admin functionality -- searching, ip banning, and blacklisting -- moved into admin/settings? That seems more confusing to me than the menu layout in the latest 4.7 release, which put them in the admin menu with local tabs. Now they're in the settings menu sans local tabs.

deekayen’s picture

Status: Needs work » Reviewed & tested by the community

It doesn't make a difference to me. The night I did that I was under the impression the Drupal 5 admin navigation had moved more to the link tree block than in tabs, but since I can't really back that statement up with an example, you can put it back if you want. I'll tag this as ready to be committed until you either upload a tab version or give the go ahead to commit what you've uploaded so far.

mcarbone’s picture

StatusFileSize
new16.8 KB

Well, you're correct that Drupal 5 doesn't seem to have any admin menus directly underneath the Administer menu anymore. So I kept Troll under the "Site Configuration" area, but added tabs and added one for the options page to make it more usable. Patch attached.

mcarbone’s picture

StatusFileSize
new17.6 KB

Same thing, but I fixed some incorrect URLs.

deekayen’s picture

Status: Reviewed & tested by the community » Fixed

Committed patch4 and branched to DRUPAL-5. I'm about to make a dev release on the Drupal project page. Make changes through a new issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)