First I will apologize if this sounds extremely to basic. However the module is very well documented in explaining what everything is. However the only thing that is getting me confused or I should say getting me started, is the snippets of code that is to be added. Not many videos or tutorials on the subject, and they all say the same thing "ad this code"image #1 I'm believing it's to the page.tpl.php file, even if correct, in what format?

This doesn't work for me:

   <a href="/path/to/contact/support center > rel="lightmodal[|height:100px;width:150px]">"Support Center"</a>

Any ideas what type of format I should be using? Again if this is too basic I'll continue to read, but it's not very clear, as to just exactly what needs to be added and where. Thank You in advance.

Comments

Boss C’s picture

Well, they changed the prior example into a link (image #1) but it was the code given in the ReadMe.txt I've tried many variations to changing the page.tpl.php with no luck. Now I'm believing I should be changing the lightbox2.module but this seems to be hacking core. Please anyone, tell me what file to change or add the code to (and maybe how), and I'll will figure out the rest. Thanks to Anyone!!

stella’s picture

Well the correct code would be:

   <a href="/path/to/contact/supportcenter" rel="lightmodal[|height:100px;width:150px]">"Support Center"</a>

Where you place the code, or even if you need to, depends on what you're trying to do. Lightbox2 module supports a number of images and videos added to your site using other modules, and can be configured to open in a lightbox when clicked. These modules include image, imagefield, filefield and emfield (videos and images) along with others. Just configure the automatic image handling at admin/settings/lightbox2/automatic for these, or in the case of cck modules (e.g. imagefield), configure it under the display settings for the content type / view.

If you're manually creating the links, then use the above snippet to open a piece of html content (not an entire page!) in a lightbox. If you want to open an entire webpage, then replace "lightmodal" with "lightframe". Likewise if you want to open an image, then use "lightbox" or "lightshow" instead. If you want to place the link in a node, then just place it in the node body field on the edit page. If you want it in a custom block, place it in the block contents field. If you want to create a menu item that opens in a lightbox, then you'll probably need the Menu Attributes module so you can set the rel attribute for the link.

Cheers,
Stella

Boss C’s picture

@Stella I thank you so much for this module, and I also greatly thank you for responding. Your directions now seem so clear to understand, and has clearly put me on the right path. Very small wish list for the assistance of other new members that download this great and very useful module. Those directions are so clear that it would be great if they could in someway be included in the ReadMe.txt, maybe somewhere in the Install Instructions? This would be so helpful to very new, and confused users, like myself :) Thank You, you're a true blessing!!

stella’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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