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

Wordpress Plugin #1

Open
tdan opened this issue Jul 16, 2023 · 5 comments
Open

Wordpress Plugin #1

tdan opened this issue Jul 16, 2023 · 5 comments

Comments

@tdan
Copy link

tdan commented Jul 16, 2023

Hi,

I stumbled up on Feelback through your blog post "Architecture of an early stage SAAS". I think this is a very cool and niche app. I'm wondering if you are currently working on any Wordpress plugin. If not, I'd like to attempt it and get it done as soon as possible.

Thank you.

@giuseppelt
Copy link
Owner

That would be fantastic.
Have you experience with Wordpress and javascript?

@tdan
Copy link
Author

tdan commented Jul 16, 2023

I have been working with Wordpress for about 5 years: customizing sites, themes and plugins, and has written a plugin for a customer before. I learned about Javascript through working with Wordpress, mostly in jQuery and some vanilla JS scripts. Absolute love Typescript though, it makes coding in JS much more pleasant.

@giuseppelt
Copy link
Owner

That's great. How would like to proceed?

What's the best way to create a plugin?
I have already developed the base Javascript functions, the @feelback/js package contains the main function sendFeedback which does most of the job.

There's a these scenaro to start with:

  • Like button (customizable icon, heart, start) to add to Blog articles
  • Upvote buttons, like the Do you like this page [y]/[n] buttons
  • Send feedback Button, click and a modal dialog shows

How do plug custom HTML in an wordpress page layout?

@tdan
Copy link
Author

tdan commented Jul 18, 2023

I'll create a repo for the plugin here or on Gitlab if you want privacy.

I think we don't need to use any JS functions, the API you have is good enough. We can use Wordpress widget to plug this HTML code to the website:

<div class="feelback-container" data-feelback-set="id-from-panel">
    <span>Do you like this page?</span>
    <button data-feelback-value="y">Yes</button>
    <button data-feelback-value="n">No</button>
</div>

data-feelback-set value can be pull from API.

@giuseppelt
Copy link
Owner

giuseppelt commented Jul 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants