Hacker News new | ask | show | jobs
by 1mbsite 994 days ago
In what way is it not working? You hit “IntelliPlugin” in /admin dashboard nav and hit “Generate”. Then you enter a prompt and hit “Generate Plugin”? What happens for you after that step?
1 comments

When I create the plugin, then try to activate it, an error modal appears saying 'Error activating plugin, Plugin file does not exist.' OK
The plugin code itself is outputted on page it just sounds like it’s not being written to your file system? Okay so when you go to the plugins page is the generated plugin there? If not this sounds like a file permissions error preventing the plugin files from being uploaded. Do you have any Security plugins active by any chance or manual rules to prevent writing to file system with a plugin?
Ahh...cool. It was Wordfence. Deactivated it, and the plugin appeared. However I obviously didn't specify the functionality properly, because it's just featured in the plugin section with no functions visible. I asked for a plugin which would create a Google Translate button for use on selected pages.
Awesome I’m glad it’s resolved. There is still some prompting that goes into it. So in your case you might start off saying something like “when editing a page in dashboard show a google translate button by the save button that when clicked asks me for a language to translate to; use google translate API to translate page contents and then create {{page_name}}-{{language}} page and save it.” But honestly I’d do something like “If somebody adds ?language=language_here to the end of a page use the Google Translate API to translate the page content. Cache the translation until page is updated again.” Toy around a bit and tweak prompt until initial generation fits your needs. It also won’t get super complex things right on the first try. Get an initial version saved and then switch to edit mode and add additional functionality 1 prompt at a time. Even say things like “that’s not exactly what I asked for do this”, “there’s a bug fix it”, “add a settings page to admin dashboard so I can enter Google Translate API key”, “add a translate button to the footer of all pages”, etc. As codebase gets more in line with what you want IntelliPlugin will start working smarter.
Cool, that sounds very interesting. I'll definitely try playing around some more. Thanks.
Thank you for purchasing IntelliPlugin. I appreciate your support. You can reach out at support@edwardsdalton97.freshdesk.com if you ever have anymore questions. Hope you build some cool plugins.