Upgrade to drupal5?

mishhh - March 19, 2007 - 19:33
Project:Flickrstickr
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:toma
Status:closed
Description

Is it necessary to put just an .info file for version 5 of drupal? Or an upgrade is needed?

#1

mg2020 - May 4, 2007 - 00:08

I have the same question...

But, I put a .info file in there, and had the image functionality in the post pages, but no way to administer (i.e. no way to enter API key). The access controls were in place, but no admin to be found.

#2

mg2020 - May 4, 2007 - 00:08

I have the same question...

But, I put a .info file in there, and had the image functionality in the post pages, but no way to administer (i.e. no way to enter API key). The access controls were in place, but no admin to be found.

#3

bw - May 31, 2007 - 15:29

Hi,
I've encountered the same problem - created an info file and receive the ability to configure permissions for the module and view it in posts but nowhere can I configure the API key, etc.

We would be happy to pay for sponsorship for backporting this to Drupal 5.

best,
bww

#4

wayfarer_boy - June 13, 2007 - 10:18

A rather quick fix (dirty hack) for this is to install the current Flickr module and use it to set up the API key. This will then create a site variable called flickr_api_key. Next, edit the FlickrStickr module, and change line 308 (the flickrstickr_getapikey function) so it returns this variable, and not the flickrstickr one:

Old code:

<?php
/**
* get current flickr ap key
* see: <a href="http://www.flickr.com/services/api/key.gne
" title="http://www.flickr.com/services/api/key.gne
" rel="nofollow">http://www.flickr.com/services/api/key.gne
</a> */
function flickrstickr_getapikey() {
  return
variable_get('flickrstickr_flickrkey', '');
}
?>

New code:

<?php
/**
* get current flickr ap key
* see: <a href="http://www.flickr.com/services/api/key.gne
" title="http://www.flickr.com/services/api/key.gne
" rel="nofollow">http://www.flickr.com/services/api/key.gne
</a> */
function flickrstickr_getapikey() {
  return
variable_get('flickr_api_key', '');
}
?>

#5

lsabug - June 26, 2007 - 19:12

subscribing...

#6

wessex - August 7, 2007 - 11:17

Subscribing
-this looks like it could be a superb user-friendly way of adding Flickr images to content.

#7

toma - August 11, 2007 - 20:13
Assigned to:Anonymous» toma

anyway to have this module for 5.1

Thanks

#8

emmajane - August 23, 2007 - 21:02

I am working on an upgrade. I have the connection to Flickr working correctly (without having to use the flickr.module for the API key -- for that you need to update the flickrstickr_menu function and then make sure your access control is set). I have also changed the module so that the user may ONLY access their own Flickr images. For this part I have hooked into the flickr.module as I see no advantage in redoing the validation script for the flickr username.

While I am slightly embarrassed by how messy my script is, I am happy to distribute it. HOWEVER, it's still not working. Unfortunately when I try to drag and drop an image it is not (1) pasting the URL back to flickr (2) displaying the correct size of image. I assume this is a problem with the javascript functions, but I'm not sure where to start.

If I have TinyMCE enabled and I drag and drop this is the HTML that is pasted into the text area:
<img id="flickrstickrphoto3" style="display: inline" src="http://static.flickr.com/1334/571500480_6f4832f271_s.jpg#left_240_240" alt="" />

If I do not have TinyMCE enabled and I drag and drop this is what I get:
http://static.flickr.com/231/470018726_fb987ae648_s.jpg#left_240_240

Strangely (at least I think it's strange) there does not appear to be any javascript errors when I type, "javascript:" into the address bar in Firefox.

Has anyone else seen this kind of incorrect behaviour in previous versions?

#9

christefanø - August 23, 2007 - 21:52

Can you provide a patch so we take a look at your code? The handbook has information on creating patches at http://drupal.org/patch

#10

emmajane - August 23, 2007 - 22:32

flickrstickr.info:
name = FlickrStickr
description = Enable flickr image inserter in your node forms.
dependencies = flickr
package = Flickr

flickrstickr.module patch is attached.
I used the following command to generate it:
diff -up flickrstickr5/flickrstickr.module flickrstickr/flickrstickr.module > flickrstickr5.patch
I hope that's right...

As a reminder: I removed the ability to add anyone's flickr username within the "pop-up" selection tool so there is only one box to type into (the tag). Being able to type in anyone's name was not appropriate for the site I'm working on. (Of course you could still go back to your profile page and change the flickr username to someone else's... every system has its limitations).

Thanks for taking a look!

AttachmentSize
flickrstickr5.patch7.62 KB

#11

rick_random777 - September 12, 2007 - 19:30

Hi, I'm trying to get the module to work – emmajane is there any way you could post the complete version 5 module?
I'm a bit of a n00b to drupal (and PHP), and my head is starting to rotate.

Many thanks

#12

alex_b - September 29, 2007 - 23:43

Please patch with cvs diff -u -N

You can apply this patch easier by going to /flickrstickr directory and entering

patch -p0 < flickrstickr5_0.patch

AttachmentSize
flickrstickr5_0.patch7.88 KB

#13

alex_b - September 29, 2007 - 23:44

Sorry, I was too quick on the enter key: Thanks for the upgrade patch!

#14

eagereyes - January 5, 2008 - 04:38

Subscribing ... looks like a cool idea

#15

gg66 - June 5, 2008 - 15:01

IS there yet working version of this for Drupal 5. Need something very similar

#16

wmostrey - July 10, 2008 - 08:41
Version:HEAD» 5.x-1.x-dev
Status:active» fixed

The HEAD version has been upgraded to Drupal 5 and there is now a drupal5-dev version. This will be available for download later this day, when the drupal.org cron runs and created a zip from the files.

#17

Anonymous (not verified) - July 31, 2008 - 04:46
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.