The .zip file the user is requested to download from code.google.com contains subfolders and example files. Make it clear in the readme that only the 'fancybox' file needs to be uploaded to sites/all/libraries/fancybox

Also, a lot of other modules that use external libraries end up in having a path like module_name/library_name/library_name. I know that the path is customizable through the module's settings, but I feel that we need to clarify what the final path should be like by suggesting a path that contains jquery.fancybox-[version].js in the readme instructions. Something like:

'The final path should something like sites/all/libraries/fancybox/jquery.fancybox-[version].js'

Comments

klonos’s picture

Taken from #430854: 5.x Docs which is for 5.x-1.1:

I just looked into the code and it should work like that:

1. Enter a fancybox class id in the module's settings. ".fancylink" (without the quotes) should be ok.
2. Just add fancybox-style link elements to your pages:

For images
<a class="fancylink" href="image_big.jpg"><img src="image_small.jpg" alt=""/></a>

Inline content
<a class="fancylink" href="#data">This shows content of element who has id="data"</a>

Iframe
<a class="fancylink" href="http://www.example?iframe">This goes to iframe</a>
or
<a class="iframe" href="http://www.example">This goes to iframe</a>

Ajax
<a class="fancylink" href="http://www.example/data.php">This takes content using ajax</a>

3. The module should turn those links into "fancyboxes" automatically.

Please note that it should work this way - but it hasn't been tested so far as there's no D6 version yet.

If this still applies in 6.x dev, it should be added in the readme too.

klonos’s picture

Also include documentation for the fancybox_activate(); callable function from #743010: Contrib integration.

klonos’s picture

Title: Readme clarifications » 6.x Docs
saurabh.bhambry’s picture

Component: Documentation » Miscellaneous
Status: Active » Needs review

Just wanted to add my 2 cents . The views integration has been achieved already in one of the Drupal 6 ports mentioned in the thread : http://drupal.org/node/430212 (I don't know whom to thank that for). But I am attaching the code (which I downloaded from the thread mentioned) which has views integration (in fact I am using it on my website and it works perfectly in all browsers including IE 6 ). Hope this helps quicken the process of achieving the required functionality in a stable release of this module.

klonos’s picture

Component: Miscellaneous » Documentation
Status: Needs review » Active

Hi saurabh.bhambry. This issue is for the documentation in the D6version. Perhaps you meant to post this here: #742696: Views integration

Also the link to the .zip file you uploaded doesn't seem to work. Please re-upload it in the 'Views integration' post I mention above and this time make sure it works ;)

Other than that, thank you for helping out.

saurabh.bhambry’s picture

OOps !! U are dead right.. the post was meant for http://drupal.org/node/742696 . Have posted issue on that thread again along with the link to the .zip file I was referring to.

klonos’s picture

no problem :)

possum4all’s picture

Sorry, but where does this stand? Any documentation for 6?

possum4all’s picture

I'd be happy to take this, klonos, but I can't get my brain around it. That's why I asked. :(

At this point, I can't get fancybox() to fire properly in my 6.x dev installation. I'll re-read your post (above for 5.x) and see what I can get. If I manage to get it working, I'll post instructions.