The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

you need to fix the code so that the quick reply buttons are not hidden

+2
skouliki
poesia-verses
6 posters

Go down

Solved you need to fix the code so that the quick reply buttons are not hidden

Post by poesia-verses February 23rd 2023, 6:54 pm

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

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
you need to fix the code so that the quick reply buttons are not hidden Clipbo17
poesia-verses
poesia-verses
Forumember

Male Posts : 525
Reputation : 20
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by skouliki February 24th 2023, 7:27 am

hello

since the Russian support gave you the code please open a thread there about this issue

thank you
skouliki
skouliki
Manager
Manager

Female Posts : 15153
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by Razor12345 February 24th 2023, 8:44 am

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:

you need to fix the code so that the quick reply buttons are not hidden Screen32

you need to fix the code so that the quick reply buttons are not hidden Screen33

you need to fix the code so that the quick reply buttons are not hidden Screen34
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1476
Reputation : 262
Language : Ukr, Rus, Eng
Location : Ukraine

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by skouliki February 24th 2023, 9:33 am

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
skouliki
skouliki
Manager
Manager

Female Posts : 15153
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Razor12345 likes this post

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by poesia-verses February 24th 2023, 12:42 pm

@Razor12345 I have an old script now, it's fine with it ... but slowly, and the buttons are the answer buttons
poesia-verses
poesia-verses
Forumember

Male Posts : 525
Reputation : 20
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by Ape February 24th 2023, 3:08 pm

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.


you need to fix the code so that the quick reply buttons are not hidden Left1212you need to fix the code so that the quick reply buttons are not hidden Center11you need to fix the code so that the quick reply buttons are not hidden Right112
you need to fix the code so that the quick reply buttons are not hidden Ape_b110
you need to fix the code so that the quick reply buttons are not hidden Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19143
Reputation : 1993
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

BlackScorpion likes this post

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by poesia-verses February 25th 2023, 7:58 pm

@Ape I rely on local scripters.
poesia-verses
poesia-verses
Forumember

Male Posts : 525
Reputation : 20
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by Niko February 25th 2023, 8:08 pm

Coucou,

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 Embarassed Embarassed
Niko
Niko
Helper
Helper

Male Posts : 3110
Reputation : 245
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

BlackScorpion and Razor12345 like this post

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by poesia-verses February 26th 2023, 9:04 pm

decided. scripter Deff made the code, everything works. only one caveat - not open by default, but I made a large red button font

solved
poesia-verses
poesia-verses
Forumember

Male Posts : 525
Reputation : 20
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: you need to fix the code so that the quick reply buttons are not hidden

Post by SLGray February 26th 2023, 11:45 pm

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


you need to fix the code so that the quick reply buttons are not hidden Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51501
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum