From 48be7eef3238c58ce493335081400a7fce740c60 Mon Sep 17 00:00:00 2001
From: hpbruna <hermanpeterbruna@gmail.com>
Date: Wed, 28 Dec 2011 11:05:05 +0100
Subject: [PATCH] Issue #1386288: Created requested feature.

---
 includes/jcarousel.views.inc |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/includes/jcarousel.views.inc b/includes/jcarousel.views.inc
index 68a090b..31a540b 100644
--- a/includes/jcarousel.views.inc
+++ b/includes/jcarousel.views.inc
@@ -207,6 +207,14 @@ function jcarousel_views_add($view, $display_id = NULL) {
       $options['offset'] = $pager_offset + 1;
     }
   }
+  
+   // takes the position from the URL from the 'pos' parameter e.g. example.com?pos=5
+  if(isset($_GET['pos'])){
+$urlstartposition=$_GET['pos'];
+} else {
+$urlstartposition=1;
+}
+$options['start']=(float)$urlstartposition;
 
   $identifier = drupal_clean_css_identifier('jcarousel_dom_' . $options['view_options']['jcarousel_dom_id']);
   return jcarousel_add($identifier, $options);
-- 
1.6.5.1

