Please add support for drupal 7. It will be really helpful.

CommentFileSizeAuthor
#8 mathfilter.zip4.77 KBdjandrey
#2 7.0-compat.patch12.14 KBkrzysz00

Comments

krzysz00’s picture

I'm hacking on this.

krzysz00’s picture

Assigned: Unassigned » krzysz00
Status: Active » Patch (to be ported)
StatusFileSize
new12.14 KB

I have a patch that fixes this problem. This is a patch off the 6.x development branch to create a 7.x compatible module. This patch does not "integrate" the module into drupal 7's new look, just makes it work.

Milkman Mike’s picture

I'm a bit confused on the integration for Drupal 7 and php3.0.8. Am I correct in assuming that it isn't possible as of now? If that is correct, when will the "patch" be put into place and how would it be applied? Is it possible to revert back to Drupal 6.??? and use the module to integrate to PHP 3.0.8? I am in the process of testing to see if the two different sites will fit my needs/purpose.

Thanks

Mike

bperet’s picture

I run a couple science sites and am a HEAVY mathfilter user that is trying to upgrade to Drupal 7--so not having a D7 version has been a showstopper.

Doesn't look like much activity has been going on here, so I updated the mathfilter code myself to be fully integrated with D7, fixed all the reported bugs (including caching), put in most of the requested enhancements (CSS class support, short latex-style tags [$2+2=4$]) and did a lot of code optimization and Drupal standards conformance. (With something like 4000 [tex] equations on my sites, that cache makes a HUGE difference.)

My first effort at Drupal programming, but it came out rather nice. I am using it with Windows 7 (test), Linux CentOS (production), with Apache 2.2 and PHP 5.3.6.

I would like to offer my assistance as a co-maintainer of this project, at least for the D7 implementation. I would like to see this project continue on, as it is one of my favorites.

krzysz00’s picture

Could you post the patch that adds all of the fixes you mentioned?

bperet’s picture

It started as a patch, but ended up as a major rewrite. I have a page on my research site where you can download it: mathfilter-7.x. There are instructions on the page. Any updates I make will be there for now.

I'm still learning the Drupal API and development environment, so it is a work-in-progress. Hopefully I'll hear back from the author and be able to provide official support in the future, as I am heavily dependent on this module (the forum on the site has hundreds of mathfilter equations, from simple stuff to complex matrices).

Let me know if it works for you. All you should have to do is install it and enable the filter on the appropriate text formats, and all the old equations should show up. Should be 100% compatible with the V6 [tex] commands. The V7 mathfilter will report problems on the Reports/Status Report page, which can be really helpful. Settings are in the Configuration / Content Authoring section. Help in admin/help.

RobertOak’s picture

This worked for me with practically no modifications and thank you very much, for the old [tex] tags worked, although I do not use the graph, just to display equations.

http://rs2theory.org/drupal/mathfilter

From the statistics, only 30 sites are using this module, so may I suggest taking bperet's port and starting from there as a Drupal 7 version?

I am in process of upgrading to D7 at the moment, so any problems, rewrites I have to do to fix any problems, I can report here. So far on my sandbox it works like a charm.

Thank you VERY much for doing this!

djandrey’s picture

Issue summary: View changes
StatusFileSize
new4.77 KB

1

djandrey’s picture

karnakitab’s picture

@RobertOak The working port at http://rs2theory.org/drupal/mathfilter is no more. Can you please attach it here? I had it working on my school's site, but lost the file recently. Thanks