Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install button issue #3

Merged
merged 2 commits into from
Jul 23, 2020
Merged

Fix install button issue #3

merged 2 commits into from
Jul 23, 2020

Conversation

AlexGStapleton
Copy link
Member

Resolve #2

@AlexGStapleton AlexGStapleton self-assigned this Jun 21, 2020
@Misplon
Copy link
Member

Misplon commented Jun 22, 2020

Thanks, mate. The modal is displaying normally but the Install button doesn't seem to be functioning for me. Is it functioning for you?

@AlexGStapleton
Copy link
Member Author

I just tried this PR again and it's working as expected for me. Is the Install Now button eating the click for you? If so, check the URL of the iframe to ensure it doesn't include TB_iframe=true.

@Misplon
Copy link
Member

Misplon commented Jun 23, 2020

My iFrame URL is /wp-admin/plugin-install.php?tab=plugin-information&plugin=siteorigin-panels&

Yeah, the click is being eaten. Can you send me a build from Vantage?

@AlexGStapleton
Copy link
Member Author

That's strange. Here's a build I just made: vantage.dev.zip

I just tried it in both Chrome and Firefox. Both worked as expected.

@Misplon
Copy link
Member

Misplon commented Jun 24, 2020

@AlexGStapleton I'm having trouble unzipping this file. Please, could you try again? Not sure what the issue is. Perhaps, permissions?

Archive_Utility

@AlexGStapleton
Copy link
Member Author

That's odd. Here's a new zip: https://drive.google.com/uc?id=1G_17tfUwRG80m6TndBkvsug24cc4COsm

@Misplon
Copy link
Member

Misplon commented Jun 25, 2020

Follow-up from our Slack chat. Please, test the functionality at Appearance > Home Page.
Additionally, I seem to be getting a different result (both not working though) in a single site install vs a multi-site install. Perhaps test this PR in both a single and multi-site install.

Thanks!

@AlexGStapleton
Copy link
Member Author

Can you please elaborate on the differences you're getting on a multi-site? I had a look over your previous slack messages and I can't seem to see any direct references to this.

@Misplon
Copy link
Member

Misplon commented Jun 25, 2020

On multi-site, the modal was showing the Plugins > Add New screen. I'll test shortly.

@Misplon
Copy link
Member

Misplon commented Jun 25, 2020

Is the tab functionality within the install modal working for you? It's broken for me. The install link works though.

@AlexGStapleton
Copy link
Member Author

The tabs are changing but strangely you have to scroll down to see the contents. I see if I can work out how to avoid this.

@AlexGStapleton
Copy link
Member Author

I worked out why that's happening - it's due to the removal of TB_iframe from the URL. They render the page slightly differently to be more suited to that view. TB_iframe was removed to allow for the install button to work. I've looked over the code that handles plugin installs in WordPress (the JS side of things), and the overall lightbox code. I cannot find an alternative solution while also maintaining the previous structure of the iframe. I had another look around and wasn't able to find any other plugins that use this sort of setup so I'm not able to reference other implementation.

I can keep looking for other plugins that do this to reference from, but I'm not very hopeful at this point. Do you want me to keep looking for other plugins that implement this?

@Misplon
Copy link
Member

Misplon commented Jul 23, 2020

Merging what we have, will log the tabs issue separately.

@Misplon Misplon merged commit 092df37 into develop Jul 23, 2020
@Misplon Misplon deleted the install-btn-fix branch July 23, 2020 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Page Builder install button isn't working
2 participants