Upgraded to D 5.7 plus Bonus Features

mkinnan - June 5, 2008 - 15:33
Project:Image Notes
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Here is a new patch for the Imagenotes module. There are several things that need to be done before you can get imagenotes working for D5.7. First you need to use the imagenotes.patch file to patch version 4.7.x-1.x-dev. Then you need to create the imagenotes.info file in notepad with the following:

; $Id: Imagenotes.info,v 5.x-1.x Exp $
name = Imagenotes
description = This module provides flickr - style note capabilities for image nodes. It requires and uses the Fotonotes technology, more about fotonotes on their site: http://fotonotes.net/
package = Image

version = "5.x-1.x"
project = "imagenotes"
datestamp = "1182017423"

Then you need to download the file fnclient_mod.zip also attached to this post, unzip, and then rename the folder from 'fnclient_mod' to 'fnclient' withouth the quotes. Then drag and drop this folder into the imagenotes module. There are detailed instructions in the imagnotes documentation. You must use this fnclient because changes were made to the code. If you download the fnclient from the official website, the module will not work.

Please post any questions, comments, or concerns you may have.

 

What does this patch do:

(1) Upgrade the Imagenotes module to Drupal 5.7

(2) When the image is viewed in PREVIEW mode versus ORIGINAL mode, the 'box' appears around the same region in the images.

(3) The annotations are searched when you perform a search

(4) Under ACCESS CONTROL, there are the following three settings:
            administer imagenotes
            create imagenotes
            create others imagenotes (allows users to annotate other user images)

(5) On the EDIT tab for an image you uploaded, there is a checkbox that says, “Other user can note on this node.”  It is important to note that this box is checked by default.  If you uncheck the box and later decide to edit the image, the box gets rechecked.  All you have to do is uncheck again.  I figured this is not a problem because I don’t anticipate users constantly editing their images.

(6) Fixed the error when hyperlinks are created.

 

Special thanks to the company below for creating modifications 4, 5, and 6. They got the job done quickly and efficiently.

CMS Website Services

www.cmswebsiteservices.com

info@cmswebsiteservices.com

 

AttachmentSize
imagenotes.patch15.96 KB
fnclient_mod.zip86.83 KB

#1

mkinnan - June 6, 2008 - 15:37
Title:Upgrade to D 5.7 plus bonus features» Upgraded to D 5.7 plus bonus features

There is a current problem with the patch. If you have imagenotes installed on a D 5.7 using the other patch and then try to upgrade using this patch, there is a error. If you DO NOT have a previous version of imagenotes installed, then there are no errors. The error only occurs if you are upgrading from the previous patch. This issue has been reported and is currently being fixed.

Mark

#2

mkinnan - June 9, 2008 - 18:28
Title:Upgraded to D 5.7 plus bonus features» Upgraded to D 5.7 plus Bonus Features

Patch has been fixed. Please let me know if you get this to work or you have trouble.

Thank you.

Mark

AttachmentSize
imagenotes_060908.patch 16.79 KB

#3

philkid - June 20, 2008 - 00:21

hi mark,
I have followed your procedure in implementing imagenotes patch on my site.. However, I have noticed I have some errors... The "add,edit..etc" shows up on the top of the image and I can annotate the image but when I refresh and check the image, nothing shows up... Also, I get an error called "user warning: Unknown column 'width' in 'field list' query: INSERT INTO imagenotes (nid, uid, annotation_id, title, content, xml, width, height) VALUES... " and "user warning: Unknown column 'width' in 'field list' query: UPDATE imagenotes SET title=...."
I am very interested in this module.... espcially the bonues features.. I have used fotonotes module that is available on the site but i do not like how i can only see the annotation when "edit fotonotes" is clicked...
Thank you very much for reading... : )

#4

mkinnan - June 20, 2008 - 14:00

I just tested everything from scratch on a fresh install of Drupal 5.7 and it worked fine. This has been tested on a server with MySQL 4.1.22 and PHP 4.4.8.

This is the procedure I followed:

(1) Download imagenotes 4.7.x-1.x-dev.

(2) Download fnclient_mod.zip from this post.

(3) Download imagenotes_060908.patch from this post.

(4) Extract imagenotes and fnclient_mod.zip.

(5) Copy the fnclient_mod into the imagenotes folder and rename fnclient_mod to fnclient. Inside the imagenotes folder you will have the fnclient folder and the imagenotes files.

(6) Patch the *.inc, *.install, and *.module files following the Cygwin (http://drupal.org/node/32875) process or similar process.

(7) Create the *.info file and copy into the imagenotes folder.

(8) Install image module on your Drupal site. I have only tested with 5.x-1.8 and not the newer version, but it should still work.

(9) Activate modules and configure user permissions.

(10) Copy the imagenotes folder into the modules directory of your Drupal site.

(11) Active module and configure user permissions.

(12) Create an image and see if you can annotate.

Does that help?

#5

philkid - June 20, 2008 - 14:20

Thanks for responding so quickly,

I have followed your procedure multiple times. Instead of patching the file with cygwin, I used Gnuwin. I have drupal 5.7, my server is godaddy shared server with mysql 4....

I can annotate on the picture when I upload and it shows on the screen.. But, when I go back to my thumbnail pictures, there's an error I mentioned in earlier post on the top of the screen. The picture does not have any notes, i have to redo the annotations again. I guess what I am trying to say is the notes are not getting saved...
Mark, I am trying to create this site that is requires all of the components that this module has to offer.. It is the KEY element to my new site... Do you know what could be wrong with all this? or should i just try go find some other modules out there...
I have noticed there's only fotonotes and I can't stand that module...

I need users to be able to search my annotations,
users upload pic and annotate pictures,
users view the annotated pictures WITHOUT clicking on edit fotonotes tab...
These are the basic elements toward my site and I really believe that ur imagenotes module is perfect for my new business venture.. Thanks again : )

#6

mkinnan - June 20, 2008 - 17:51

I am not sure what to tell you as to why it is not working. I have installed this dozens of times on my server and never once had any trouble. It really does work. This was also a KEY module for one of my projects. You can see it in action here:

http://www.CleanDeskClub.com

I would be more than willing to help you get this installed, as I have paid A LOT of money to get this module where it is. I am all about contributing and want everyone to benefit.

First let's try the actual files I am running. I tried adding a ZIP file, but apparently Drupal.org isn't saving the files to the posts right now. Contact me through the Drupal contact with your email address so I can send you the ZIP file directly. All you will need to do is unzip and drop the imagenotes folder into your modules folder.

I have also noticed that if you DO NOT start from a fresh Drupal install, SOMETIMES this module does not work correctly. I know it is a pain to install a fresh Drupal each time, but that is how I begin doing testing.

#7

philkid - June 21, 2008 - 00:48

#8

philkid - June 21, 2008 - 00:47

this module works!
If you encounter any problems, make sure to reinstall drupal (i know it's a pain in the ass) and patch the files using gnuwin or something similar...

#9

mkinnan - July 3, 2008 - 15:18

This module works perfectly under PHP 4. If your server runs PHP 5, there will be problems with editing/deleting notes.

If anyone proficient in PHP is reading this, I would appreciate any help to get this running on PHP 5.

Thank you!!

Mark

#10

MicroPaul - March 23, 2009 - 01:53

I was wondering if anybody had this module that worked under php5??? Has this been fixed? I am assuming not :(

 
 

Drupal is a registered trademark of Dries Buytaert.