Full node only if user click "I like" of fb?

hello, it is possible to display the full node only to users who click on the "i like" button on facebook or some other social?
thanks
drupalorg

Using Drupal for business?

Hello everyone,

I have previously been using joomla to run some small sites for fun and just general learning. However I know they do have security flaws and was wondering if I would be able to safely operate a legitimate business website with an online shop with drupal. I have been doing research about drupal and have heard a lot of positive things about functionality and customization, could someone help me by answer my first question and then follow by explain what exactly makes drupal what it is?

thanks

kyle

Is there a way to re-invoke #ajax on forms when the form itself is returned with ajax?

Hello!

I also posted this question on stack exchange, but I have not received an answer so I thought i'd post it here:
http://drupal.stackexchange.com/q/15760/4098

I want to change the delete link on comments so that the delete confirmation is returned with Ajax and then the delete confirmation is executed with Ajax.

I have fixed the form so the delete confirmation at /comment/%cid/delete so now the submit action is performed with ajax.

Here is the code I used to accomplish this:

function awesomesite_comments_form_comment_confirm_delete_alter(&$form, &$form_state, $form_id) {

  // Add the Ajax Submit Function
  $form['actions']['submit']['#ajax'] = array(
    'callback' => 'awesomesite_comments_ajax_delete',
    'progress' => false,
  );

}

function awesomesite_comments_ajax_delete($form, $form_state) {

  // Get rid of all of the messages that have been set
  drupal_get_messages();

  // Get the comment & node objects
  $comment = $form_state['comment'];

  // Put all of the Ajax Commands into an array
  $commands = array();

  // Place the comment above the form
  $commands[] = ajax_command_remove('#comment-'.$comment->cid.', comment-'.$comment->cid.' + .comment');

  // Return the Ajax Commands Array
  return array('#type' => 'ajax', '#commands' => $commands);

 }

Complex Survey

Hi There,

I'm looking to start a site to host a complex survey for something i'm working on..

It will be ~8 pages long and needs to be able to dynamically change the form based on responses.

i.e. if I say I eat chicken, then click next - it should show a form showing multiple other questions about chicken.

Would Webforms be the right module for me?

Thanks

How to use httppost to log in the Drupal website

I'm trying to use httppost to log in to a Drupal site via an android application. I am able to use the code below to log in to a site that I wrote from scratch without the use of Drupal.

I'm assuming the $_POST variable names are wrong. The id's for the the form elements are edit-name, edit-pass, and edit-submit. I'm working under the assumption that $_POST['edit-name'] accesses the data for edit-name. If this isn't the case, then how do I modify my nameValuePairs to correctly send data to the $_POST array.

Looking for Drupal Developer to code advertising system

I need an expert Drupal coder to complete a project. The features are very similar to Buysellads.com. Ads bought by the advertisers will automatically display on the seller’s site. The system is already 90% completed. I need the coder to fix 12 bugs and see it through the final stages. I project it will take less than 2 weeks to fix all bugs. I also need the coder to upgrade to the latest Drupal. Pls let me know the cost and send me your resume if interested.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x