Drupal 6.x support

ncd - September 23, 2008 - 09:58
Project:curvyCorners
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:needs review
Description

Is there anyone who can add Drupal 6.x support for this module?
With the current version all we get is: "This version is incompatible with the 6.4 version of Drupal core."

#1

CrashTest_ - September 28, 2008 - 18:56
Status:active» needs review

I have ported this as best as I can to Drupal 6.

I had to change the function names and file names to be compliant with the coding standards, so this patch may not work. If not, just remove all:

curvyCorner.*

files that have a matching:

curvy_corner.*

name.

Just a note, autoPad option seems to break Drupal's javascript, so it seems to need to not use that.

If someone is better (meaning more experienced) with cvsdo add, and cvs diff, I will gladly send you the files and you can create a cleaner patch (if this one doesn't work).

Thanks,

Pat (CrashTest_)

AttachmentSize
curvycorners_D6_312173.patch 10.12 KB

#2

ncd - October 8, 2008 - 07:02

OK, thank you. I will try this out....

Although, how exactly do you apply the patch?

#3

goatvirus - April 2, 2009 - 07:32

ncd - do you still need instructions on how to apply the patch? if so, i recommend reading http://drupal.org/node/60108 and http://drupal.org/node/60179 (i used UnxUtils, see http://drupal.org/node/60182, and it worked just fine)

#4

goatvirus - April 2, 2009 - 07:40

good news!

i have tried the patch in #1, and it seems to work on Drupal 6.10, at least according to some very basic tests on IE7 and Firefox 3.0.8 (both running on XP)

one little twist though... i used version 1.2.10 instead of 1.2.9 of CurvyCorners (see http://www.curvycorners.net/downloads.php) and the filenames have changed... you will need to find the code in curvy_corners.module where the javascript files are referenced (two different files, lite and full, which doesn't seem to apply anymore in 1.2.10) and change the names of the files:

- $path = drupal_get_path('module', 'curvy_corners') .'/rounded_corners.inc.js';
+ $path = drupal_get_path('module', 'curvy_corners') .'/curvycorners.js';

- $path = drupal_get_path('module', 'curvy_corners') .'/rounded_corners_lite.inc.js';
+ $path = drupal_get_path('module', 'curvy_corners') .'/curvycorners.js';

(if you change them both, the "lite" setting in the admin page admin/settings/curvy_corners will probably be totally irrelevant)

otherwise, all instructions in the README_D6 file (and #1 above), if followed closely, should give you positive results.

thanks CrashTest, this rocks!

cheers
Fish

#5

iantresman - May 20, 2009 - 18:05

See also the jQuery Eye Candy module which supports the JQuery plug-ins:

  • ColorBlend
  • CurvyCorners
  • DropShadow
  • Gradient
  • Reflection

Additional search engine keywords: curvey curveyCorners

 
 

Drupal is a registered trademark of Dries Buytaert.