127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Google's Highly Open Participation Program tries to get young students into Open Source and Joomla! specifically. Everyone is welcome, there are not limits. You can be a coder, documenter, tester, translator to help out. Jump in and start helping!
User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by SanderKromwijk » Thu Dec 13, 2007 3:08 pm

Hello!

I claimed this task.

About me:
I am a student in Switzerland(Europe). I am on a public high school. I am new to Joomla though, so I'm reading a few tutorials. I just wanted to ask one question: How should the scribd documents be embedded (in an article or somewhere else)?


Claimed: 12/13/2007 Due: 12/27/2007
Google Task

[me=AmyStephen]Added links and due dates[/me]
[me=jlleblanc]Marked task as completed[/me]
Last edited by jlleblanc on Mon Dec 17, 2007 1:25 am, edited 1 time in total.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
jlleblanc
Joomla! Guru
Joomla! Guru
Posts: 963
Joined: Fri Aug 19, 2005 12:37 am
Location: Washington, DC / NoVA
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by jlleblanc » Thu Dec 13, 2007 3:30 pm

Welcome to the contest! Yes, the plugin should allow the user to embed the Scribd document directly in an article or module without having to use the raw code. You'll need to decide on some sort of token to look for and replace with the embed code. I've built a lot of plugins like this, so feel free to contact me if you run into any issues.
Joseph L. LeBlanc: http://www.jlleblanc.com
Frontend components start here: /components/com_[name]/[name].php
Backend components start here: /administrator/components/com_[name]/admin.[name].php

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by AmyStephen » Thu Dec 13, 2007 3:32 pm

Use the core loadmodule plugin as a guide.

Also, there are a number of other contestants working on plugins. You could review their extensions, too, for ideas.

Joe is a great resource, so be certain to take advantage of his offer. It is helpful to keep the discussions in the thread for the benefit of other learners.

Thanks!
Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by SanderKromwijk » Fri Dec 14, 2007 1:14 pm

Hi

Thanks for offering help! I finished the first version of the plugin, but it is not finished yet. At the moment you can insert a scribd document by putting in the following code:
{scribd}h3v3m7tzvgzl{/scribd}
the "h3v3m7tzvgz" is the guid. The problem is that the guid is relatively hard to find, so I want to improve that.

By the way, it would be a great idea to document the events a little better, because it took quite some time before I found the right event.

-I uploaded the wrong file. The file wich is attached now is the right one.
You do not have the required permissions to view the files attached to this post.
Last edited by SanderKromwijk on Fri Dec 14, 2007 1:40 pm, edited 1 time in total.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by AmyStephen » Fri Dec 14, 2007 3:55 pm

Fabulous!
SanderKromwijk wrote: By the way, it would be a great idea to document the events a little better, because it took quite some time before I found the right event.
It would! Looking for some extra credit?  :) [/quote]

Button --> http://www.scribd.com/images/fullscreen.gif

Nicely done. I realize all of my feedback might seem negative. The truth is, the image loads perfectly and this would be "acceptable", as is. You are doing great work!

Thanks for your contributions to the Joomla! community!
Amy :)

User avatar
jlleblanc
Joomla! Guru
Joomla! Guru
Posts: 963
Joined: Fri Aug 19, 2005 12:37 am
Location: Washington, DC / NoVA
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by jlleblanc » Fri Dec 14, 2007 4:20 pm

I like it, I like it  ;D

As far as the GUID goes, yeah, that's just the way these things go. Hopefully, Scribd will someday have a little box saying "here's the ID if you have software that auto embeds."

Another "extra credit" thing you could add would be a way of specifying the width and height in the code to override the plugin parameters. Using something like {scribd 600x800}guidgoeshere{/scribd} would override while {scribd}guidgoeshere{/scribd} would use the default.

Looking good!
Joseph L. LeBlanc: http://www.jlleblanc.com
Frontend components start here: /components/com_[name]/[name].php
Backend components start here: /administrator/components/com_[name]/admin.[name].php

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by SanderKromwijk » Fri Dec 14, 2007 4:27 pm

Ok, i'll correct those few bugs and work on the improvements.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by SanderKromwijk » Fri Dec 14, 2007 7:00 pm

Hi,

This is the new version with the improvements. It is now also possible to specify the size with the following syntax:
{scribd 800x600}guid{/scribd}
where 800x600 is the size.
It is not necessary to specify the size though, then it just sets the size to the default size. I also added a "View Fullscreen" button. I didn't manage (yet) to get the links working, but I hid them so it shouldn't be to much of a problem. I couldn't correct the install problem because the plugin installs on my computer without a problem. I'm starting to write the documentation now, but in which format should it be? In html, odt or pdf?

Sander
You do not have the required permissions to view the files attached to this post.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by AmyStephen » Fri Dec 14, 2007 8:16 pm

