Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Closed: How to remove the top menu bar in an iframe

  • lintu
  • lintu's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 months 3 days ago #251429 by lintu
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.3
Own server or LimeSurvey hosting: Own server (AWS)
DB server: MySQL 8.x

Survey theme/template: bootswatch
==================
Hello Folks,
On the admin portal, I have a requirement to add an iframe to embed a plugin page (please see attached image) on one of the user account tab. After adding the iframe, the LimeSurvey top menu bar is showing twice on that page - once at the top and then within the iframe. Is there a way to remove the second header in the iframe?

Thanks!
Attachments:

Please Log in to join the conversation.

  • lintu
  • lintu's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 months 2 days ago #251486 by lintu
Closing this topic as I was able to update the header file to fix the problem.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 2 days ago #251504 by DenisChenu

Closing this topic as I was able to update the header file to fix the problem.
How do you fix it ?
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

  • lintu
  • lintu's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 months 1 day ago - 6 months 1 day ago #251541 by lintu
At the begining of the adminmenu.php file, I added the following code:
$current_url = $_SERVER;
if (strpos($current_url, "pagename") !== false) {
return;
}
Last edit: 6 months 1 day ago by lintu.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 1 day ago - 6 months 1 day ago #251553 by DenisChenu
Need to hack code : still not a solution,

Maybe a feature request for plugin ?

How do you add the ifram ? Do you have code sample ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 6 months 1 day ago by DenisChenu.

Please Log in to join the conversation.

  • lintu
  • lintu's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 months 3 weeks ago - 5 months 3 weeks ago #251738 by lintu
Sorry for the late response. Here's the code snippet that I found on this forum and used for the iframe enbed:

<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src='<?php $domain ?>/index.php/admin/pluginhelper/sa/fullpagewrapper/plugin/TwoFactorAdminLogin/method/userindex' height='800px' width='100%' ></iframe>
</div>
Last edit: 5 months 3 weeks ago by lintu.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose