you need to fix the code so that the quick reply buttons are not hidden
+2
skouliki
poesia-verses
6 posters
Page 1 of 1
you need to fix the code so that the quick reply buttons are not hidden
Here Ilya made a code for me on Russian support. it's for hiding the help window above the topic - it's an iframe with pictures. the code that I have is the same Ilya works well but slows down the loading of the theme loading the iframe. the new code i posted here is much faster but causes the quick reply buttons to be hidden
you need to fix the code so that the quick reply buttons are not hidden
screenshot iframe
- Code:
<div class='iframe_area'></div>
<div class='btn_iframe'>Скрыть инструкцию</div>
<script>
$(document).ready(function() {
let iframeArea = document.querySelector('.iframe_area');
let btnIframe = $('.btn_iframe');
if (btnIframe.text() === 'Скрыть инструкцию') {
if (iframeArea.querySelector('iframe') === 'null') {
iframeArea.insertAdjacentHTML('beforeend', '<iframe width="700" height="480" src="https://stihi-podval.forumotion.com/h1-page"></iframe>');
}
} else {
iframeArea.querySelector('iframe').remove();
}
btnIframe.click(function() {
if (btnIframe.text() === 'Скрыть инструкцию') {
btnIframe.text('Показать инструкцию');
localStorage.setItem('btniframe','off');
iframeArea.querySelector('iframe').remove();
} else if (btnIframe.text() === 'Показать инструкцию') {
btnIframe.text('Скрыть инструкцию');
localStorage.removeItem('btniframe');
iframeArea.insertAdjacentHTML('beforeend', '<iframe width="700" height="480" src="https://stihi-podval.forumotion.com/h1-page"></iframe>');
};
});
if (localStorage.getItem('btniframe') === 'off') {
btnIframe.text('Показать инструкцию');
iframeArea.querySelector('iframe').remove();
} else {
localStorage.removeItem('btniframe');
iframeArea.insertAdjacentHTML('beforeend', '<iframe width="700" height="480" src="https://stihi-podval.forumotion.com/h1-page"></iframe>');
};
});
</script>
you need to fix the code so that the quick reply buttons are not hidden
screenshot iframe
Re: you need to fix the code so that the quick reply buttons are not hidden
hello
since the Russian support gave you the code please open a thread there about this issue
thank you
since the Russian support gave you the code please open a thread there about this issue
thank you
Re: you need to fix the code so that the quick reply buttons are not hidden
Good afternoon!
@skouliki , this code is suggested by me and on my test forum it works fine, but @poesia-verses buttons are hiding. Unfortunately, I don't know what the reason might be. Does anyone here know what might be the cause.
@poesia-verses , tell us:
1) Have you cleaned the forum cache and cookies?
2) Have you tried disabling the scripts one by one - maybe another script is blocking the others?
------------ Update----------
Which buttons are we talking about? This is what I saw when I wanted to check the buttons:
@skouliki , this code is suggested by me and on my test forum it works fine, but @poesia-verses buttons are hiding. Unfortunately, I don't know what the reason might be. Does anyone here know what might be the cause.
@poesia-verses , tell us:
1) Have you cleaned the forum cache and cookies?
2) Have you tried disabling the scripts one by one - maybe another script is blocking the others?
------------ Update----------
Which buttons are we talking about? This is what I saw when I wanted to check the buttons:
Razor12345- Support Moderator
- Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
Re: you need to fix the code so that the quick reply buttons are not hidden
I don know if this is the reason but the member has informed in the past that he uses old windows and his browser is outdated so many times he deals with problems
Razor12345 likes this post
Re: you need to fix the code so that the quick reply buttons are not hidden
@Razor12345 I have an old script now, it's fine with it ... but slowly, and the buttons are the answer buttons
Re: you need to fix the code so that the quick reply buttons are not hidden
If you use a code on your forum and the code is messing about with other parts of your forum then this means your code is the problem.
As the code is the problem we will not change nothing our side.
The code you are using is the problem not our end.
My advice is ask the maker of the code to rework it so it is not making a problem with other codes you have already running on your forum.
second and third hand codes are nothing to do with us, You use all codes not made by us at your own risk.
As the code is the problem we will not change nothing our side.
The code you are using is the problem not our end.
My advice is ask the maker of the code to rework it so it is not making a problem with other codes you have already running on your forum.
second and third hand codes are nothing to do with us, You use all codes not made by us at your own risk.
BlackScorpion likes this post
Re: you need to fix the code so that the quick reply buttons are not hidden
@Ape I rely on local scripters.
Re: you need to fix the code so that the quick reply buttons are not hidden
Coucou,
The problem may simply be what @skouliki mentioned:
If same forum + same script = problem
and same forum + same script + different browser (updated) = ok
then I also share the idea that it is just a browser issue
Razor12345 wrote:@skouliki , this code is suggested by me and on my test forum it works fine, but @poesia-verses buttons are hiding. Unfortunately, I don't know what the reason might be. Does anyone here know what might be the cause.
The problem may simply be what @skouliki mentioned:
skouliki wrote:I don know if this is the reason but the member has informed in the past that he uses old windows and his browser is outdated so many times he deals with problems
If same forum + same script = problem
and same forum + same script + different browser (updated) = ok
then I also share the idea that it is just a browser issue
BlackScorpion and Razor12345 like this post
Re: you need to fix the code so that the quick reply buttons are not hidden
decided. scripter Deff made the code, everything works. only one caveat - not open by default, but I made a large red button font
solved
solved
Re: you need to fix the code so that the quick reply buttons are not hidden
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» smilies code for quick reply in reply
» what is the code for quick reply for PhpBB3
» Quick reply box sized-up covers preview and send buttons
» When onclick button of "Post Reply" scroll down to the quick reply
» Quick reply and reply some functions not working
» what is the code for quick reply for PhpBB3
» Quick reply box sized-up covers preview and send buttons
» When onclick button of "Post Reply" scroll down to the quick reply
» Quick reply and reply some functions not working
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum