Closed (fixed)
Project:
Webcams
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Apr 2008 at 18:45 UTC
Updated:
3 Dec 2008 at 08:25 UTC
Jump to comment: Most recent file
Hi, is there some preliminary version of this module for Drupal 6? I'm very interested. Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | webcams6.module.patch | 6.6 KB | kriskd |
| #3 | webcams6.info_.patch | 426 bytes | kriskd |
Comments
Comment #1
moonray commentedNope, not yet, as my time is limited.
Any patches are welcome.
Comment #2
didier973 commentedsubscription: I just would like to know if someone had time and knowledge to patch the 5 series for 6.x...
Comment #3
kriskd commentedI attempted to create a patch for D6, but it's not working. I got an error when I initially created my webcam content, but then could no longer reproduce the error. And, the webcam images are not displaying. Hopefully someone with some more skill can take what I've done and get this great mod working for D6!
If anyone wants to test my patches, please don't do it on a production site! I've attached two files, one for webcams.info and one for webcams.modules.
Comment #4
kriskd commentedHere's the error I get with my patch.
Comment #5
vm commenteddid you run it through the coder.module ?
Comment #6
kriskd commentedYup, that's exactly how I did it. :-)
Comment #7
kriskd commentedOver a month since I took a stab at a patch. Moonray, will you have any availability to see if you can make it work based on what I did? Thanks for your consideration.
Comment #8
kriskd commentedI just realized webcams.install needed to be updated for D6, so I took a stab at that, but that is generating errors as well. I replaced
function (webcams_install)with the following:Which in turn created this scary error:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL DEFAULT '', `default_url` VARCHAR NOT NULL DEFAULT '', `url` VARCHAR ' at line 5 query: CREATE TABLE webcams ( `wid` INT unsigned NOT NULL auto_increment, `vid` INT unsigned NOT NULL DEFAULT 0, `nid` INT unsigned NOT NULL DEFAULT 0, `name` VARCHAR NOT NULL DEFAULT '', `default_url` VARCHAR NOT NULL DEFAULT '', `url` VARCHAR NOT NULL DEFAULT '0', `width` INT unsigned NOT NULL DEFAULT '0', `height` INT unsigned NOT NULL DEFAULT '0', `thickbox` INT unsigned NOT NULL DEFAULT '0', `link` VARCHAR NOT NULL DEFAULT '', `delay` INT unsigned NOT NULL DEFAULT '30', `timeout` INT unsigned NOT NULL DEFAULT '0', `weight` TINYINT NOT NULL DEFAULT 0, PRIMARY KEY (wid), INDEX nid (nid), INDEX vid (vid) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in C:\xampp\htdocs\drupal-6\includes\database.inc on line 514.While I was at it, I fixed (or I think I fixed) the error mentioned above in line 284 of webcams.module. I changed it to:
$webcam->wid = db_last_insert_id('{webcams}', '{webcams}_wid');I really feel like I've given this the old college try and would sure appreciate an expert taking over or giving me some guidance.
Comment #9
moonray commentedI've started work on the conversion. There are a few issues with upgrading views integration to Views 2.0, though, which is holding things up.
Comment #10
Tony Sharpe commentedsubscribe
Comment #11
moonray commentedThe development snapshot for D6 of webcams module should be available. It's fully functional, with the exception of Views 2 integration, which is proving more troublesome than I expected. Views integration is coming.
Please test it and give your feedback.
Comment #12
moonray commentedComment #13
moonray commentedDrupal 6 version released.
Comment #14
kriskd commentedThanks, Moonray!
Comment #15
albertc commentedThanks for the heads-up!