feelback-integrations icon indicating copy to clipboard operation
feelback-integrations copied to clipboard

Wordpress Plugin

Open tdan opened this issue 2 years ago • 5 comments

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.

tdan avatar Jul 16 '23 15:07 tdan

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

giuseppelt avatar Jul 16 '23 15:07 giuseppelt

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.

tdan avatar Jul 16 '23 17:07 tdan

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?

giuseppelt avatar Jul 17 '23 14:07 giuseppelt

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.

tdan avatar Jul 18 '23 02:07 tdan

I didn’t fully understand what you mean, but let’s go for it and show me what you have in mind.

You can start with the Like button or the Upvote question. Let me know if you need support.


From: Trung An (An Đức Trung) @.> Sent: Tuesday, July 18, 2023 4:34:10 AM To: giuseppelt/feelback-integrations @.> Cc: Giuseppe La Torre @.>; Comment @.> Subject: Re: [giuseppelt/feelback-integrations] Wordpress Plugin (Issue #1)

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:

`

Do you like this page? Yes No ` data-feelback-set value can be pull from API.

— Reply to this email directly, view it on GitHubhttps://github.com/giuseppelt/feelback-integrations/issues/1#issuecomment-1639188239, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABWQ6GYIKTBWS44RYS2ZAEDXQXY2FANCNFSM6AAAAAA2MAQNLM. You are receiving this because you commented.Message ID: @.***>

giuseppelt avatar Jul 18 '23 06:07 giuseppelt