[1]

marcel
Guest
June 27th, 2008 at 12:40 pm

Hey im trying to figure something out here and cant seem to get it right, when users submit something via tdo mini forms and when they submit a pic within the post i want to use lightbox so when readers cklick on the tumbnail image in the post i want it so that the lightbox then pops up to show the full image… all i got so far is that readers can klick the thumbnail image in the post, then they are directed to another post with just the full pic in it, and then when they cklick it the lightbox pops up, what do i have to do to get it right?

Permalink | Quote

[2]

admin
Guest
June 27th, 2008 at 1:12 pm

How does the lightbox work? Is it a plugin? Some Javascript?

You may need to not include the thumbnail in the post, but instead use the custom field in your theme and display the image that way.

Permalink | Quote

[3]

marcel
Guest
June 27th, 2008 at 1:41 pm

lightbox its a plugin yea, a plugin that is used to show the full picture with a black screen and nothing else when clicking it, but with custom fileds it would be too much work, so its not possible any other way?

Permalink | Quote

[4]

admin
Guest
June 27th, 2008 at 4:58 pm

Of course it’s possible and custom fields are the way to go, you shouldn’t see them as hard work! Can you give me a sample html code output of how the image is displayed using lightbox?

Permalink | Quote

[5]

marcel
Guest
June 28th, 2008 at 5:45 pm

i know its not that hard work but the thingis i want to use mini forms for a recipe blog for users to post recipes, its really good for that, i couldnt really find a sample html code , its like this, a users posts a recipe with a thumbnail, then when u click on the thumbnail the large pic comes up and then when you click the large pic the lighbox comes up, so i need to cut out that one step and go from thumbnail to lightbox, would that be hard to do?

Permalink | Quote

[6]

admin
Guest
June 29th, 2008 at 10:13 am

I’ll try and have a look at it next week. It should be possible to use the “Append to Content” widget to format the image link any way you want. Does the lightbox plugin not just modify img tags in post content?

Permalink | Quote

[7]

Rob
Guest
January 28th, 2009 at 6:58 pm

Hi there. This is a great plugin! I want to use it to enable registered users to post photos.

I would also like to use the lightbox plugin function. All it needs is to append the “rel=lightbox” attribute to the uploaded image. I can’t figure out how to use the Append to Post widget to do this.

COuld you help?

Many thanks.

Permalink | Quote

[8]

Rob
Guest
January 28th, 2009 at 7:06 pm

To clarify – it needs to append the “rel=lightbox” attribute to the thumbnail link, to laod the fullsize picture via javascript.

Permalink | Quote

[9]

Mark Cunningham
Guest
February 4th, 2009 at 2:01 pm

What you could do is, using the Append widget, stick this bit of code in it:

<a href="<?php echo get_bloginfo('wpurl'); ?>?tdomf_download=<?php echo $post_id; ?>" rel=lightbox ><img src="<?php
echo get_post_meta($post_id,"_tdomf_download_thumburi_0",true);
?>" /></a>

Permalink | Quote

[10]

Rob
Guest
February 5th, 2009 at 12:58 am

Many Thanks! Great plugin!

Permalink | Quote

[11]

Richard
Guest
March 10th, 2009 at 4:10 pm

Im using that code in an append widget. However, Im showing uploaded images as a thumbnail in the published post. If I click the thumbnail, it opens a new page with the medium sized image in it. If I click that image it then open the full size in the lightbox. I want to miss out the middle stage and open the full size image from clicking the thumbnail.

My settings in the upl,oad widget are:
Checked: Do not use TDOMF handler for URL of download URL of uploaded file area:
Checked: Insert Uploaded Files as Attachments on post (this will also generate a thumbnail using Wordpress core if upload is an image)
Checked: Add thumbnail link to Attachment page to post content (if thumbnail avaliable)

Any advice much appreciated.. Thanks

Permalink | Quote

[12]

Richard
Guest
March 11th, 2009 at 5:12 pm

Ok, after much trial and error I’ve got a working version. This is how I have enabled my site to display a resized thumbnail in the post of the uploaded image, then when that image is clicked, it goes straight to a lightbox full size image overlay. In other words, it loads as an image NOT an attachment.

1- Install wp-slimbox2 or other plugin needing rel = lightbox. In wp-slimbox I checked the option to autoload-This option allows the user to automatically activate Slimbox on all links pointing to “.jpg” or “.png” or “.gif”
2- Added the TDMF uploads widget and configure as follows
checked: Do not use TDOMF handler for URL of download URL of uploaded file area: (dunno if this is important or not)
checked: Insert Uploaded Files as Attachments on post (this will also generate a thumbnail using Wordpress core if upload is an image)
checked: Add thumbnail as download link to post content (if thumbnail avaliable)

Sorry if this is obvious to you Gurus, but the options got me in a spin and I had to try everything until it worked.

Permalink | Quote

[13]

Mark Miller
Guest
May 9th, 2009 at 8:26 am

I have tried and tried to get the lightbox (I am using shadowbox WP plugin) to work with my TDOMF form uloaded images, but no luck. I can get the thumb to appear and when clicked on the full size image will load in a new blank page. I can also get the thumb to appear and when cliked on it will open up in a new post like page and can be clicked on and the lightbox function works then. I am new to this. Only been doing this about 1 week and all this time was spent on trying to get this to work. I would be so gratefull if anyone would be willing to help me. Please just tell me what you need from me. Thank you. Mark

Permalink | Quote

[14]

Mark Miller
Guest
May 10th, 2009 at 5:36 am

Hello,

Well I completly reinstaled TDOMF and Now it works.

Permalink | Quote

[15]

Shak
Guest
November 6th, 2009 at 2:24 am

Got it to work, check it out http://www.Collegeenvironments.com It will resize every large picture to fit inside the overlay. Im using a lightbox-esque plugin called Shadowbox JS.

Permalink | Quote

[16]

Touren
Guest
January 2nd, 2010 at 7:20 pm

Mark Cunningham said:
What you could do is, using the Append widget, stick this bit of code in it:

<a href="<?php echo get_bloginfo('wpurl'); ?>?tdomf_download=<?php echo $post_id; ?>" rel=lightbox ><img src="<?php
echo get_post_meta($post_id,"_tdomf_download_thumburi_0",true);
?>" /></a>

can you please explain more clearly where exactly (which file and what position) I have to use this piece of code?
it is not clear for me unfortunately how to get lightbox effect work with uploading fotos with TDO forms…

please help!

Permalink | Quote

Advertisments

Join the Discussion