Hi peeps!

is is possible to have one in a block. i am planning of putting one in the front page. please help! thanks!

Comments

j3frea’s picture

I'm not sure whether you're only wanting it on your front page but if you're wanting it generally, it might be easier to modify your theme's page.tpl.php

I've been having a look adding it in a block but one of the problems is the css and javascript imports, you need the interface.js as well as jquery.js (jquery should already be included but interface.js probably won't be). I'm having a look at making a module that does this (I'm pretty new to module development though and I'm using D5)...

I had a look around at other attempts but nothing seems to really be going on with it...

[Edit]

Okay, I just had a go - I stuck the css and the javascript into my page.tpl.php and then put the fisheye code into the a new block. I had done some customizations on the css already so it worked in the header position already... Sticking that code into a block works fine (I put the block into the header)...

So in other words, it is definitely possible... I just don't know what the best method to do this would be...

ericzoo’s picture

It would be cool to have a module like this that behaves like quicktabs or nicemenu. Present a menu as a fisheye/magnify menu.

izmeez’s picture

subscribe

This sounds like a good idea. I'm interested to see what develops.

Izzy

ericzoo’s picture

Im pretty sure jquery has a similar effect but i remember finding it choppy. mootools or this interface.js had a much smoother animation. I hope somebody turns this into a module. It will be flashy but thats what the kids want these days. :D

j3frea’s picture

Okay, so supposing that this is turned into a module - what sort of positioning system should be aimed for? The reason that I ask is that, for example, in my attempt I wanted the dock in the header block on the top right (on a garland themed page) and I didn't want it wasting space so it's floated. The problem is, if this is turned into a module positioning methods will change quite radically based on whether the dock is vertical or horizontal and whether it should be floated etc. What are your thoughts?

ericzoo’s picture

Well, im not an expert but positioning should be left off of the module. It should behave as block based modules do. User can then change positioning by themselves thru a custom theme or css modification.

Here are some possible features:

1. import ico/png/gif files
2. choose between horizontal and vertical presentation
3. optional text on mouse rollover
4. enable/disable reflection
5. change icon size

http://www.ericzoo.com

j3frea’s picture

1. import ico/png/gif files
- by import do you mean upload or just specify? I agree that the links should be customizable but perhaps we shouldn't reinvent the wheel.

2. choose between horizontal and vertical presentation
- agreed

3. optional text on mouse rollover
- agreed

4. enable/disable reflection
- is reflection part of the code? I thought that was a part of the images -> if it's part of the fisheye code then i agree but otherwise I vote we tell the user to add the reflection using Gimp or something - there might be a drupal module that could do it, i'm not sure about that one...

5. change icon size
- agreed; proximity, itemwidth and maxwidth should all be specifiable

ericzoo’s picture

Users should be able to upload an image for each of the items in the magnify module.

there is a reflection effect in jquery that will automagically create the reflection but its nice-to-have feature. so maybe it can be done later.

the way this can be implemented is it can behave like a menu module. so you create a magnify menu and each menu item has two mandatory fields, an image and a path. two optional ones, text on mouse rollover and target window (default is _self).

this approach would be much simpler and sensible than making it a views dependent module. (you can fork a views version down the road)

the module should come in a default set of icons with reflections so that users can use the module straight away.

http://www.ericzoo.com

j3frea’s picture

Well, it turns out that creating a module is easier than I thought. I had a quick stab at making a module to do this after I saw that it could easily be implemented as a block. I've sort of written a framework for the module - links (and their images) can't be changed yet but positioning can be edited (if the user knows CSS) using the config page. I'll look into adding the optional text soon and the other config items are also available - proximity, maxwidth and itemwidth as well as the halign parameter. I haven't added vertical docking yet but I'm sure it'll be pretty straight forward. I want to upload what I've done so far but I don't know where to put it.

ericzoo’s picture

http://drupal.org/contribute/development

there is a module development section there.

http://www.ericzoo.com

j3frea’s picture

okay, that was kind of what I was afraid of - that leads you to requesting a CVS account but in order to get the account the reviewers may want to see the module - that means that it needs to be somewhere else...

ericzoo’s picture

I can host it. if you want.

http://www.ericzoo.com

j3frea’s picture

Thanks, I just created an account on http://freedrupal5hosting.com/ (thinking I could upload the module for demo purposes) but anyway, I've uploaded it there now: http://freadom.tp2p.com/node/1 it still needs a lot of work but yeah... at least it's out there...

ericzoo’s picture

I will help test it...

I am sure it will be approved

http://www.ericzoo.com

j3frea’s picture

One of the things that they say when applying is that you mustn't tell them "It's 75% complete" - you need to give them a finished product that just needs polishing I think... So I reckon once links can be altered I'll actually get accepted - I've just applied though anyway, who knows...

j3frea’s picture

Okay, the next step that I'm struggling with is creating some sort of interface to build a menu with... I've had a look at the menu module to get an idea of what's going on but I think in this case there may be an easier way...

The problem is essentially:
1. I need a config page that is dynamically expandable (to allow for an unknown number of menu items)
2. Each menu item must have the following properties: title, url, image (the url to an image and the ability to upload an image for the menu item), weight...

