Marinelli Theme: How to add rotating banner like http://marinelli.netsons.org/?

I want to include node title and body field and picture in the rotating banner like in this site: http://marinelli.netsons.org/

Anyone had experience with Marinelli theme and creating a rotating banner?

Migration and Video Player

Hello, My site is currently ran through Wordpress, and I've honestly wanted to transfer over to Drupal for quite some time. My only hangups is two things.

D7 webform when form reached 1000 components started messing up the component weights on those at the end of the list

I have created a rather large form using drupal7 webform. All was going well. I would clone an item, drag it to a new place and the weight would change to reflect the move. However when I reached 1000 components, each new one added or cloned would not move. If it did, it did not stay moved after a save. All the new additions in excess of 1000 have the same weight, and I can't change it. Even tried renumbering in the negative to no avail. What to do?

Having issues uploading files with the Form API and file_save_upload and it not getting the correct revision_id

Installed: Drupal 7.15

Issue:
Every time I try and upload a file, I get this error in my report logs:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'revision_id': INSERT INTO {file_managed} (filemime, filesize, status, timestamp, type) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => application/octet-stream [:db_insert_placeholder_1] => 0 [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_3] => 1350081562 [:db_insert_placeholder_4] => application ) in drupal_write_record().

If you notice above, the SQL statement is not passing a revision_id, so it's resulting to the default (0), and this is causing an issue, saying there is already a record with a revision id of 0.

Here is my code that does validation:

$file = file_save_upload('xml', array('file_validate_extensions' => array('xml')), 'public://', FILE_EXISTS_RENAME);
if ($file) {
$fid = $file->fid;
$doc_url = file_create_url($file->uri);
//Set the status of the uploaded file.
$file->status = FILE_STATUS_PERMANENT;
file_save($file);
}
else {
drupal_set_message(t('Please select a document to upload.'), 'error');
}

Dynamic menu elements with tokens

Under construction.

Creating contextual menu items

Menu Token module allows to insert tokens into menu items title and path.

We are going to create a list of all articles published by the authenticated user using the Menu Token and Views modules.

  1. Create a view with context arguments.
  2. Go to Structure > Views and create a new view named "User Articles" that show "Content" of type "Article" and has the path "/articles".

Unzip a file upon upload via the File field, and auto-create a link to one of the unzipped files

Using Drupal 7. I'm a newb, so go easy on me : (

I am building a site, strictly for learning purposes, that is basically an e-learning course portal.

So I have a content type named 'Course'. The course author role would then create a new Course and in the Course type are numerous fields such as title, description, etc. But also a File upload field that accepts .zip files (this is because most e-learning authoring tools publish to zip format, with the zip containing an index.html and a bunch of .swf files/other .html files and some .js files).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x