Closed (fixed)
Project:
Flexifilter
Version:
6.x-1.x-dev
Component:
Code - API
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
30 Oct 2010 at 06:16 UTC
Updated:
3 Jan 2014 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vosechu commentedLooks awesome to me. If we did it during GHOP we can certainly do the port during GCI with some love and attention from the mentors.
Comment #2
cwgordon7 commentedFlexifilter is kind of in disrepair in Drupal 6 as it is. Are we sure it's a good idea to port it to Drupal 7?
Comment #3
dmitrig01 commentedwhat about rewriting flexifilter in d7?
Comment #4
dmitrig01 commented(maybe giving it a better name?)
Comment #5
vosechu commentedIf dmitri is ready to go on this we may as well right? I'm sure that no matter what he does it's going to turn out awesome so maybe this is a great time to rewrite.
Comment #6
alex ua commentedYes, let's give this one a go. This should definitely be marked as difficult in the GCI system... Marking as RTBC.
Comment #7
alex ua commentedThis has been moved to GCI. For now I set it to 7 days for the length of time needed- please let me know if it needs more/less time.
Comment #8
dawehnerNow the student can work on it.
Comment #9
axyjo commentedHi all,
I've claimed the task on Melange and I had a quick question about when I'm supposed to use the drupal_* string functions compared to the standard PHP string functions. Coder says that I should replace the standard PHP functions with the drupal_* equivalents in most cases. However, the 6.x branch for flexifield does not use the drupal_* functions even though a.d.o says that the drupal_* functions have been around since 4.7. Should I leave it as-is then?
Work in progress is located here: https://github.com/axyjo/flexifilter-d7
Thanks!
Comment #10
axyjo commentedForgot to change status.
Comment #11
axyjo commentedGot my question answered on #drupal-gci by dmitrig01.
Comment #12
axyjo commentedCould I get an extension please? I need this weekend to fix one last hook (hook_filter), make it work in sqlite and test it with mysql. I don't have postgres, so I can't test with that. Existing work is available in the github repository mentioned in #9.
Comment #13
okokokok commentedWith the current git I'm getting this error on admin/structure/flexifilters:
Fatal error: [] operator not supported for strings in /var/www/example.org/htdocs/includes/theme.inc on line 1629
Comment #14
axyjo commentedThanks, I'll look into it.
Comment #15
dmitrig01 commentedaxyjo, try re-claiming the GCI task
Comment #16
cor3huis commentedIf you use the drupal_* string function make sure flexifilter can still export correct PHP module code.
Comment #18
axyjo commentedSorry about the delay, just finished exams yesterday. Here's the code on GitHub that *should* be ready to go. I've clicked through the admin interfaces and it seems to work, but I'm not sure how to test whether everything works as it should. There's also D7 coding standards changes included in it. Link: https://github.com/axyjo/flexifilter-d7
I've also attached a patch on this comment. This is against the current 6.x version in CVS.
@cor3huis: It seems that the PHP module code is syntactically correct, but I have no idea on how to test it.
Comment #19
axyjo commentedI have no idea why the file didn't upload and why the issue got untagged.
Comment #20
axyjo commentedUgh, trying again.
Edit: Finally!
Comment #21
cwgordon7 commentedWow, axyjo, this looks impressive! I'll ask dereine to take a look at it. Thanks for all your hard work!
Comment #22
dawehnerCouldn't this part be converted to drupal_write_record?
Some left over debug code
In general it looks very nice! Awesome work.
Would like to do some more review/testing but it seems to be ready to be approved.
Comment #23
cor3huis commentedTHX for the reply on http://drupal.org/node/957528#comment-3844280 will test it on D6, I need to fix first other D6 module issues (Mailhandler)
Comment #24
axyjo commented@dereine: Sorry about the debug code. It was part of my uncommitted changes and it got rolled in with the patch. I'll look into drupal_write_record and re-roll shortly (without the debug code).
@cor3huis: This patch converts Flexifilter to D7.
Comment #25
pillarsdotnet commentedPatch against the github code to move flexifilter to the same modules group as Markdown, SimpleWiki, Textile, and Typogrify.
Comment #26
pillarsdotnet commentedAdded a filter and a chunk-grabber, and got the following notice:
The constant doesn't appear to be defined in any of the other source files, either.
The code context is as follows:
Dunno... I'm tempted to just comment out the offending code.
Comment #27
pillarsdotnet commentedMmm....
Tried adding components multiple times, but the form just kept coming back without any noticeable change.
Finally tried clicking on the [Preview] tab, typed "foo" into the text box, and clicked the (Preview) button. Got the following errors:
Gonna give it up. Was hoping to port a couple of customfilters (D6) to flexifilter (D7) but it looks like I'm gonna have to write a custom module or two, instead.
Comment #28
axyjo commentedFLEXIFILTERS_MAX_FILTERS was removed. Let me fix up the code and try doing what you did again. I'll also integrate your patch. Thanks for testing!
Comment #29
pillarsdotnet commentedNoticed the change to use drupal_write_record(). Is it ready for testing again?
Comment #30
axyjo commentedThere's still an issue with the installation process where some of the values aren't populated correctly in the database. I'll update the issue when I fix this error. Thanks for helping test this!
Comment #31
cor3huis commented@pillarsdotnet IMHO helping to get this to work will save you quite some time instead of creating yet another module, but then again, I don't know how fast you can type ;)
Comment #32
axyjo commentedAlright, the preview functionality now works in the latest HEAD. The latest HEAD also includes some unit tests. Currently working on the component adding issue.
Comment #33
pillarsdotnet commented@cor3huis -- I already created the modules I needed. One of them converts scripture references (e.g. [John 3:16]) to block-formatted quotations from the Bible. The other converts references to node titles (e.g. [About] or [Contact Us]) to node links. Source available on request.
However, I'm still interested in testing and troubleshooting this module, once it's ready.
Comment #34
axyjo commentedAll done (I think)! Click-testing through the issues reported above works, as well as creating a text format with a flexifilter. Patch against current 6.x HEAD attached, and incremental work can be found on GitHub (http://github.com/axyjo/flexifilter-d7).
Seasons greetings!
Comment #35
axyjo commentedA few more fixes based on dereine's comments in IRC.
Comment #36
dawehnerIn general this looks fineIn general this looks fine.
Comment #37
dawehnerIn general this looks fineIn general this looks fine.
Comment #38
dawehnerIn general this looks fineIn general this looks fine.
Comment #39
js commentedsubscribing
Comment #40
finex commentedsubscribe
Comment #41
flokli commentedsubscribe.
What about creating a d7 branch (and d7 -dev version) for this on the module page?
Comment #42
jarodms commentedsubscribe
Comment #43
xenyo commentedsubscribe
Comment #44
xenyo commentedAny progress on this axygo? I tried to install the Github version but enabling the mediawiki filter gives me errors.
Cheers.
Comment #45
axyjo commentedThe patch in 35 is the latest version.
Comment #46
majortom commentedAny idea on a time frame for a D7 release?
Comment #47
cor3huis commented@majortom, as always, no timeframe. The only way to speed things up is to help out with current flexifilter whereevery you can. Thus walk the issue queue and solve issues you can, comment on issues, provide patches.
You can also contact the module maintainer an ask to become a co maintainrer for the time being. You could use the coder module online http://upgrade.boombatower.com/tools/php/directories to auto convert to a D7 version, fix something and post the alpha version as an issue with review status.
Comment #48
axyjo commentedThe patch in 35 is ready to go as soon as the maintainer is ready to commit it. It passes basic testing.
Comment #49
cor3huis commented@axyjo YEAH! happy happy joy joy!. If I'm done with other Drupal stuff I'm ready to test Flexifilter, and brush-up my RegEx skills in the same run ;). IMHO Flexifilter is awork of art and undervaluated. It would be a candidate module to put in the Spotlight as soon as stable version is available.
Comment #50
cappadona commentedsubscribe
Comment #51
Anonymous (not verified) commentedsub
Comment #52
cwgordon7 commentedIt is difficult to apply this patch because it was rolled against a drupal.org tarball from the CVS era. There are $Id$ style tags in there, as well as information added by the drupal.org packaging script. If you could reroll this against the git 6.x-1.x branch, that would be a big help. Thanks!
Comment #53
cwgordon7 commentedCommitted. Thanks everyone!