I have set up my site to share knowledge and applications, and am trying to make this feature work. This is what I am trying to do:

Assuming a user is browsing my forum, when he/she clicks on a thread, I want it to open into a lightbox. In the lightbox, i want page to be shrunk to fit the lightbox. I have already made it so the blocks are disabled on all /node/*

So in essense, I am asking, how can I make it so when a user clicks on a thread, for it to open in a lightbox. And I am asking, how can I format the node to fit into the lightbox.

How can I do that stated above?

My site: http://theappshare.com

Comments

stella’s picture

Status: Active » Fixed

You will need to give each link the attribute rel="lightframe". Then see http://drupal.org/node/252260 for two different ways to open node content in a lightbox. You don't need to disable your blocks on all node/*. You just need to create a custom page.tpl.php file in your theme for those pages. See the docs for more details - particularly the second half.

Status: Fixed » Closed (fixed)

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

jager’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

Thanks for the help.

I am back again, trying to achieve the same task..

I want all my topics in my forum to open in a lightbox, without any blocks or anything. My problem is is that I do not know where to edit so that all my topic links open in a lightbox. I tried looking in the forum-topic.tpl.php but i could not find the url to edit the link to the topic.

If you guys could possibly give me a a little more information as to what files to edit, and to place what where.

Thanks in advance!

stella’s picture

Priority: Critical » Normal
Status: Active » Fixed

You could do it in the theme layer possibly, not sure. You'll need to use a theme override or hook into forum module to make the change to the links. Afraid I don't have time to help you with other modules.

Status: Fixed » Closed (fixed)

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