Page 1 of 2

Hi.here

Posted: 09 May 2008, 11:27
by diwolf
Hi.

here is the manual to use one or several guestbooks integrated in one or several articles on your joomla1.5 site. Should work with joomla1.0 aswell.

- First, as usually, set up a guestbook with a name.

- Then, as usually, add a guestbook to a menu. Notice the id. Do not publish this menu on your website. Use it to collect your guestbooks.

- Now just insert following html lines in your article:

<iframe width="900" height="400" frameborder="0" align="middle" src="http://www.abx.com/index2.php?option=co ... tbook&id=1" marginheight="0" marginwidth="0"></iframe>

Notice: you have to insert a iframe. You have to change in the direct link (which is shown in the menu settings of this guestbook) i...index.php... to ...index2.php... and you have to add the proper id, of course.

Regards, Dietmar

Hi, thank you for th

Posted: 09 May 2008, 12:44
by Jan
Hi, thank you for this info:

I have a question:

- I cannot run it when TinyMCE editor is enabled ( html is edited in HTML box not in editor). Did you try it with some Editor...

Jan

I use the WYSIWYG ed

Posted: 09 May 2008, 13:02
by diwolf
I use the WYSIWYG editor.

There I can switch between html and wysiwyg.

I edited just the html, not the wysiwyg.

Hi. Just to add.

Posted: 09 May 2008, 13:09
by diwolf
Hi. Just to add.

I have still two problems, though.

First (excluding the height command after iframe):
I can show the guestbook only in a frame with scrollbar. It did not work to expand the screen automatically with the height (number of comments) of the guestbook, as this is the case with usual wrappers (with auto height turned on and scrolling turned off). I dont know how to implement these settings.

Second (including height after iframe):
To not have problem one, that is scroll bars inside the window, I set the height of the guestbook manually. Problem here is, that with comments coming in I would have expand every guestbook manually.

So my question to this solution would be: is it possible to show the comments over several pages?

Sorry to add somethi

Posted: 09 May 2008, 13:41
by diwolf
Sorry to add something more, but I found the solution:

Add this in the article and you dont have scrollbars inside nor the problem of auto size. I took code from the wrapper modul.

<script language="javascript" type="text/javascript">
function iFrameHeight() {
var h = 0;
if ( !document.all ) {
h = document.getElementById('blockrandom').contentDocument.height;
document.getElementById('blockrandom').style.height = h + 60 + 'px';
} else if( document.all ) {
h = document.frames('blockrandom').document.body.scrollHeight;
document.all.blockrandom.style.height = h + 20 + 'px';
}
}
</script>
<div class="contentpane">
<div class="componentheading">xxx serie</div>
<iframe width="100%" scrolling="no" frameborder="0" align="top" onload="iFrameHeight()" id="blockrandom" name="iframe" src="http://www.xxx.com//index2.php?option=c ... tbook&id=1" class="wrapper">
This option will not work correctly. Unfortunately, your browser does not support Inline Frames</iframe></div>

Me again. I really d

Posted: 09 May 2008, 14:08
by diwolf
Me again. I really dont want to spam this forum but just found out, that one can also include the code above in any html file.

So it is possible to use any guestbook of phoca on any place on the web with joomla.

I think, this is a incredible great feature ;)


regards, Dietmar

diwolf

Posted: 09 May 2008, 16:49
by Jan
diwolf
Yes you right, if this will work I can decribe it in user manual...
In tinyMCE you can edit the only html too... but for me it doesn't work

Hi Jan.T

Posted: 09 May 2008, 17:03
by diwolf
Hi Jan.

To clarify: I edit only the html.

Until now, the site is offline and in progress of development. If it is online, I post the link.

regards, Dietmar

For me it works, if

Posted: 09 May 2008, 17:27
by Jan
For me it works, if I disable TinyMCE but if the TinyMCE is enabled and I edit the HTML then it doesn't work (I ask because of other users using tinyMCE)

Re: manual: guestbooks in articles in joomla 1.5

Posted: 29 Mar 2010, 19:25
by Jan
Hi, sorry I don't know how wrappers are working :-(

Jan