Page 3 of 6
Re: Auto scroll UP
Posted: Wed Sep 27, 2017 7:55 am
by axew3
this morning after long time, i've find out the way to resolve any scroll, for any phpBB event/page, in just one instruction to assign:
3 lines of code, will replace 50 lines of code (+-) between overall_footer.html and page-forum.php.
So correct scroll aspect will be fixed on next coming soon 1.7.7. And all will be more short/easy.
Re: Auto scroll UP
Posted: Wed Sep 27, 2017 2:10 pm
by axew3
this morning after long time, i've find out the way to resolve any scroll, for any phpBB event/page, in just one instruction to assign:
3 lines of code, will replace 50 lines of code (+-) between overall_footer.html and page-forum.php.
So correct scroll aspect will be fixed on next coming soon 1.7.7. And all will be more short/easy.
the patch has been applied and is effective here in this example, the code about phpBB
overall_footer.html and
addons/page-forum.php will be updated within today to fit new changes about this:
https://www.axew3.com/w3/2016/02/embed- ... esponsive/
Re: Auto scroll UP
Posted: Wed Sep 27, 2017 2:58 pm
by axew3
https://www.axew3.com/w3/2016/02/embed- ... esponsive/
iframe procedure and code has been updated.
It fix also a problem about notification PM ink on admin bar (if option active), to be for iframe or not (this fix has been updated on page-forum.php file at repository, after two hours by the date of this post).
Memo about the iframe procedure: how to update in short
Download updated file
page-forum.php:
https://plugins.trac.wordpress.org/expo ... -forum.php
put it into plugin addons folder, replacing the old one, so on WP_w3all config page, rebuild the template by clicking on related button.
OR manually
paste the downloaded
page-forum.php file into your template folder, replacing the old one (rename it into what need to be if your iframe template page is named as board, community etc in WP_w3all config, so you'll rename in case into
page-community.php etc.)
Now open
overall_footer.html
substitute the old added code, with new code
https://www.axew3.com/w3/2016/02/embed- ... esponsive/
Remember to set the correct domain name value into pasted code as explained on inline code and on procedure.
Remember so to
Recompile stale style components in phpBB ACP -> Server configuration -> Load settings (as explained on procedure).
Re: Auto scroll UP
Posted: Thu Sep 28, 2017 2:05 pm
by axew3
I note that on inserting smiles on posts, the scroll is done, and should not.
It is required to add a little code mod into overall_footer.html.
I will patch right now the thing.
Re: Auto scroll UP
Posted: Thu Sep 28, 2017 2:56 pm
by axew3
in
overall_footer.html added code, need to be replaced the following line:
Code: Select all
if ('parentIFrame' in window) window.parentIFrame.scrollTo(0,mfs);
with this:
Code: Select all
if ( w3all_onclick_smile === false && w3all_onview_attach === false ) {
if ('parentIFrame' in window) window.parentIFrame.scrollTo(0,mfs);
}
remember to recompile phpBB template.
The online code procedure has been updated about this.
Let say i do not like this latest switch to scroll.
I will improve and finalize a definitive correct way to scroll as soon i can.
Re: Auto scroll UP
Posted: Thu Nov 23, 2017 3:07 pm
by Lantern
Sorry for the very late reply - i will follow your instructions a.s.a.p and let you know