iframe phpbb

DJ_JIMMY

iframe phpbb

Post by DJ_JIMMY »

google translate. :)

hi
thank you very much for the plugin and the support

I installed the plugin, now I try to do an iframe

1- create a page called forum
2- paste the code in the overall_footer.html
3- create the page in the w3all plugin with the same name as the forum page
4- in the code modify the localhost to my domain dominicanhiphop.com
5- in the code change the address src = "iframeResizer.contentWindow.min.js" to src ="http://www.dominicanhiphop.com/foros/if ... dow.min.js"
6- Copy the file iframeResizer.contentWindow.min.js and paste it into the phpbb root folder
7- and here the result http://www.dominicanhiphop.com/forum
User avatar
axew3
w3all User
w3all User
Posts: 2705
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: iframe phpbb

Post by axew3 »

Hello Jimmy!
You've do all ok, but there is a problem:
the code you've add into phpBB overall_footer.hml
is parsed (and appear as) before the jQuery lib inclusion. So the execution fail because the code of the resizer is jQuery.

Move all the code you've add, JUST BEFORE THE CLOSING
</body> tag:

recompile the phpBB template, and reset to NO the option when changes take effect (to save server's resources).
Let know!
DJ_JIMMY

Re: iframe phpbb

Post by DJ_JIMMY »

Hello
thanks for the reply.
I did what you told me, I moved the code to before the </ body>
but it did not work, in the theme milk
but in the theme prosilver if it works

I do not know what I can do to make it work in the theme that I use

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

Re: iframe phpbb

Post by axew3 »

the solution is to add the code, in the way that is parsed AFTER jQuery lib inclusion, or won't work.
The ideal, would be that you find out the file into this theme, that output the footer scripts code, and add the needed about iframe resizer just after.
But in the wild, i guess it would be sufficient that you add this line, just before the code you've add into overall_footer.html:

Code: Select all

<script type="text/javascript" src="{T_JQUERY_LINK}"></script>
should work.
Post Reply