I started a forum topic with the hopes that someone might help but it seems to be fading into the abyss... http://drupal.org/node/321974

Hopefully someone here will be able to help

j3frea’s picture

The latest version: version 0.3 is now available - it actually supports dynamic menu items (Using CCK and imagefield)!
http://freadom.tp2p.com/node/3

Please give your feedback and also make sure that you read the new installation instructions (the installation creates the necessary content type)...

- http://imagesoftheinvisible.blogspot.com -

ericzoo’s picture

the first version strangely cause my computer to hang. i didnt get around to posting that info here. sorry.

http://www.ericzoo.com

ericzoo’s picture

oh is this for drupal 5? bummer

http://www.ericzoo.com

j3frea’s picture

ja, sorry - I'm working on doing a d6 version but I use d5 (social networking stuff) so it's much easier to just work on d5... I'll get moving a bit more on the d6 version :)

- http://imagesoftheinvisible.blogspot.com -

j3frea’s picture

Just so that everyone knows, I'm discovering a number of flaws - the first is that technically the install requires advanced profile - I know it seems weird, it's because when I was trying to figure out how to import the new data type I just had a look at that module since I knew that it could do it. Well, it turns out that the module had a custom function (which I'm just going to steal across for fisheye).

The second thing is not major although it does matter: dependencies are not all listed - in reality it does require content copy to be installed, it also needs the link field type for cck as well as number and option widgets, I'm not sure about text...

Please will anyone who is using this module tell me about your experience with it - what would make it easier to figure out how to use, what would make it better... This is my first attempt at any sort of module development and I'm sort of guessing what I should be doing...

- http://imagesoftheinvisible.blogspot.com -

klonos’s picture

I am looking for this 0.3 version for D6 but the link you provide leads to a free D5 hosting website. It does list a dozen websites there, but still nothing related to the fisheye module.

Can we please have another working link so people can actually give this a spin?

BTW, why don't you create a new project and upload this module in drupal.org? I see in a post that you mention that you've applied for a cvs account and all. Do you mean here in drupal.org? What happened with that? If you haven't gone that direction maybe it is time you did. What say you?

Start or Maintain Modules, Themes or Installation Profiles
Start a new project

j3frea’s picture

Okay, I'm back by popular demand (as I'm sure you can see by the last few posts - me, me, ... oh well... I'm sure someone wants this...)

The first d6 version is now available: http://freadom.tp2p.com/

I hope it works :)

- http://imagesoftheinvisible.blogspot.com -

ericzoo’s picture

# warning: include_once(./sites/all/modules/cck/content_admin.inc) [function.include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\drupal6\sites\all\modules\fisheye\fisheye.install on line 44.
# warning: include_once() [function.include]: Failed opening './sites/all/modules/cck/content_admin.inc' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\drupal6\sites\all\modules\fisheye\fisheye.install on line 44.
# warning: file_get_contents(/includes/fisheye_menu_item.inc) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\drupal6\sites\all\modules\fisheye\fisheye.install on line 47.

error on my local installation - xampp. drupal 6.4... cck. views2.

http://www.ericzoo.com

j3frea’s picture

I'm working on figuring out why that is happening to you - I can't replicate that error (although I did manage to get a derivative of it - I think)... If you like, just open the "fisheye/includes/fisheye_menu_item.inc" and then import the content type manually... That should set it up for you.

I'll continue trying to figure it out but I'm in the middle of finals so I don't have piles of time...

- http://imagesoftheinvisible.blogspot.com -

ericzoo’s picture

its not clear how you create a fisheye menu...
the fisheye configuration is there but i tried adding a ckk. menu and views and there was no fisheye options.

http://www.ericzoo.com

j3frea’s picture

1. Open the file "fisheye/includes/fisheye_menu_item.inc"
2. Copy all that text
3. Go to "http://sitename/admin/content/types/import"
4. Paste all the text there
5. Click the "Import" button
6. Create a new menu item by going to "http://sitename/node/add" and selecting "Fisheye Menu Item" and filling in the fields

That should work, you also need to add the Fisheye menu to one of the blocks...

- http://imagesoftheinvisible.blogspot.com -

esfand55’s picture

Hi.

There is no download link in this given site (http://freadom.tp2p.com/). Would you please place the direct download link here?

Thanks

~Esfandiyar

j3frea’s picture

Can I assume that this is working for everyone as it is right now?

I haven't had much time recently but I do aim to make the content type get added dynamically when the module is installed...

- http://imagesoftheinvisible.blogspot.com -

j3frea’s picture

I see that there have a been a couple of people since I lasted posted who expressed some interest in the project.

I did apply with Drupal for a cvs account but the project was in too much of an alpha state.
I did fix it up but since there was no interest here I haven't bothered doing anything more on it.
I'm also pretty shocking at logging in here so the chances of me responding are slim.
There is also a new version of Drupal right around the corner and so it would be a bit of a waste to make this project work on a version that is about to be defunct.

However, Drupal does have jquery built in by default. The version was older than required when I was working on this but it is not difficult to include javascript files.

If you would like a fisheye menu in your project I would recommend that you hack it in rather than worry about a module because there is little interest and it's not that difficult anyway - the only thing is that it won't integrate as nicely.