i have cck and views installed
ive gone thru the posts listed here
and i STILL dont get how to use shadowbox with drupal
(i use shadowbox with all my php sites)

the two things i need to do:
-bring up a form response page in a shadowbox window
-show full sizse images from thumbnails

pls help!
thanks!

Comments

vm’s picture

have you read through the USAGE.txt file in this modules folder?

playwithtoy’s picture

yes it was the first thing i read and it just made me more confused
they are perfect instructions for a php site
but not a drupal site

i really would like a step by step list on at least how to popup a pic from a thumbnail
in a view using an image field from cck

thanks!

vm’s picture

to have it work in a node
edit your content type that includes the imagefield
inspect your field display settings

to use in a view
when setting up the view to pull the imagefield choose your display options as well.

playwithtoy’s picture

what display options
if i have a page display in my view
which options are you talking about

im sure it seems obvious to you
but as someone whos never used this mod in drupal
nothing in the views interface has changed since installing shadowbox
making it seem like nothings different

so pls go step by step - literally

vm’s picture

This is more of a views question. When setting up your view to pull your imagefield you are presented with options on how you want that field displayed.

Reading some tutorials on the fundamentals of views and walking through those tutorials will be quite helpful.

In condensing already existing tutorials

add your imagefield to your view (I don't know what you called your imagefield in your content type)
investigate the options that are presented with regards to how this field is displayed in your view. Fundatmentally it's really no different than how you tell your content type to display the field on a teaser of a full node, by selecting its display options.

playwithtoy’s picture

the views stuff is obvious
its the shadowbox which is not

so heres what ive got so far for anyone who wants to know in the future is this

this example is for a page view with cck
1) create a new view
2) create a new page display
3) add field in view the fields '+' button
4) when the area opens up below - pick a field u know to be an image
5) hit add
now the image field name should show up in the fields area
6) click on the image field link in the fields area
7) check the box "Output this field as a link"
8) in link path input the goal url to go to

now the question is which is really relevant to shadowbox is
what field do you put this:
rel="shadowbox[gallery]"

vm’s picture

No need to rewrite the field, unless you have a specific need you've not mentioned.

When setting up the field in the view, simply choose the correct format, in the formats dropdown? which should include your shadowbox options. If those options are not there, check your admin/settings/shadowbox/automatic screen and ensure that you've not tried to force Enable for all image links otherwise I don't believe the options show, as you've essentially set a default.

playwithtoy’s picture

ahhh yes now we are getting somehwere
i didnt quite that there was a part 2 to the installation process
so now shadowbox is in my sites/all/plugins dir
and im still having a bit of trouble

lemme explain
first off the shadowbox options you mentioned are not in my formats dropdown
cool - so following your directions i went to shadowbox admin
which is where i discovered i hadnt installed part 2
so now thats installed and i adjusted shadowbox location to reflect
sites/all/plugins/shadowbox
(i love the test - it works perfectly)
ive left everything else as the default setting

now i go back to my views
and to make thing simple when i select the image field to work on it
ive checked the 'Link this field to its node' option
i look at the dropdownlist
and its still the default list with no sign of anything that says shadowbox
then i feel a wave of disappointment and come back and write you

any thoughts?
thanks

vm’s picture

If you are using Enable for all image links The option won't show as far as I can tell. The only show when that option is left unchecked and your imagecache presets are set up correctly.

vm’s picture

Status: Active » Fixed
playwithtoy’s picture

actually its not fixed
the stuff still doesnt work
and i still have no clue as why it doesnt

playwithtoy’s picture

Status: Fixed » Active
vm’s picture

try clearing views cache in adminsiter -> views -> tools tab

I set it up twice now using the methods I've layed out and it works perfectly fine. Very well could have something to do with the fact that you did not have the library downloaded and installed properly originally. If necessary uninstall and reinstall, essentially starting over now that you've realized you had originally missed a pretty big step.

playwithtoy’s picture

will do that now
also i have another question
i was really thru the install docs
and couldnt find the imagecache preset specs that shadowbox requires
could you point me to where those are documented?

thanks

vm’s picture

Status: Active » Fixed

presets are set up as you see fit. They are not shadow box specific. Since you don't have them this explains why you're not seeing any change in the formats.

I'm remarking this as fixed. Further information should be requested by creating a forum post.

playwithtoy’s picture

Status: Fixed » Active

ignore that last question
i see what you mean now - there is no exact shadowbox specified imagecache specs
but rather ones that we set up on our own to use with shadowbox

so finally with clearing the views cache everything is showing up
thanks much!

and all the dots are connecting
one last step

clicking on thumbnail actually goes to the url with the orig image
ie, it doesnt actually shadowbox the orig
ive seen this before several times
when ive installed shadowbox on php sites
and some js file is misplaced or somethings not picking something up from somewhere
also on php sites im initialising shadowbox which i dont see being done here
but since this is drupal im not really sure how the hooks work
so i have to ask your expertise

the html is rendering properly
it looks like this

<td class="image">
	<div class="sb-image sb-indivdual"><a href="tony_testimonials_0.jpg" rel="shadowbox" title="Tony Shaloub"><img src="/sites/default/files/imagecache/portrait_thumb/testimonials/tony_testimonials_0.jpg" alt="Tony Shaloub" title="Tony Shaloub"  class="imagecache imagecache-portrait_thumb" width="59" height="80" /></a></div></td>

the shadowbox js files are being imported properly .... i think
not being an expert in drupal im not sure if there are additional or missing files?

<script type="text/javascript" src="/misc/jquery.js?g"></script>
<script type="text/javascript" src="/misc/drupal.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/shadowbox.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/adapters/shadowbox-jquery.js?g"></script>
<script type="text/javascript" src="/modules/shadowbox/shadowbox_auto.js?g"></script>

<script type="text/javascript" src="/sites/all/plugins/shadowbox/languages/shadowbox-en.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-img.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-swf.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-flv.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-qt.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-wmp.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-html.js?g"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-iframe.js?g"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "shadowbox": { "animate": 1, "animateFade": 1, "animSequence": "wh", "auto_enable_all_images": 1, "auto_gallery": 0, "autoplayMovies": 1, "continuous": 0, "counterLimit": "10", "counterType": "default", "displayCounter": 1, "displayNav": 1, "enableKeys": 1, "fadeDuration": "0.35", "handleOversize": "resize", "handleUnsupported": "link", "initialHeight": 160, "initialWidth": 320, "language": "en", "modal": false, "overlayColor": "#000", "overlayOpacity": "0.85", "players": [ "img", "swf", "flv", "qt", "wmp", "html", "iframe" ], "resizeDuration": "0.35", "showMovieControls": 1, "slideshowDelay": "0", "viewportPadding": 20 } });
//--><!]]>
</script>

in addition it looks the shadowbox css is being pulled in

your thoughts are apprec
thanks!
toy

psynaptic’s picture

href="tony_testimonials_0.jpg" looks wrong since it should be sites/default/files/tony_testimonials_0.jpg or files/tony_testimonials_0.jpg

playwithtoy’s picture

hey p
thanks for the reply
yeah i just upgraded modules yesterday
and it blew out a ton of stuff
i think im gonna end up spending today reinstalling drupal
=:-(

psynaptic’s picture

Status: Active » Fixed

Reopen this issue if you have the same problem with your fresh install.

Status: Fixed » Closed (fixed)

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

drupalvino’s picture

Hi,

I am using drupal 7. When I click the image, my custom form will be display in shadowbox or colorbox.
How can I display that form in shadowbox or colorbox?

any idea?