Page 1 of 2

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

Posted: Thu Dec 13, 2007 3:08 pm
by SanderKromwijk
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]

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

Posted: Thu Dec 13, 2007 3:30 pm
by jlleblanc
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.

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

Posted: Thu Dec 13, 2007 3:32 pm
by AmyStephen
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 :)

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

Posted: Fri Dec 14, 2007 1:14 pm
by SanderKromwijk
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.

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

Posted: Fri Dec 14, 2007 3:55 pm
by AmyStephen
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 :)

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

Posted: Fri Dec 14, 2007 4:20 pm
by jlleblanc
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!

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

Posted: Fri Dec 14, 2007 4:27 pm
by SanderKromwijk
Ok, i'll correct those few bugs and work on the improvements.

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

Posted: Fri Dec 14, 2007 7:00 pm
by SanderKromwijk
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

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

Posted: Fri Dec 14, 2007 8:16 pm
by AmyStephen
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 :)

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

Posted: Fri Dec 14, 2007 9:08 pm
by jlleblanc
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?

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

Posted: Sat Dec 15, 2007 5:40 pm
by SanderKromwijk
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

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

Posted: Sat Dec 15, 2007 6:11 pm
by AmyStephen
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 :)

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

Posted: Sat Dec 15, 2007 6:37 pm
by SanderKromwijk
Ok,

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

Sander Kromwijk

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

Posted: Sun Dec 16, 2007 10:53 pm
by AmyStephen
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 :)

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

Posted: Mon Dec 17, 2007 1:24 am
by jlleblanc
Task complete, nice work!

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

Posted: Mon Dec 17, 2007 2:17 am
by AmyStephen
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 :)

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

Posted: Mon Dec 17, 2007 5:12 pm
by SanderKromwijk
Thanks!

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

Sander Kromwijk

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

Posted: Sun Mar 09, 2008 12:35 pm
by mahir
i cannot get this to work..

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

what do i do?

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

Posted: Sun Mar 09, 2008 3:31 pm
by SanderKromwijk
Could you send me a email with the address of your site?

Sander Kromwijk

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

Posted: Sun Mar 09, 2008 4:06 pm
by mahir
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...

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

Posted: Sat Mar 29, 2008 7:01 pm
by kane77573
NVM

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

Posted: Sat Mar 29, 2008 7:09 pm
by kane77573
NVM

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

Posted: Sat Apr 26, 2008 10:27 am
by aircrew
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>

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

Posted: Sat Apr 26, 2008 10:55 am
by SanderKromwijk
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

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

Posted: Sat Apr 26, 2008 12:05 pm
by aircrew
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.

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

Posted: Sat Apr 26, 2008 12:14 pm
by aircrew
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.

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

Posted: Sun Apr 27, 2008 1:08 pm
by aircrew
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?

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

Posted: Mon Apr 28, 2008 1:00 am
by aircrew
Ah the newbie is learning - found out the answer to my own question. Simple when you look at the iPaper help!!

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

Posted: Thu May 01, 2008 2:46 pm
by thomasgeo
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

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

Posted: Thu May 01, 2008 10:52 pm
by aircrew
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.