Here's a "diff -e" patch of what I did to cac_lite.module to get the admin screens working in Drupal 5. Can someone check it?

Comments

fighella’s picture

Hey, I was gonna try your patch, but I've never used one before... I've seen the ones with - and + , which i assume mean add this line, subtract the other....

Could you explain how yours works? And I will give it a go. JD

twibberjix’s picture

Sorry - copy cac_lite.module.patch into the modules/category/contrib/cac_lite folder then run "patch < cac_lite.module.patch" it should ask what file to patch after complaining about one not being found in the patch, just type in "cac_lite.module" at the prompt and it should do it.

I'm not used to making patch files. :)

twibberjix’s picture

StatusFileSize
new15.29 KB

Wait...did you mean how can you apply it by hand? I think the format is line number followed by a for add or c to change and then what needs to be added or changed. But don't do it by hand (unless you're feeling bored), here's the module with the patch applied already.

pillarsdotnet’s picture

StatusFileSize
new1.31 KB

Here's another (bigger! better?) patch, created with diff -urN.

fighella’s picture

twibber, I used your patch and it worked a treat (so far!) Thanks alot for the help!!

JD

russgri’s picture

Title: Make the cac_lite.module admin screens work with drupal 5 » patched_cac_lite.module ??

Should I rename it to "cac_lite.module" and
place it in the modules/category/contrib/cac_lite
or
just place it in the "modules/category/contrib/cac_lite"

twibberjix’s picture

@russgri
You need to overwrite the existing cac_lite.module. So yes - rename the patched_cac_lite.module to cac_lite.module.

aangel’s picture

Title: patched_cac_lite.module ?? » patched_cac_lite.module working for me, too
bdragon’s picture

StatusFileSize
new3.26 KB

In the interest of keeping this patch from breaking horribly next time cac_lite.module is touched, here's the same in unified diff format.

*Please* use unified format, or at least context format. Ed scripts don't handle conflicts well.

Dave Cohen’s picture

Assigned: Unassigned » Dave Cohen

FYI, I am working on a patch to keep cac_lite in sync with it's sibling, tac_lite. I will post again soon...

Dave Cohen’s picture

Status: Needs review » Closed (duplicate)

I hope no one minds, I'm going to mark this as a duplicate and post the latest patch to this issue:
http://drupal.org/node/116673

gurukripa’s picture

Title: patched_cac_lite.module working for me, too » pls give a new version of cac-lite

hi..i am using cac-lite..and doesnt work even for registered users..only webmaster can c all content..cld u pls put this up as a new version update ..so we can upgrade..Drupal 5.1
thanks :)