This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Displaying "My Recent Posts" as a menu item

Hi,

Just wondering if there's a way to display "My recent posts" as a menu item?

Any help would be much appreciated.

Sarah

five star voting system

Hi there,

Is there any way to set up a view or block to display the votes collated from the fivestar voting module? I hope to get a list of what is the most popular in accordance with the five-star rating. If this is not possible, is there some way to create a view or a block that displays 5 images that have been viewed the most?

Any help would be much appreciated :)

Thanks for your time.

Sarah

Dynamic Autocomplete

I'm trying to get a more dynamic autocomplete that will show different results based on the value of a different input within the same form. So far, I have my form:

$form['_search'] = array(
    '#type'   => 'fieldset',
    '#title'  => t('Search')
  );
  
  $form['_search']['search'] = array(
    '#type'   => 'textfield',
    '#title'  => 'Search',
    '#autocomplete_path'  => 'reports/autocomplete',
    '#size'   => 30,
  );
  
  $form['_search']['submit'] = array(
    '#type'   => 'submit',
    '#value'  => t('Search')
  );
  
  $form['_search']['where'] = array(
    '#type'   => 'radios',
    '#options' => array(
      'choice1'          => t('First Choice'),
      'choice2'          => t('Second Choice'))
  );

I came up with a little javascript that changes the autocomplete path based on the radio button chosen:

$('document').ready(
  $('@input[@name=where]').bind('change', function() {
        $('#edit-search-autocomplete').val('http://my.path.to/reports/autocomplete/'+$('input[@name=where]').val())
    }
  )
)

It all appears to work just fine (I alerted $(#edit-search-autocomplete).val() and saw what I expected to see), except that the autocomplete doesn't autocomplete anymore. I get a javascript error "jQuery.readyList[i].apply is not a function" in jquery.js when I include my javascript.

Remove poll block after users vote

Is it possible to remove poll block when user has voted? I was searching PHP snippets but didn't success.

Time Schedule

I would like to implement a time schedule for a small number of employees. I wonder before starting to work on this if there is a module with the functionality to schedule and track hours worked by an employee, if there is no specific module, I will appreciate if you can point me to a module that could be used as a base for this kind of job.

CCK field label

My problem is two fold

First I want to understand where the check for field label resides. Say I am using a date field and after choosing "select (drop down) wizard" for date, it asks for a "label" i assume its a widget label. Now what I want to do is make that label textfield not required and give it for user to fill.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions