First: http://tanay.co.in/nellore/?q=nellore-talk

Second: http://tanay.co.in/nellore/?q=guestbook

Third: http://tanay.co.in/nellore/?q=home

vertically one below other in same page.

how can i do this.

panels are asking for node id/title and supports only normal pages.

Comments

wescoughlin’s picture

I think your over looking panels. Panels can embed views, blocks, pages, forums, guestbooks, and much more. I'm on a site which I use panels for my user profiles, which has a couple of views, guest books, and etc... Along with my front page which I use a bunch of blocks/views to display the content within the panels.

Are you using Panels 2? I know it is still beta or whatever, but it works great, and I think there were some major improvements in that version.

saitanay’s picture

theere is nothing like forums or guest book in my views. should i get them separately as modules?

i am using panels 1

saitanay’s picture

any body please help.. i need this urgently

VVN’s picture

you can add two blocks visible only on /forum path.
for the one with the node inside:

$nid = 1;
node_show(node_load($nid), $cid); 

for the other one:

//$uid = $GLOBALS['user']->uid;
$uid = 1;
print module_invoke('guestbook', 'page', $uid); 

I hope this helps

Not tested, but it should works.

saitanay’s picture

sorry i am a beginner.. can u be more specific.. where should i place these codes?

VVN’s picture

you have to:
- create a new block on admin/build/block/add
- set the input filter to "PHP Code"
- paste the code
- on the visibility section check "Show on only the listed pages" and insert forum/*
- then activate the block (and put it on the content top or content bottom)

same for the other block.

then, check /forum

saitanay’s picture

thats great help.. thanq

saitanay’s picture

can u also give code to show forum on other page ?

where can i get more of codes like these?

saitanay’s picture

i just added the code

<?php
//$uid = $GLOBALS['user']->uid;
$uid = 1;
print module_invoke('guestbook', 'page', $uid); 
?>

as a block with PHP input type.

I gave show options as "show only on pages : home (my index page)

Result.

Another Whole page including site logo appeared instead of guestbook entries.

And that page also had the title "page not found" instead of the guest book page.

saitanay’s picture

chaos here.. any help??

saitanay’s picture

Choas here.. any help?

VVN’s picture

You aren't using Guestbook module, are you?

saitanay’s picture

i am using indeed..

saitanay’s picture

Any drupal hero can help me here?

www.nellore.co.nr - My tribute to my hometown

wescoughlin’s picture

What version of panels are you using? you never answered my questions.

saitanay’s picture

panels 1.2

www.nellore.co.nr - My tribute to my hometown

wescoughlin’s picture

I would upgrade to panels 2, although it is not finished yet it is much better. And the way a guess book works is relatively simple in drupal. It is just the comments of a node. So set your panels up so that you only show the comments and comment form for a certain node that you are going to designate for you guess book.