Hi thanks for your plugin, all working good so far!
I've got one question regarding the board index links and sub-forum links at the bottom when running in an iframe.
When clicking the links at them bottom you remain at the bottom (normal iframe behaviour), but I would like to scroll the automatically back to the top.
This would be fixed by adding <body onload="location.href='#top'"> in the overall_footer.php. However this also kills the unread anchor links, where it also scrolls to top instead of to the unread post.
Do you have some sort of solution for this?
Back to board index links (scroll)
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Back to to board index links
yes, at moment just look page-forum(or whatever named).php
there is:
it is possible to add all events. I had stop to add all the possible, because i was thinking to write a code, that avoid all these 'one by one', hooking maybe the iframe code with phpBB events.
So I will take a look as soon into this important aspect, that can be resolved in one, or other way.
Any suggestion very welcome.
P.s re reading your question ... not sure to have answer to all what you was asking for: in not clear, just re-post!
there is:
Code: Select all
...
if (w3all_phpBBquickmod == true) {
window.scrollTo(0, 200);
}
...
if (w3all_1_ck_reply == true) {
window.scrollTo(0, 200);
}
...
it is possible to add all events. I had stop to add all the possible, because i was thinking to write a code, that avoid all these 'one by one', hooking maybe the iframe code with phpBB events.
So I will take a look as soon into this important aspect, that can be resolved in one, or other way.
Any suggestion very welcome.
P.s re reading your question ... not sure to have answer to all what you was asking for: in not clear, just re-post!
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Back to to board index links
in the while i give you an example to add a call to contact us for example, you should add this into page-forum.php, where js code about
so just after
add the follow:
Look to vars/page passed on link when you are over with mouse, and add all others.
after on phpBB overall_footer.html, w3_all code you should also add:
this lead that when you click contact us, the iframe scroll to top.
Just post if still in trouble.
so just after
Code: Select all
if (w3all_phpBBquickmod == true) {
window.scrollTo(0, 200);
}
Code: Select all
var w3all_1 = (w3all_passed_url.indexOf('mode=contactadmin') > -1);
if (w3all_1 == true) {
window.scrollTo(0, 200);
}
after on phpBB overall_footer.html, w3_all code you should also add:
Code: Select all
$(document).on('click', '.rightside', function(){
var w3allappend = "mode=contactadmin";
if ('parentIFrame' in window) window.parentIFrame.sendMessage(w3allappend);
});
Just post if still in trouble.
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Back to board index links (scroll)
i'm just over for a while preparing next coming soon release, that will resolve also this.
I'm looking to the way, but it result to me finally, all very simple about this:
open page-forum.php (or whatever you named it)
search for:
immediately after add this:
The page forum will be updated with the above code, and will remove all others calls to:
Adding the above code without removing others calls to window.scrollTo, should return same result, so just add this in the while-
I'm looking to the way, but it result to me finally, all very simple about this:
open page-forum.php (or whatever you named it)
search for:
Code: Select all
if (w3all_pass_login_out == true) {
window.location.replace('".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/');
}
Code: Select all
var w3all_kk = (w3all_passed_url.indexOf('viewtopic.php') > -1);
if (w3all_kk == false) {
window.scrollTo(0, 200);
}
Code: Select all
window.scrollTo(0, 200);
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Back to board index links (scroll)
About this: the latest 1.6.5 fix added into page forum, will be substituted into 1.6.6 by a more professional way to resolve.
I've note, that the magic resizer provide a method to scroll iframe to the right position.
So, the whole thing will be fixed definitively on 1.6.6, where overall_footer.html js code will be updated with page-forum.php.
All will be more easy, more professional (without strange behavior of page scroll top when clicking on iframe link).
1.6.6 is coming very soon-
I've note, that the magic resizer provide a method to scroll iframe to the right position.
So, the whole thing will be fixed definitively on 1.6.6, where overall_footer.html js code will be updated with page-forum.php.
All will be more easy, more professional (without strange behavior of page scroll top when clicking on iframe link).
1.6.6 is coming very soon-
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Back to board index links (scroll)
i've just try to apply the new code, it is now running here. The code have been mainly moved from page-forum.php to overall_footer.html: the scroll is done now by the iframe code ... the result seem to be +- the same, but in some cases the experience is better ... looking further more-
in any case will be applied into 1.6.6 as definitive fix about this.
in any case will be applied into 1.6.6 as definitive fix about this.