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

Feature Request: WordPress implementation #24

Closed
djrobzilla opened this issue Apr 18, 2023 · 2 comments
Closed

Feature Request: WordPress implementation #24

djrobzilla opened this issue Apr 18, 2023 · 2 comments
Labels
Enhancement ✨ New feature or request

Comments

@djrobzilla
Copy link

I'm not sure how feasible this is, but it'd be amazing to have this available as a WordPress plugin. That's definitely a plugin I'd pay money for! There are two plugins right now for WordPress that offer this functionality: ethpress and "WordPress NFT Token Gating &
Web3 Wallet login". Ethpress requires the manual installation of some sus looking libraries that I'd rather not mess with, and the other one is crazy expensive and offers way more than i think most people who are looking for this kind of functionality actually need.

@djrobzilla djrobzilla changed the title WordPress implementation Feature Request: WordPress implementation Apr 18, 2023
@0xGeel 0xGeel added the Enhancement ✨ New feature or request label Apr 19, 2023
@0xGeel
Copy link
Owner

0xGeel commented Apr 19, 2023

Hi @djrobzilla, posting my Discord reply here for visibility's sake:


Unfortunately, though, I'm not sure I can be of direct help here.

LoopGate is built as a NextJS app, which is fully written in Typescript/Javascript. It's "Serverless", in the sense that it does not have a traditional backend / database that is always there, but rather uses cloud computers to execute the backend functions.

Wordpress is PHP-based, and requires a constant backend server to run. I think it makes more sense to re-write the LoopGate functionality that "make token-gating work" in PHP, then publish those as a PHP plugin. Here are the core functionalities:

  • Sign In With Ethereum (SIWE) alongside IronSession. This makes the app secure: only if you can prove ownership of a wallet by signing a message, you get authenticated.
  • ConnectKit + WAGMI hooks for interacting with a Loopring / Ethereum wallet.
  • (Rate-limited) Loopring API Requests: query data on Loopring L2 to get NFT ownership data.
  • Pinata API Requests: query data on Pinata IPFS to unlock content stored on there.

The issue: my experience in PHP is very limited, and building this PHP plugin greatly affects the development speed of the "regular" LoopGate, which is my priority. I don't know if I even am able to ship this in PHP for WordPress 😪


Contributions of any kind are welcome, though. If you feel like taking on this WordPress implementation, I'd be happy to help you out.

@0xGeel
Copy link
Owner

0xGeel commented May 7, 2023

Hi there @djrobzilla,

You may have seen this already, but I'm posting this here for others to find as well:
🚀 stepwn has created and open sourced an implementation for Wordpress to empower you to Token Gate using Loopring NFTs!

See: https://github.com/stepwn/LoopPress

@0xGeel 0xGeel closed this as completed May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants