Making Scribd's thumbnails available in Drupal would be great. (The iPaper module does)
My use case is an intranet, where I would run thumbs of PDF's within a sidebar.

Comments

POVYLAZZZ’s picture

Category: feature » support
StatusFileSize
new12.48 KB

Hi,
I have hot the same idea . I just wanted that the image link to the file... I have worked a it on that... and tried to get a thumbnail field but that seamed to be not that easy...
I will add my work as attachment may be some of you will figure what is wrong...
I am novice and I have worked with CCK for first time so you may expect obvious mistakes...

Apfel007’s picture

any progress on this?

mikl’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Category: support » feature

If anyone is willing to make a functioning patch for this, please be my guest.

asghar’s picture

Issue tags: +views scribd thumnail, +scribd thumbnail, +ipaper thumbnail, +scribd
StatusFileSize
new123.84 KB
new2.76 KB

Hi guys

I have create a patch which create ipaper Thumbnail for this ipaper module is required It is working for me
You can see ipaper thumbnail image in view file formate section

Thanks

lsolesen’s picture

+1

Apfel007’s picture

Inspired by that I added a lightbox fromatter

...
/**
 * Formatter to show the Scribd document in a lightbox.
 */
function theme_scribdfield_formatter_ipaper_thumbnail_lightbox($element) {
  if (is_array($element['#item']['data'])) {
    $data = $element['#item']['data'];
    // option for l-function
    $options = array(
        'html' =>TRUE,
        'query' => array(
            'access_key' => $data['scribd_access_key'],
            ),
        'attributes'=> array(
            'rel' => 'lightframe[|width:960px; height:600px; scrolling: auto;]',
            )
        );
    
    // Set path to Scribd Document
    $path = "http://www.scribd.com/full/" .$data['scribd_doc_id'];
    // get thumbnail path
    $thumb_path = _scribdfield_get_thumb_path($data['scribd_doc_id']);
    
    _scribdfield_save_thumb($data['scribd_doc_id']);
    
    if (file_exists($thumb_path)){
      $imagepath = '<img src="/' ._scribdfield_get_thumb_path($data['scribd_doc_id']) .'">';
      }
      else{
        $imagepath = base_path() . drupal_get_path('module', 'scribdfield') .'/empty.jpg';
        $imagepath = '<img src="' .$imagepath .'">';
        }
   return l($imagepath, $path , $options);
   }
}
thomas.feichter’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new5.37 KB

Attached is a patch against the latest 7.x-1.x-dev version adding a thumbnail formatter.
It uses Scribd's thubmnail.get API function. (https://www.scribd.com/developers/platform/api/thumbnail_get)

marcingy’s picture

Sorry I don't often check this project. Thomas do you want maintainer access to the project? I ask this as I know I won't get round to committing patches as I haven't used this project in years in a work context.

thomas.feichter’s picture

I actually also use this module very rarely in a work context and won't have much time to maintain it either, but it would be fine for me as its probably better if it is minimally maintained rather than not maintained at all.

marcingy’s picture

:) Consider yourself a co-maintainer, you should now have commit access.

thomas.feichter’s picture

Status: Needs review » Fixed

I committed patch #7 to 7.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.