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
manual: guestbooks in articles in joomla 1.5
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Hi, thank you for th
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 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
If you find Phoca extensions useful, please support the project
-
diwolf
- Phoca Newbie

- Posts: 6
- Joined: 09 May 2008, 11:15
I use the WYSIWYG ed
I use the WYSIWYG editor.
There I can switch between html and wysiwyg.
I edited just the html, not the wysiwyg.
There I can switch between html and wysiwyg.
I edited just the html, not the wysiwyg.
-
diwolf
- Phoca Newbie

- Posts: 6
- Joined: 09 May 2008, 11:15
Hi. Just to add.
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?
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?
-
diwolf
- Phoca Newbie

- Posts: 6
- Joined: 09 May 2008, 11:15
Sorry to add somethi
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>
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>
-
diwolf
- Phoca Newbie

- Posts: 6
- Joined: 09 May 2008, 11:15
Me again. I really d
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
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
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
diwolf
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
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
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
For me it works, if
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)
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: manual: guestbooks in articles in joomla 1.5
Hi, sorry I don't know how wrappers are working 
Jan
Jan
If you find Phoca extensions useful, please support the project