开发者

General WordPress question

I have a project that i would like to complete in Wordpress. Basically, the story is that I have 8 boxes on my page that would each be enclosed in their own div.

I want to have a form on another page that a user can fill out and they would get to choose a box in which to put images or text into. If a box is taken, they can’t choose that one and must choose another. What would be the best approach for this? I was thinking something like a CSS gallery type theme but how would I go about letting the user choose which box? Any ideas and nudges in the right directi开发者_开发技巧on is appreciated.


I would do this in Drupal, or straight php. I think wordpress is going to be an impediment here rather than a boon. I would make each box a drupal block or node and use the standard form, to allow users to trigger editing that box. Then use CCK in control content like pictures and text and the way they display. Hope this helps.


The only way I can see this going anywhere is more or less completely bypassing Wordpress. So you use Wordpress only to render the theme, but the form action goes straight to PHP.

This way you're free to parse the form posts and store the uploaded images somewhere.

You could try to shoehorn everything into a Wordpress comment, but I don't think attaching files would work. So your best bet is to just have the form action point to a PHP file and handle everything manually.

It should be easy enough to query a custom table in the database using your theme's functions.php and $wpdb.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