0

On a given site's page, which is supplied with the "casting" URL alias, I would like to show some embedded videos with a description field, which users have uploaded (embedded) via a simple text field that Embedded Media Field processed. These would appear as separate writings, signing the user who uploaded this stuff.
There would also be a rating/voting opportunity (fivestar, thumbs up/down, etc.) with the help of Rate or Fivestar module (which one do you suggest?!) to let users vote for the embedded video.

When someone logs in, I would like to show the form which helps embedding (or a link to this form) at the top of the page, and below that, there would be the embedded media from the different users.
So the form would be as simple as that: containing a text field, in which e.g. Youtube URLs could be copied (it would be processed by Embedded Media Field module) and a description textarea to write about the embedded stuff.
The result output would contain these: the embedded media, the description, who this post created and when, and a rating/voting opportunity (five stars, etc.).

How could I do that? What do you suggest for creating a form like that?
Maybe it's not too difficult, but I didn't find the perfect solution, and I couldn't restrict content types to these fields (and with the help of Webform I couldn't add a field of Embedded Media Field).

3

Why don't you just let your users create a node with this field and a fivestar widget and then you use node_view() to display these nodes in your page.

Updated:
To embed the node form in a page, have a look at Embedding CCK content type create form in your page, then create a block and put this code in it (select the php format - you have to activate the php filter module first):

if(!function_exists("node_object_prepare")) {
  include_once(drupal_get_path('module', 'node') . '/node.pages.inc');
}
print node_add('store_review');  //put the content type machine name here.

Then on another page you create a view to retrieve the listing of your videos.

You can also have a look at the Blockify module it may be useful to embed the node form (I'm not sure it'll do the job but can be easy if you're not comfortable with embedding PHP code in a block).

  • This is the correct way to do it. I would add that you can create a views block and put it in a "content" region (if your theme has one, I know Garland does) to have the media from other users show up on the node add form. – rocketeerbkw Aug 10 '11 at 3:35
  • @rocketeerbkw, tostinni: thanks for your answers, I forgot to mention that I already created a content type called "Casting video" (concept is that users could embed their videos from external sources, and these could be rated), BUT it has too many fields, look at the pic: goo.gl/VyGnm - the field "Embedding video" is OK, BUT besides I would only need max. two text input fields (and not a textarea), and hide "Menu settings", "Input format", "Revision information", "File attachments", etc... How can I do this? And how can I use node_view() on a given node? Sorry, I'm new to this... – Sk8erPeter Aug 10 '11 at 6:26
  • @Sk8erPeter your node has too many fields because you're connected as admin, try to connect yourself with a normal user it will be much more simple. To disable the textarea (aka body), go to the edit page for your content type and delete the label for "body". – tostinni Aug 10 '11 at 6:34
  • @tostinni: wow, didn't think it's that simple as deleting the "Body" label in "Submission form settings" and not to login as an admin... :D Thanks! That's great, but I still have questions (after these I'll accept your answer :) ): how can I configure the page which has the "casting" alias so that this form should appear on the top of this page (it could be a panel or I don't know how it should be done) JUST FOR LOGGED IN USERS, and after that, all of the uploaded embedded videos would be listed one after another (with a pager at the bottom of the page)? If user isn't logged in, just the list. – Sk8erPeter Aug 10 '11 at 8:11
  • @Sk8erPeter I updated my answer – tostinni Aug 10 '11 at 13:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.