Wrapper Auto-Height Problems.
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Aug 12, 2008 7:41 pm
Re: Wrapper Auto-Height Problems.
Any chance you can post your fix? I've tried 20 or more "fixes" and none work across all 3 browsers.
-
- Joomla! Apprentice
- Posts: 15
- Joined: Fri Oct 07, 2011 4:37 pm
Re: Wrapper Auto-Height Problems.
Hi, for a wrapper as module you have to edit :
modules > mod_wrapper > tmpl > default.php
Setting for module :
Auto Add > Yes
Sroll bar > No
Width > 100 %
Height > 100 (as you want)
Auto Height > Yes
Remember if you use a third party template, you have to check if there is no overide of the above file. If there is an overide, just replace it with the code above.
modules > mod_wrapper > tmpl > default.php
Code: Select all
<script type="text/javascript">
function iFrameHeight() {
var f = document.getElementById('blockrandom');
f.style.height = '100px' ;
var d = (f.contentWindow.document || f.contentDocument) ;
var height = Math.max(d.body.offsetHeight, d.body.scrollHeight) ;
height += 200; // scrollbars?
f.style.height = height + 'px' ;
f.setAttribute("height", height) ;
}
</script>
<iframe <?php echo $load; ?>
id="blockrandom"
name="<?php echo $target ?>"
src="<?php echo $url; ?>"
width="<?php echo $width ?>"
height="<?php echo $height ?>"
scrolling="<?php echo $scroll ?>"
class="wrapper<?php echo $moduleclass_sfx ?>" >
<?php echo JText::_('MOD_WRAPPER_NO_IFRAMES'); ?>
</iframe>
Auto Add > Yes
Sroll bar > No
Width > 100 %
Height > 100 (as you want)
Auto Height > Yes
Remember if you use a third party template, you have to check if there is no overide of the above file. If there is an overide, just replace it with the code above.
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Aug 12, 2008 7:41 pm
Re: Wrapper Auto-Height Problems.
Didn't seem to work, followed exactly as above says.
http://fugaming.net/funew/index.php?opt ... Itemid=468
Also tried adding it to the component.
http://fugaming.net/funew/index.php?opt ... Itemid=468
Also tried adding it to the component.
-
- Joomla! Apprentice
- Posts: 15
- Joined: Fri Oct 07, 2011 4:37 pm
Re: Wrapper Auto-Height Problems.
No here is the code I'm seing in your source :
It has nothing to do with the above code.
Witch joomla do you use? And do you use wrapper as module?
Code: Select all
function pageY(elem) {
return elem.offsetParent ? (elem.offsetTop + pageY(elem.offsetParent)) : elem.offsetTop;
}
var buffer = 0; //scroll bar buffer
function iFrameHeight()
{
var the_height=
document.getElementById('blockrandom').contentWindow.
document.body.scrollHeight;
document.getElementById('blockrandom').height=
the_height;
}
}
document.getElementById('blockrandom').onload=iFrameHeight;
window.onresize = iFrameHeight;
</script>
<div class="contentpane">
<iframe onload="iFrameHeight()" id="blockrandom"
name="iframe"
src="http://fugaming.net/forums/"
width="100%"
height="600"
scrolling="no"
frameborder="0"
class="wrapper">
This option will not work correctly. Unfortunately, your browser does not support inline frames.</iframe>
</div>
Witch joomla do you use? And do you use wrapper as module?
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Aug 12, 2008 7:41 pm
Re: Wrapper Auto-Height Problems.
Joomla 2.5
I don't know whether I'm using wrapper as a module - my menu item is pointed to Iframe wrapper which is a URL to my forum.
I don't know whether I'm using wrapper as a module - my menu item is pointed to Iframe wrapper which is a URL to my forum.
-
- Joomla! Apprentice
- Posts: 15
- Joined: Fri Oct 07, 2011 4:37 pm
Re: Wrapper Auto-Height Problems.
Try the following, asign you menu item to an article (not wrapper), then add new module wrapper and asign position and page to show, that's what I'm doing.
Anyway as I'm seing in your code, the above code doesn't render in you html file.
If you want I can have a look, just write me private message with temporary access other ways I cannot help.
Anyway as I'm seing in your code, the above code doesn't render in you html file.
If you want I can have a look, just write me private message with temporary access other ways I cannot help.
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Aug 12, 2008 7:41 pm
Re: Wrapper Auto-Height Problems.
You are my hero - I've been banging my head against the wall all day with this.
Thank you!!
Thank you!!
-
- Joomla! Apprentice
- Posts: 15
- Joined: Fri Oct 07, 2011 4:37 pm
Re: Wrapper Auto-Height Problems.
You are welcome, I banged my head also before finding out. :-)
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Aug 12, 2008 7:41 pm
Re: Wrapper Auto-Height Problems.
Now if only I could find a free PHPBB and Joomla 2.5 bridge
-
- Joomla! Apprentice
- Posts: 15
- Joined: Fri Oct 07, 2011 4:37 pm
Re: Wrapper Auto-Height Problems.
What do you mean by bridge?
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Aug 12, 2008 7:41 pm
Re: Wrapper Auto-Height Problems.
Use PHPBB User DB with Joomla so our users don't have to register two accounts.
And the ability to pull the last 5 posts as news posts from any PHPBB forum.
There are paid apps but they are outrageously expensive (50 each)
And the ability to pull the last 5 posts as news posts from any PHPBB forum.
There are paid apps but they are outrageously expensive (50 each)
-
- Joomla! Apprentice
- Posts: 15
- Joined: Fri Oct 07, 2011 4:37 pm
Re: Wrapper Auto-Height Problems.
There's not lot of choice, buy an extention or code it yourself. If you have some php/mysql knowledge it shouldn't be hard to automaticaly create an user in phpbb when someone register on your website. You will just need to edit some files.
Just make some research, or let someone code it for you, have a look on fiverr.com
Just make some research, or let someone code it for you, have a look on fiverr.com
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Aug 12, 2008 7:41 pm
Re: Wrapper Auto-Height Problems.
Well, I found one that works. It's Jfusion.
The weirdest thing is for a couple of users the stretch doesn't work still.
The weirdest thing is for a couple of users the stretch doesn't work still.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Nov 26, 2010 1:13 am
Re: Wrapper Auto-Height Problems.
This worked for my 2.5.10:
http://www.minitek.gr/tutorials/javascr ... eight.html
EDIT
i just needed some extra height so i changed this line
to
http://www.minitek.gr/tutorials/javascr ... eight.html
EDIT
i just needed some extra height so i changed this line
Code: Select all
document.getElementById('blockrandom').style.height = height + 'px';
Code: Select all
document.getElementById('blockrandom').style.height = (height+80) + 'px';