- Posts: 97
- Thank you received: 7
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
- Topic Author
- Offline
- Premium Member
Less
More
6 months 4 days ago #251429
by lintu
How to remove the top menu bar in an iframe was created 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!
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 97
- Thank you received: 7
6 months 3 days ago #251486
by lintu
Replied by lintu on topic Closed: How to remove the top menu bar in an iframe
Closing this topic as I was able to update the header file to fix the problem.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 months 3 days ago #251504
by DenisChenu
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.
Replied by DenisChenu on topic Closed: How to remove the top menu bar in an iframe
How do you fix it ?Closing this topic as I was able to update the header file to fix the problem.
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
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 97
- Thank you received: 7
6 months 2 days ago - 6 months 2 days ago #251541
by lintu
Replied by lintu on topic Closed: How to remove the top menu bar in an iframe
At the begining of the adminmenu.php file, I added the following code:
$current_url = $_SERVER;
if (strpos($current_url, "pagename") !== false) {
return;
}
$current_url = $_SERVER;
if (strpos($current_url, "pagename") !== false) {
return;
}
Last edit: 6 months 2 days ago by lintu.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
6 months 2 days ago - 6 months 2 days ago #251553
by DenisChenu
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.
Replied by DenisChenu on topic Closed: How to remove the top menu bar in an iframe
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 ?
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 2 days ago by DenisChenu.
Please Log in to join the conversation.
- lintu
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 97
- Thank you received: 7
5 months 3 weeks ago - 5 months 3 weeks ago #251738
by lintu
Replied by lintu on topic Closed: How to remove the top menu bar in an iframe
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>
<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.