Not resizing the administration area

Locked
Seowebby
User w
User w
Posts: 8
Joined: Fri Oct 14, 2016 4:45 pm

Not resizing the administration area

Post by Seowebby »

Hi, I have a wordpress site and a phpBB forum and I installed W3All.
I also embedded the forum in the theme.

All works fine except for the forum administration area that is not properly resized (I cannot reach the bottom of some pages) so, I have to enter the forum directly.

Do you have any suggestion about it?

Thank you

Sergio
User avatar
axew3
w3all User
w3all User
Posts: 2689
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Not resizing the administration area

Post by axew3 »

Hello, yes: admin and frontend in phpBB have two distinct templates directory.

If you want admin resizing your ACP pages like frontend (so you can visit it nicely when within WP page), you need to apply the same code as explained here for the frontend phpBB template https://www.axew3.com/w3/2016/02/embed-p ... esponsive/

into your phpBB3/adm/style/overall_footer.html
but set the correct path to the file iframeResizer.contentWindow.min.js where
<script type="text/javascript" src="iframeResizer.contentWindow.min.js" defer></script> on the code to add:

Code: Select all

<script type="text/javascript">

$(document).on('mouseup', '.postimage', function(){
      var w3allappend = "getw3all_lightbox";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});

  $(document).on("click", "a", function() {
   var href = $(this).attr("href");
   var w3allappend = href;

 if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);

});
</script>
<script type="text/javascript" src="iframeResizer.contentWindow.min.js" defer></script>
you can also use direct link URL instead than path:

Code: Select all

<script type="text/javascript" src="http://mysite/phpbb/iframeResizer.contentWindow.min.js" defer></script>
p.s I just select a field on ACP so i scroll page by clicking tab. But it is not maybe so comfortable as the above!
Locked