The Joomla! Forum ™






Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Dec 13, 2007 3:08 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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]

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


Last edited by jlleblanc on Mon Dec 17, 2007 1:25 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Dec 13, 2007 3:30 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 12:37 am
Posts: 963
Location: Washington, DC / NoVA
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


Top
 Profile  
 
PostPosted: Thu Dec 13, 2007 3:32 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
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 :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 1:14 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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.

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


Last edited by SanderKromwijk on Fri Dec 14, 2007 1:40 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 3:55 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
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?  :) <-- Note: that was *not* a wink.

Feedback:

1. plg_ instead of com_ for a plugin (com is for component);

2. This is not necessary.
Code:
      <param name="enabled" type="radio" default="1" label="ENABLE" description="ENABLE">
         <option value="0">No</option>
         <option value="1">Yes</option>
      </param>


3. The installer gives error messages for the missing language files (which you likely know.)

4. Other than that, the install and un-install work great.

5. Regarding the difficulty of locating the guid - provided you include a description in your plugin of how one might do that, I see no problem with it.

6. None of the bottom links work.

7. Consider adding a "view fullscreen" link.

Quote:
Fullscreen


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 :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 4:20 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 12:37 am
Posts: 963
Location: Washington, DC / NoVA
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


Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 4:27 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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


Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 7:00 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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


Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 8:16 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Maybe Joe knows how to fix? #3 comment errors from install -
Quote:
        * 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

Quote:
//make html for the scribd document
$html = '';
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '';
$html .= '';
$html .= 'Fullscreen';
$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 :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Fri Dec 14, 2007 9:08 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 12:37 am
Posts: 963
Location: Washington, DC / NoVA
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


Top
 Profile  
 
PostPosted: Sat Dec 15, 2007 5:40 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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


Top
 Profile  
 
PostPosted: Sat Dec 15, 2007 6:11 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
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 :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Sat Dec 15, 2007 6:37 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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.

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


Last edited by SanderKromwijk on Sat Dec 15, 2007 6:50 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Dec 16, 2007 10:53 pm 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
Sander -

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

change the
to

Quote:
$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 :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 1:24 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 12:37 am
Posts: 963
Location: Washington, DC / NoVA
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


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 2:17 am 
Joomla! Champion
Joomla! Champion

Joined: Wed Nov 22, 2006 3:35 pm
Posts: 7056
Location: Nebraska
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 :)

_________________
http://Twitter.com/AmyStephen
http://www.alltogetherasawhole.org/


Top
 Profile  
 
PostPosted: Mon Dec 17, 2007 5:12 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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


Top
 Profile  
 
PostPosted: Sun Mar 09, 2008 12:35 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Feb 20, 2008 6:17 pm
Posts: 10
Location: turkey, istanbul
i cannot get this to work..

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

what do i do?


Top
 Profile  
 
PostPosted: Sun Mar 09, 2008 3:31 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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


Top
 Profile  
 
PostPosted: Sun Mar 09, 2008 4:06 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Feb 20, 2008 6:17 pm
Posts: 10
Location: turkey, istanbul
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...


Top
 Profile  
 
PostPosted: Sat Mar 29, 2008 7:01 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 23, 2006 1:12 am
Posts: 8
NVM


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

Top
 Profile  
 
PostPosted: Sat Mar 29, 2008 7:09 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 23, 2006 1:12 am
Posts: 8
NVM


Top
 Profile  
 
PostPosted: Sat Apr 26, 2008 10:27 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 26, 2008 10:02 am
Posts: 13
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/shockwave/cabs/flash/swflash.cab#version=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/ScribdViewer.swf?document_id=302068&access_key=c39k9hf3fxrgw&page=&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/ScribdViewer.swf?document_id=302068&access_key=c39k9hf3fxrgw&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.js'></script></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-A320-Bahrain">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>


Top
 Profile  
 
PostPosted: Sat Apr 26, 2008 10:55 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Dec 13, 2007 2:59 pm
Posts: 68
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


Top
 Profile  
 
PostPosted: Sat Apr 26, 2008 12:05 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 26, 2008 10:02 am
Posts: 13
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.


Top
 Profile  
 
PostPosted: Sat Apr 26, 2008 12:14 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 26, 2008 10:02 am
Posts: 13
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.


Top
 Profile  
 
PostPosted: Sun Apr 27, 2008 1:08 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 26, 2008 10:02 am
Posts: 13
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?


Top
 Profile  
 
PostPosted: Mon Apr 28, 2008 1:00 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 26, 2008 10:02 am
Posts: 13
Ah the newbie is learning - found out the answer to my own question. Simple when you look at the iPaper help!!


Top
 Profile  
 
PostPosted: Thu May 01, 2008 2:46 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue May 08, 2007 6:12 am
Posts: 7
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


Top
 Profile  
 
PostPosted: Thu May 01, 2008 10:52 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 26, 2008 10:02 am
Posts: 13
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group