Maybe Joe knows how to fix? #3 comment errors from install -
        * JInstaller::install: The language file 'nl_NL.plg_content_scribd.ini' could not be installed because the Administrator language package for 'nl-NL' has not been installed or does not exist.
        * JInstaller::install: The language file 'fr_FR.plg_content_scribd.ini' could not be installed because the Administrator language package for 'fr-FR' has not been installed or does not exist.
        * JInstaller::install: The language file 'de_DE.plg_content_scribd.ini' could not be installed because the Administrator language package for 'de-DE' has not been installed or does not exist.

How about div statements  8), instead of tables?  :P
//make html for the scribd document
$html = '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
Make certain you get the instructions into the description nad figure the language issue figured out and I think you're ready to go.

Amy :)

User avatar
jlleblanc
Joomla! Guru
Joomla! Guru
Posts: 963
Joined: Fri Aug 19, 2005 12:37 am
Location: Washington, DC / NoVA
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by jlleblanc » Fri Dec 14, 2007 9:08 pm

I did some testing. When you add, say, the French language pack and administrator/languages/fr-FR is writable, that removes one of the errors on install. However, the translated strings are still not showing up in the parameters. Both the installer and the language pack have had issues; I'm inclined to say that this is a core bug. Can someone else test this and confirm?
Joseph L. LeBlanc: http://www.jlleblanc.com
Frontend components start here: /components/com_[name]/[name].php
Backend components start here: /administrator/components/com_[name]/admin.[name].php

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by SanderKromwijk » Sat Dec 15, 2007 5:40 pm

Hi,

Maybe I shouldn't put the other language files in the plugin. The rest is finished. So should I upload it with all language files or only english?

Sander Kromwijk
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by AmyStephen » Sat Dec 15, 2007 6:11 pm

I heard from Elin, this morning, that this is a known issue and it is the highest priority on the tracker. So, we will ignore these errors - leave your language files. Eventually (soon) this should be resolved.

Thanks,
Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by SanderKromwijk » Sat Dec 15, 2007 6:37 pm

Ok,

Here is the zip file with the documentation and the plugin.

Sander Kromwijk
You do not have the required permissions to view the files attached to this post.
Last edited by SanderKromwijk on Sat Dec 15, 2007 6:50 pm, edited 1 time in total.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by AmyStephen » Sun Dec 16, 2007 10:53 pm

Sander -

I love it - and it looks great to me! I absolutely love this plugin!

change the to
$html .= '
';
Good instructions, too.

If Joe, or another judge can approve, we'll let you move on.

Thanks for your contributions to the Joomla! community,
Amy :)

User avatar
jlleblanc
Joomla! Guru
Joomla! Guru
Posts: 963
Joined: Fri Aug 19, 2005 12:37 am
Location: Washington, DC / NoVA
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by jlleblanc » Mon Dec 17, 2007 1:24 am

Task complete, nice work!
Joseph L. LeBlanc: http://www.jlleblanc.com
Frontend components start here: /components/com_[name]/[name].php
Backend components start here: /administrator/components/com_[name]/admin.[name].php

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by AmyStephen » Mon Dec 17, 2007 2:17 am

Sander -

With Joe's approval, you are now able to publish your work on the Google Task Page. When that has been done, we will close the task at that location and you will be free to select another task, if you wish.

Thanks so very much for this important contribution to the Joomla! community. I will be one who benefits from your work,
Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd Documents

Post by SanderKromwijk » Mon Dec 17, 2007 5:12 pm

Thanks!

Here's the final version with the corrected
. I'll post it again on google code.

Sander Kromwijk
You do not have the required permissions to view the files attached to this post.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
mahir
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Feb 20, 2008 6:17 pm
Location: turkey, istanbul
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by mahir » Sun Mar 09, 2008 12:35 pm

i cannot get this to work..

i just get a "unable to load document"
error message = required parameter missing..

what do i do?

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by SanderKromwijk » Sun Mar 09, 2008 3:31 pm

Could you send me a email with the address of your site?

Sander Kromwijk
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
mahir
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Feb 20, 2008 6:17 pm
Location: turkey, istanbul
Contact:

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by mahir » Sun Mar 09, 2008 4:06 pm

the site address is

http://demrestaurant.co.uk or http://puccaso.com/demcafe

to be honest, i just took the <embed> stuff from the code and put it into the html of an article.. not the best way of doing it but it works.. i think this has something to do with the new ipaper stuff scribd are doing...

kane77573
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Nov 23, 2006 1:12 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by kane77573 » Sat Mar 29, 2008 7:01 pm

NVM
Last edited by kane77573 on Sat Mar 29, 2008 7:19 pm, edited 1 time in total.

kane77573
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu Nov 23, 2006 1:12 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by kane77573 » Sat Mar 29, 2008 7:09 pm

