rsatdcms
Forum Replies Created
-
Forum: Hacks
In reply to: plugin development with custom database tablesHola
Creating the extra tables with the plugin initialisation works fine, that’s not the problem :).
Well the book thing was just an example, realistically I am expecting up to 10 entries in the first table and maybe several hundred+ (if I am lucky) in the second one per user. Would this be efficient in wp environment to use metadata over a separate table with soft links (storing userid as the owner of the entry)?
From what I found so far my option is to write the data handling myself ie in the plugin to call $_POST[], check if they are submitted ect. I was mostly wondering if there were provisions to catch “basic” actions of posting some data from a form embedded in a page (be that a real page or just a url route, which ever makes more sense to implement).
I think displaying data isn’t that much of a problem from me, its more grabbing/parsing it when users post the form from a url. I want to write the plugin in such a way that it would not be limited to a hardcoded url for example so that it would catch that form from any installation/whatever you want to use as https://www./books/ or https://www./buckets and catch actions in the wp way rather then however I would end up using $_POST[] directly.
I am pretty new to this, and have not found guidelines to parsing user input dynamically yet. If this is even possible… But I do like the ease of using wp for the CMS side of things.
Forum: Plugins
In reply to: plugin development with custom database tablesBah this was the wrong place, can this be moved to hacks forum please?
Cheers.