NVM

aircrew
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Apr 26, 2008 10:02 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by aircrew » Sat Apr 26, 2008 10:27 am

Wondering if you could help a newbie.
I downloaded the zip file with the plugin for the Scribd.
For some reason when I put in the code as per the documentation for the plugin

i.e. {scribd} c39k9hf3fxrgw{/scribd} in the new article text box (or the html editor) I get the Scribd box but an error code #2032

The source article is
http://www.scribd.com/doc/302068/Airbus-A320-Bahrain
and the code copied from the article is below.
Not sure what I am doing wrong.
can anyone help?

................................

<div style="display:none"><script>document.write('<noscript>');</script></div> <object codebase="http://download.macromedia.com/pub/shoc ... on=9,0,0,0" id="embedded_flash_302068_4j2uv_object" name="embedded_flash_302068_4j2uv_object" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle" height="500" width="100%"> <param name="movie" value="http://documents.scribd.com/ScribdViewe ... &version=1"> <param name="quality" value="high"> <param name="play" value="true"> <param name="loop" value="true"> <param name="scale" value="showall"> <param name="wmode" value="opaque"> <param name="devicefont" value="false"> <param name="bgcolor" value="#ffffff"> <param name="menu" value="true"> <param name="allowFullScreen" value="true"> <param name="allowScriptAccess" value="always"> <param name="salign" value=""> <embed src="http://documents.scribd.com/ScribdViewe ... k9hf3fxrgw[/b]&page=&version=1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="embedded_flash_302068_4j2uv_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="100%"></embed> </object><div style="display:none"> </noscript> <script type="text/javascript" src='http://www.scribd.com/javascripts/view. ... </div><div id='embedded_flash_302068_4j2uv' style="width:100%;height:100%"><span style="display:none">Read this doc on Scribd: <a href="http://www.scribd.com/doc/302068/Airbus ... in">Airbus A320 Bahrain</a></span> </div> <div style="display:none"><script type="text/javascript"> var scribd_doc = new scribd.Document(302068, 'c39k9hf3fxrgw'); scribd_doc.write('embedded_flash_302068_4j2uv');</script></div>

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by SanderKromwijk » Sat Apr 26, 2008 10:55 am

Hi,

The problem is that this extension has been made just before the new version of scribd came. It doesn't work anymore. I'll try to correct this when I have some time, but in the meantime you'll have to copy the html provided by scribd.

Sander Kromwijk

aircrew
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Apr 26, 2008 10:02 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by aircrew » Sat Apr 26, 2008 12:05 pm

Hi Sander,
thank you very much for the reply. The HTML to which you refer - is this the Scribd "Embed code" that you cut and paste into Joomla's new article? or using the insert htms box?
please forgive the newbie nature of my query - I am just starting out on this Joomla adventure. Ipaper will be great if I can get it to work!!!
thankyou for your help.

aircrew
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Apr 26, 2008 10:02 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by aircrew » Sat Apr 26, 2008 12:14 pm

I have worked it out. It worked a treat - just need to figure out how to get it to display a larger page on my site.
Look forward to the new plugin.

aircrew
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Apr 26, 2008 10:02 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by aircrew » Sun Apr 27, 2008 1:08 pm

The Scribd code works well - but I have another question if I may:


How do you make the ipaper go to full width and length??
my current attempt is only 12cm wide and 13.5cm long. Bit small!!

can anyone help?

aircrew
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Apr 26, 2008 10:02 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by aircrew » Mon Apr 28, 2008 1:00 am

Ah the newbie is learning - found out the answer to my own question. Simple when you look at the iPaper help!!

thomasgeo
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue May 08, 2007 6:12 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by thomasgeo » Thu May 01, 2008 2:46 pm

Hi Sander,

unfortunately I have some install problems as well. For now I am running Joomla 1.5.0 and i can't install the latest downloadable version of your plugin (here from this thread). Joomla gives me the error message that no XML-Setup file could be found within the package.

Cheers,
Thomas

aircrew
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sat Apr 26, 2008 10:02 am

Re: 127 - Create a Joomla! v 1.5 Content Plugin to embed Scribd

Post by aircrew » Thu May 01, 2008 10:52 pm

I found that I did not need to use the plugin at all. I just went to the ipaper document on scribd - click on the embed icon - select advanced options - click "Include document's text in embed code" - play around with the height and width stuff at the top - click update - then cut and paste the resulting code into the joomla articles HTML editor. Pain in the butt however it works very well!
Hopefully there will be an easier way soon - but I could not (because I am so new at this!) get the plug in to work either.
So, is the plugin supposed to save all the mucking around with the convoluted steps I used above. If that is what it will do - that would be great.


Locked

Return to “Google's Highly Open Participation Contest”