[campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost
  • this is great, great work john.

    i have two things.
    - the default behavior should in my opinion be related to individual
    articles, not the whole issue/page/section (how does it work anyway -
    with issue Id, or with all the links to article.tpl from the home
    page?). i mean, adding all articles is fine, and should be there
    somewhere, but i would like to have an icon next to each article that
    would allow me to add it to the printbox. when article is added to the
    box, the icon disappears - this is maybe some client side scripting for
    future development.
    - second, not really the techie stuff but: because you can DISPLAY (open
    the page) from the Printbox, and not just PRINT, the thing should be
    called something like Prints/Clippings (box), or something like that.

    thank you,
    braja



    sava.tatic@mdlf.org wrote:
    >
    > Dear All,
    >
    > The grand idea Smile finally came to fruition a while ago (sorry for not
    > passing this on earlier). John has cobbled up the famed print box for us.
    > Being his usual self, he took it a step further, whereby the thing could
    > have its independent life.
    >
    > I think that we should first release it as a Campsite feature, and
    > afterwards donate it to the world at large. I am not too sure about John's
    > feelings re: this, but heck, this was also my idea to begin with. So I'll
    > do my best. The reason for delaying the independent life to the print box
    > for a month or so is that I would like to enable all Campsite-based
    > publications to get a head start in implementation, before the thing
    > becomes (somewhat) commonplace (well, OK, I don't really see it spreading
    > like wildfire, but heck, let's get our community some exclusivity for a
    > little while).
    >
    > So please go ahead and test it and send all suggestions to the campsite-DEV
    > list, because John is not part of the core list. If you want to discuss the
    > release strategy, write to the campsite-CORE.
    >
    > Best regards,
    >
    > Sava
    > ----- Forwarded by Sava Tatic/Mdlf on 12/03/04 01:49 PM -----
    >
    > John Pye
    > , Micz Flor
    > ols.com> cc:
    > Subject: printbox-0.1 ?
    > 11/25/04 08:55 AM
    >
    >
    >
    > Hi Sava, Micz
    >
    > Here is a first version of printbox with all the features working far as
    > I can tell.
    >
    > I've installed it at http://pye.dyndns.org/printbox/google.html, and the
    > source is attached.
    >
    > I've set it up to work nicely with bbc.co.uk's newsfeed, so you can see
    > how the 'add current edition' stuff works now. At the moment it's set up
    > to add all articles from the current edition by default, this can be
    > turned off and made a deliberate option. (There are some sports articles
    > in the BBC feed that don't print out so nicely but most are fine, I just
    > haven't set it all up 100%)
    >
    > It also knows how to automatically convert TOLs articles into printable
    > form, and decko articles too.
    >
    > You can also now remove individual items from the printbox and also
    > print just a subset of the items.
    >
    > It works on windows with Moz 1.7, IE 6 and Opera 7 and Lynx. I also
    > checked it works in Mozilla with javascript turned off. It would be
    > worth testing it on a Mac, I don't have access to one though. Also needs
    > testing again in Linux.
    >
    > Hopefully the instructions there are straighforward enough that you can
    > get it working with Campsite quite easily. Note that I made some
    > comments in the README.txt about authentication. I think that could be
    > an issue possibly.
    >
    > I wanted to hand something over now, because I'm going to be away next
    > week and busy till the end of the weekend probably, and you said it was
    > a rush job. But if I can spare some more time though to help getting it
    > installed etc, I will.
    >
    > JP
    >
    > (See attached file: printbox-0.1.zip)
    >
    > ------------------------------------------------------------------------
    > Name: printbox-0.1.zip
    > printbox-0.1.zip Type: Zip Compressed Data (application/x-zip-compressed)
    > Encoding: base64

    --
    Aleksandar Brajanoski
    Internet Development Manager
    Transitions Online
    Chlumova 22, 130 00 Praha 3
    Czech Republic
    420 2 2278-0805 (extension 26)
    420 2 2278-0804 (fax)
    http://www.tol.cz

    TOL: Intelligent Eastern Europe!

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • 14 Comments sorted by
  • Hi Braja

    There is a configuration directive that you can set to turn off
    automatic adding of all articles from the current issue.

    The articles in the current issue are defined by the content of the RSS
    feed - you set a URL in the config file. Or a bespoke system can be
    implemented using the printboxinterface extension class.

    My implementation deliberately steered clear of direct interfacing with
    campsite, however this would be simple via the extension class I
    mentioned, or else if you have an RSS feed system in place or planned
    then I would suggest that as the preferred method.

    JP

    Aleksandar Brajanoski wrote:

    >this is great, great work john.
    >
    >i have two things.
    >- the default behavior should in my opinion be related to individual
    >articles, not the whole issue/page/section (how does it work anyway -
    >with issue Id, or with all the links to article.tpl from the home
    >page?). i mean, adding all articles is fine, and should be there
    >somewhere, but i would like to have an icon next to each article that
    >would allow me to add it to the printbox. when article is added to the
    >box, the icon disappears - this is maybe some client side scripting for
    >future development.
    >- second, not really the techie stuff but: because you can DISPLAY (open
    >the page) from the Printbox, and not just PRINT, the thing should be
    >called something like Prints/Clippings (box), or something like that.
    >
    >thank you,
    >braja
    >
    >
    >
    >sava.tatic@mdlf.org wrote:
    >
    >
    >>Dear All,
    >>
    >>The grand idea Smile finally came to fruition a while ago (sorry for not
    >>passing this on earlier). John has cobbled up the famed print box for us.
    >>Being his usual self, he took it a step further, whereby the thing could
    >>have its independent life.
    >>
    >>I think that we should first release it as a Campsite feature, and
    >>afterwards donate it to the world at large. I am not too sure about John's
    >>feelings re: this, but heck, this was also my idea to begin with. So I'll
    >>do my best. The reason for delaying the independent life to the print box
    >>for a month or so is that I would like to enable all Campsite-based
    >>publications to get a head start in implementation, before the thing
    >>becomes (somewhat) commonplace (well, OK, I don't really see it spreading
    >>like wildfire, but heck, let's get our community some exclusivity for a
    >>little while).
    >>
    >>So please go ahead and test it and send all suggestions to the campsite-DEV
    >>list, because John is not part of the core list. If you want to discuss the
    >>release strategy, write to the campsite-CORE.
    >>
    >>Best regards,
    >>
    >>Sava
    >>----- Forwarded by Sava Tatic/Mdlf on 12/03/04 01:49 PM -----
    >>
    >> John Pye
    >> , Micz Flor
    >> ols.com> cc:
    >> Subject: printbox-0.1 ?
    >> 11/25/04 08:55 AM
    >>
    >>
    >>
    >>Hi Sava, Micz
    >>
    >>Here is a first version of printbox with all the features working far as
    >>I can tell.
    >>
    >>I've installed it at http://pye.dyndns.org/printbox/google.html, and the
    >>source is attached.
    >>
    >>I've set it up to work nicely with bbc.co.uk's newsfeed, so you can see
    >>how the 'add current edition' stuff works now. At the moment it's set up
    >>to add all articles from the current edition by default, this can be
    >>turned off and made a deliberate option. (There are some sports articles
    >>in the BBC feed that don't print out so nicely but most are fine, I just
    >>haven't set it all up 100%)
    >>
    >>It also knows how to automatically convert TOLs articles into printable
    >>form, and decko articles too.
    >>
    >>You can also now remove individual items from the printbox and also
    >>print just a subset of the items.
    >>
    >>It works on windows with Moz 1.7, IE 6 and Opera 7 and Lynx. I also
    >>checked it works in Mozilla with javascript turned off. It would be
    >>worth testing it on a Mac, I don't have access to one though. Also needs
    >>testing again in Linux.
    >>
    >>Hopefully the instructions there are straighforward enough that you can
    >>get it working with Campsite quite easily. Note that I made some
    >>comments in the README.txt about authentication. I think that could be
    >>an issue possibly.
    >>
    >>I wanted to hand something over now, because I'm going to be away next
    >>week and busy till the end of the weekend probably, and you said it was
    >>a rush job. But if I can spare some more time though to help getting it
    >>installed etc, I will.
    >>
    >>JP
    >>
    >>(See attached file: printbox-0.1.zip)
    >>
    >> ------------------------------------------------------------------------
    >> Name: printbox-0.1.zip
    >> printbox-0.1.zip Type: Zip Compressed Data (application/x-zip-compressed)
    >> Encoding: base64
    >>
    >>
    >
    >
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Oops forgot to comment on the latter comment you made...

    > Aleksandar Brajanoski wrote:
    >
    >> this is great, great work john.
    >>
    >> - second, not really the techie stuff but: because you can DISPLAY (open
    >> the page) from the Printbox, and not just PRINT, the thing should be
    >> called something like Prints/Clippings (box), or something like that.
    >
    I don't mind what you call it really. The session in which the stuff is
    stored is limited, so it's no good for storing stuff longer term, so I
    wouldn't call it a 'clippings box' because to me that suggests it lasts
    a bit longer. Maybe that's something that needs to be added though, I
    don't know.

    JP

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • The print box or print cart is an OK working name. And it may even stick. I
    could certainly live with it, but if anyone has better suggestions, please
    speak up.

    Sava



    John Pye
    ols.com> cc:
    Subject: Re: [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost
    12/06/04 01:41 PM
    Please respond to
    campsite-dev






    Oops forgot to comment on the latter comment you made...

    > Aleksandar Brajanoski wrote:
    >
    >> this is great, great work john.
    >>
    >> - second, not really the techie stuff but: because you can DISPLAY (open
    >> the page) from the Printbox, and not just PRINT, the thing should be
    >> called something like Prints/Clippings (box), or something like that.
    >
    I don't mind what you call it really. The session in which the stuff is
    stored is limited, so it's no good for storing stuff longer term, so I
    wouldn't call it a 'clippings box' because to me that suggests it lasts
    a bit longer. Maybe that's something that needs to be added though, I
    don't know.

    JP

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Hi all

    I'm going to be off-air for a few weeks so if anyone has any issues with
    printbox please let me know asap (by friday at latest). Hopefully you
    have been able to take a look at it.

    JP

    Please foward to campsite-core if appropriate.

    sava.tatic@mdlf.org wrote:

    >The print box or print cart is an OK working name. And it may even stick. I
    >could certainly live with it, but if anyone has better suggestions, please
    >speak up.
    >
    >Sava
    >
    >
    >
    > John Pye
    > > ols.com> cc:
    > Subject: Re: [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost
    > 12/06/04 01:41 PM
    > Please respond to
    > campsite-dev
    >
    >
    >
    >
    >
    >
    >Oops forgot to comment on the latter comment you made...
    >
    >
    >
    >>Aleksandar Brajanoski wrote:
    >>
    >>
    >>
    >>>this is great, great work john.
    >>>
    >>>- second, not really the techie stuff but: because you can DISPLAY (open
    >>>the page) from the Printbox, and not just PRINT, the thing should be
    >>>called something like Prints/Clippings (box), or something like that.
    >>>
    >>>
    >I don't mind what you call it really. The session in which the stuff is
    >stored is limited, so it's no good for storing stuff longer term, so I
    >wouldn't call it a 'clippings box' because to me that suggests it lasts
    >a bit longer. Maybe that's something that needs to be added though, I
    >don't know.
    >
    >JP
    >
    >
    >
    >
    >
    >
    >
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • This is a multipart message in MIME format.
    --=_alternative 0049B793C1256F6A_=
    Content-Type: text/plain; charset="us-ascii"

    I'd say to call it the "printing basket" or the "printing cart", but not
    the "print cart"

    doug






    John Pye
    12/14/2004 02:17 PM
    Please respond to campsite-dev


    To: campsite-dev@campware.org
    cc:
    Subject: Re: [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost


    Hi all

    I'm going to be off-air for a few weeks so if anyone has any issues with
    printbox please let me know asap (by friday at latest). Hopefully you
    have been able to take a look at it.

    JP

    Please foward to campsite-core if appropriate.

    sava.tatic@mdlf.org wrote:

    >The print box or print cart is an OK working name. And it may even stick.
    I
    >could certainly live with it, but if anyone has better suggestions,
    please
    >speak up.
    >
    >Sava
    >
    >
    >
    > John Pye
    > campsite-dev@campware.org
    > ols.com> cc:
    > Subject: Re:
    [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost
    > 12/06/04 01:41 PM
    > Please respond to
    > campsite-dev
    >
    >
    >
    >
    >
    >
    >Oops forgot to comment on the latter comment you made...
    >
    >
    >
    >>Aleksandar Brajanoski wrote:
    >>
    >>
    >>
    >>>this is great, great work john.
    >>>
    >>>- second, not really the techie stuff but: because you can DISPLAY
    (open
    >>>the page) from the Printbox, and not just PRINT, the thing should be
    >>>called something like Prints/Clippings (box), or something like that.
    >>>
    >>>
    >I don't mind what you call it really. The session in which the stuff is
    >stored is limited, so it's no good for storing stuff longer term, so I
    >wouldn't call it a 'clippings box' because to me that suggests it lasts
    >a bit longer. Maybe that's something that needs to be added though, I
    >don't know.
    >
    >JP
    >
    >
    >
    >
    >
    >
    >
    >




    --=_alternative 0049B793C1256F6A_=
    Content-Type: text/html; charset="us-ascii"



    I'd say to call it the "printing basket" or the "printing cart", but not the "print cart"



    doug













    John Pye <john@curioussymbols.com>

    12/14/2004 02:17 PM

    Please respond to campsite-dev


           

            To:        campsite-dev@campware.org

            cc:        

            Subject:        Re: [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost






    Hi all



    I'm going to be off-air for a few weeks so if anyone has any issues with

    printbox please let me know asap (by friday at latest). Hopefully you

    have been able to take a look at it.



    JP



    Please foward to campsite-core if appropriate.



    sava.tatic@mdlf.org wrote:



    >The print box or print cart is an OK working name. And it may even stick. I

    >could certainly live with it, but if anyone has better suggestions, please

    >speak up.

    >

    >Sava

    >

    >

    >                                                                                                                                    

    >                      John Pye                                                                                                      

    >                      <john@curioussymb        To:       campsite-dev@campware.org                                                  

    >                      ols.com>                 cc:                                                                                  

    >                                               Subject:  Re: [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost        

    >                      12/06/04 01:41 PM                                                                                              

    >                      Please respond to                                                                                              

    >                      campsite-dev                                                                                                  

    >                                                                                                                                    

    >                                                                                                                                    

    >

    >

    >

    >

    >Oops forgot to comment on the latter comment you made...

    >

    >  

    >

    >>Aleksandar Brajanoski wrote:

    >>

    >>    

    >>

    >>>this is great, great work john.

    >>>

    >>>- second, not really the techie stuff but: because you can DISPLAY (open

    >>>the page) from the Printbox, and not just PRINT, the thing should be

    >>>called something like Prints/Clippings (box), or something like that.

    >>>      

    >>>

    >I don't mind what you call it really. The session in which the stuff is

    >stored is limited, so it's no good for storing stuff longer term, so I

    >wouldn't call it a 'clippings box' because to me that suggests it lasts

    >a bit longer. Maybe that's something that needs to be added though, I

    >don't know.

    >

    >JP

    >

    >

    >

    >

    >

    >

    >  

    >








    --=_alternative 0049B793C1256F6A_=--

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Brajo,

    Can you make the final tests and additions to John's howto soonish? So that
    we can bundle the print box/printing basket with the next release of
    Campsite?

    What needs to be done is primarily to give an answer to this:

    "My implementation deliberately steered clear of direct interfacing with
    campsite, however this would be simple via the extension class I
    mentioned, or else if you have an RSS feed system in place or planned
    then I would suggest that as the preferred method."

    And we need to agree on a name.

    Sava



    Douglas.Arellanes
    @mdlf.org To: campsite-dev@campware.org
    cc:
    12/14/04 02:25 PM Subject: Re: [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost
    Please respond to
    campsite-dev







    I'd say to call it the "printing basket" or the "printing cart", but not
    the "print cart"

    doug




    John Pye
    m> cc:
    Subject: Re: [campsite-dev] Re:
    [campsite-core] printbox-0.1 is here, almost
    12/14/2004 02:17 PM
    Please respond to
    campsite-dev






    Hi all

    I'm going to be off-air for a few weeks so if anyone has any issues with
    printbox please let me know asap (by friday at latest). Hopefully you
    have been able to take a look at it.

    JP

    Please foward to campsite-core if appropriate.

    sava.tatic@mdlf.org wrote:

    >The print box or print cart is an OK working name. And it may even stick.
    I
    >could certainly live with it, but if anyone has better suggestions, please
    >speak up.
    >
    >Sava
    >
    >
    >

    > John Pye

    > campsite-dev@campware.org

    > ols.com> cc:

    > Subject: Re:
    [campsite-dev] Re: [campsite-core] printbox-0.1 is here, almost
    > 12/06/04 01:41 PM

    > Please respond to

    > campsite-dev

    >

    >

    >
    >
    >
    >
    >Oops forgot to comment on the latter comment you made...
    >
    >
    >
    >>Aleksandar Brajanoski wrote:
    >>
    >>
    >>
    >>>this is great, great work john.
    >>>
    >>>- second, not really the techie stuff but: because you can DISPLAY (open
    >>>the page) from the Printbox, and not just PRINT, the thing should be
    >>>called something like Prints/Clippings (box), or something like that.
    >>>
    >>>
    >I don't mind what you call it really. The session in which the stuff is
    >stored is limited, so it's no good for storing stuff longer term, so I
    >wouldn't call it a 'clippings box' because to me that suggests it lasts
    >a bit longer. Maybe that's something that needs to be added though, I
    >don't know.
    >
    >JP
    >
    >
    >
    >
    >
    >
    >
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • What's the lingo in the printshop business? I'm thinking of those places
    like kinkos etc... anyone know? Kinda like a job tray or something....

    Douglas.Arellanes@mdlf.org wrote:

    >
    > I'd say to call it the "printing basket" or the "printing cart", but
    > not the "print cart"
    >
    > doug
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Question: in index.php I commented smarty config (we have it in include path),
    but there are 2 more directories below, that are not described in Readme.txt
    and evidently are connected to your local installation. Shall I change them
    according to our website?
    Ondra

    On Tuesday 14 of December 2004 15:18, John Pye wrote:
    > What's the lingo in the printshop business? I'm thinking of those places
    > like kinkos etc... anyone know? Kinda like a job tray or something....
    >
    > Douglas.Arellanes@mdlf.org wrote:
    > > I'd say to call it the "printing basket" or the "printing cart", but
    > > not the "print cart"
    > >
    > > doug

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Hi Ondra

    Hope the following helps.

    Here is the index.php file as I have it:

    > # include trailing slash. comment line out to use default
    > define('PB_SMARTY_DIR','c:/cygwin/var/www/pye2.dyndns.org/include/smarty-2-6-6/');]

    This is your smarty code location

    >
    > # include trailing slash. comment line out to use default
    > define('PB_TEMPLATE_DIR',
    > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates/');

    This is the TEMPLATE_DIR for Smarty - it's where all the printbox
    templates need to be residing.

    >
    > # include trailing slash. comment line out to use default
    > define('PB_COMPILE_DIR',
    > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates_c/');

    This is the COMPILE_DIR where compiled templates must be stored (needs
    to be writable)

    >
    > # allow printbox to print remote documents
    > define('PB_PRINT_REMOTE_DOCUMENTS',1);
    >
    > # allow use of 'addEdition'
    > define('PB_ADD_EDITION',1);
    >
    > #use 'addEdition' when creating a new printbox
    > define('PB_ALWAYS_ADD_EDITION',1);
    >
    > # use the following location for MAGPIE, if there is no MAGPIE_DIR.
    > Add a TRAILING SLASH
    > define('PB_MAGPIE_DIR','magpierss-0.7/');

    This is where you need to install MAGPIE on your system, if you haven't
    installed it anywhere else.

    >
    > # where is the RSS document list located/
    > define('PB_RSS_URL','http://news.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss091.xml');

    That's just a URL where your RSS feed is available. You can
    alternatively code up some changes to the printboxinterface class.

    Ondra Koutek wrote:

    >Question: in index.php I commented smarty config (we have it in include path),
    >but there are 2 more directories below, that are not described in Readme.txt
    >and evidently are connected to your local installation. Shall I change them
    >according to our website?
    >Ondra
    >
    >On Tuesday 14 of December 2004 15:18, John Pye wrote:
    >
    >
    >>What's the lingo in the printshop business? I'm thinking of those places
    >>like kinkos etc... anyone know? Kinda like a job tray or something....
    >>
    >>Douglas.Arellanes@mdlf.org wrote:
    >>
    >>
    >>>I'd say to call it the "printing basket" or the "printing cart", but
    >>>not the "print cart"
    >>>
    >>>doug
    >>>
    >>>
    >
    >
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • We do not have magpierss on our system and it is not in ports. Do we need to
    install that?
    Ondra

    On Thursday 16 of December 2004 14:50, John Pye wrote:
    > Hi Ondra
    >
    > Hope the following helps.
    >
    > Here is the index.php file as I have it:
    > > # include trailing slash. comment line out to use default
    > > define('PB_SMARTY_DIR','c:/cygwin/var/www/pye2.dyndns.org/include/smarty-
    > >2-6-6/');]
    >
    > This is your smarty code location
    >
    > > # include trailing slash. comment line out to use default
    > > define('PB_TEMPLATE_DIR',
    > > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates/');
    >
    > This is the TEMPLATE_DIR for Smarty - it's where all the printbox
    > templates need to be residing.
    >
    > > # include trailing slash. comment line out to use default
    > > define('PB_COMPILE_DIR',
    > > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates_c/');
    >
    > This is the COMPILE_DIR where compiled templates must be stored (needs
    > to be writable)
    >
    > > # allow printbox to print remote documents
    > > define('PB_PRINT_REMOTE_DOCUMENTS',1);
    > >
    > > # allow use of 'addEdition'
    > > define('PB_ADD_EDITION',1);
    > >
    > > #use 'addEdition' when creating a new printbox
    > > define('PB_ALWAYS_ADD_EDITION',1);
    > >
    > > # use the following location for MAGPIE, if there is no MAGPIE_DIR.
    > > Add a TRAILING SLASH
    > > define('PB_MAGPIE_DIR','magpierss-0.7/');
    >
    > This is where you need to install MAGPIE on your system, if you haven't
    > installed it anywhere else.
    >
    > > # where is the RSS document list located/
    > > define('PB_RSS_URL','http://news.bbc.co.uk/rss/newsonline_uk_edition/fron
    > >t_page/rss091.xml');
    >
    > That's just a URL where your RSS feed is available. You can
    > alternatively code up some changes to the printboxinterface class.
    >
    > Ondra Koutek wrote:
    > >Question: in index.php I commented smarty config (we have it in include
    > > path), but there are 2 more directories below, that are not described in
    > > Readme.txt and evidently are connected to your local installation. Shall
    > > I change them according to our website?
    > >Ondra
    > >
    > >On Tuesday 14 of December 2004 15:18, John Pye wrote:
    > >>What's the lingo in the printshop business? I'm thinking of those places
    > >>like kinkos etc... anyone know? Kinda like a job tray or something....
    > >>
    > >>Douglas.Arellanes@mdlf.org wrote:
    > >>>I'd say to call it the "printing basket" or the "printing cart", but
    > >>>not the "print cart"
    > >>>
    > >>>doug

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • I tried to install magpierss and it does not work on our server.
    1) FreeBSD changed port structure and I am unable to upgradeports unless
    upgrading to 5.3 version.
    2) 5.3 version needs specially patched Campsite (2.1.6rc1), versions below are
    not working. However we are using 2.5 in TOL, and it needs to upgrade CS
    first.
    3) Upgrade of FreeBSD 5.2.1 to 5.3 needs to recompile all installed packages.

    Due to these reasons it worth to be conservative with TOL site for now.
    I vote for printbox to be aviable as separate module, or let me know how to
    install printbox without makpierss.

    Ondra

    On Thursday 16 of December 2004 15:43, Ondra Koutek wrote:
    > We do not have magpierss on our system and it is not in ports. Do we need
    > to install that?
    > Ondra
    >
    > On Thursday 16 of December 2004 14:50, John Pye wrote:
    > > Hi Ondra
    > >
    > > Hope the following helps.
    > >
    > > Here is the index.php file as I have it:
    > > > # include trailing slash. comment line out to use default
    > > > define('PB_SMARTY_DIR','c:/cygwin/var/www/pye2.dyndns.org/include/smart
    > > >y- 2-6-6/');]
    > >
    > > This is your smarty code location
    > >
    > > > # include trailing slash. comment line out to use default
    > > > define('PB_TEMPLATE_DIR',
    > > > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates/');
    > >
    > > This is the TEMPLATE_DIR for Smarty - it's where all the printbox
    > > templates need to be residing.
    > >
    > > > # include trailing slash. comment line out to use default
    > > > define('PB_COMPILE_DIR',
    > > > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates_c/');
    > >
    > > This is the COMPILE_DIR where compiled templates must be stored (needs
    > > to be writable)
    > >
    > > > # allow printbox to print remote documents
    > > > define('PB_PRINT_REMOTE_DOCUMENTS',1);
    > > >
    > > > # allow use of 'addEdition'
    > > > define('PB_ADD_EDITION',1);
    > > >
    > > > #use 'addEdition' when creating a new printbox
    > > > define('PB_ALWAYS_ADD_EDITION',1);
    > > >
    > > > # use the following location for MAGPIE, if there is no MAGPIE_DIR.
    > > > Add a TRAILING SLASH
    > > > define('PB_MAGPIE_DIR','magpierss-0.7/');
    > >
    > > This is where you need to install MAGPIE on your system, if you haven't
    > > installed it anywhere else.
    > >
    > > > # where is the RSS document list located/
    > > > define('PB_RSS_URL','http://news.bbc.co.uk/rss/newsonline_uk_edition/fr
    > > >on t_page/rss091.xml');
    > >
    > > That's just a URL where your RSS feed is available. You can
    > > alternatively code up some changes to the printboxinterface class.
    > >
    > > Ondra Koutek wrote:
    > > >Question: in index.php I commented smarty config (we have it in include
    > > > path), but there are 2 more directories below, that are not described
    > > > in Readme.txt and evidently are connected to your local installation.
    > > > Shall I change them according to our website?
    > > >Ondra
    > > >
    > > >On Tuesday 14 of December 2004 15:18, John Pye wrote:
    > > >>What's the lingo in the printshop business? I'm thinking of those
    > > >> places like kinkos etc... anyone know? Kinda like a job tray or
    > > >> something....
    > > >>
    > > >>Douglas.Arellanes@mdlf.org wrote:
    > > >>>I'd say to call it the "printing basket" or the "printing cart", but
    > > >>>not the "print cart"
    > > >>>
    > > >>>doug

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Ondra Koutek wrote:

    >We do not have magpierss on our system and it is not in ports. Do we need to
    >install that?
    >Ondra
    >
    When you talk about 'ports', that's a BSD thing right? MagpieRSS is pur
    PHP so you can just download it and install it in your php include path.
    No need for a binary version or anything.

    But you don't have to install it. If you want to use the RSS importer as
    the means by which you download the list of stories in the latest
    edition, it's a quick method doing it, with the nice side-effect of
    meaning that your content is then syndicatable etc.

    But you can do it another way. The printboxinterface class encapsulates
    the method by which the list of stories is obtained. In this case, you
    would extend the printboxinterface class and create an SQL-squery
    replacement for the following, perhaps:

    > /**
    > Add items from the current or another specified edition
    > */
    > function addEdition($edition=NULL){
    > //die(MAGPIE_DIR.'rss_fetch.inc');
    > require_once(MAGPIE_DIR.'rss_fetch.inc');
    >
    > if(!defined('PB_RSS_URL')){
    > $this->error="RSS URL not specified";
    > return false;
    > }
    >
    > $url=PB_RSS_URL;
    >
    > $rss = fetch_rss($url);
    >
    > foreach($rss->items as $item){
    > $this->addPrintBoxItem($item['link'],$item['title']);
    > }
    >
    > $_SESSION['PB_EDITION']=true;
    >
    > return true;
    > }

    Note that the PB_EDITION flag is required to be set to ensure that all
    the titles are not again automatically added if they have just been
    manually removed by the user.

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Thanks John and Ondra,

    I just couldn't figure out how to configure the thing so it works with
    campsite directly, rather than with RSS feed.

    Can you give us some hints?

    Thanks in advance,
    Braja

    Ondra Koutek wrote:
    >
    > I tried to install magpierss and it does not work on our server.
    > 1) FreeBSD changed port structure and I am unable to upgradeports unless
    > upgrading to 5.3 version.
    > 2) 5.3 version needs specially patched Campsite (2.1.6rc1), versions below are
    > not working. However we are using 2.5 in TOL, and it needs to upgrade CS
    > first.
    > 3) Upgrade of FreeBSD 5.2.1 to 5.3 needs to recompile all installed packages.
    >
    > Due to these reasons it worth to be conservative with TOL site for now.
    > I vote for printbox to be aviable as separate module, or let me know how to
    > install printbox without makpierss.
    >
    > Ondra
    >
    > On Thursday 16 of December 2004 15:43, Ondra Koutek wrote:
    > > We do not have magpierss on our system and it is not in ports. Do we need
    > > to install that?
    > > Ondra
    > >
    > > On Thursday 16 of December 2004 14:50, John Pye wrote:
    > > > Hi Ondra
    > > >
    > > > Hope the following helps.
    > > >
    > > > Here is the index.php file as I have it:
    > > > > # include trailing slash. comment line out to use default
    > > > > define('PB_SMARTY_DIR','c:/cygwin/var/www/pye2.dyndns.org/include/smart
    > > > >y- 2-6-6/');]
    > > >
    > > > This is your smarty code location
    > > >
    > > > > # include trailing slash. comment line out to use default
    > > > > define('PB_TEMPLATE_DIR',
    > > > > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates/');
    > > >
    > > > This is the TEMPLATE_DIR for Smarty - it's where all the printbox
    > > > templates need to be residing.
    > > >
    > > > > # include trailing slash. comment line out to use default
    > > > > define('PB_COMPILE_DIR',
    > > > > 'c:/cygwin/var/www/pye2.dyndns.org/html/printbox/smartytemplates_c/');
    > > >
    > > > This is the COMPILE_DIR where compiled templates must be stored (needs
    > > > to be writable)
    > > >
    > > > > # allow printbox to print remote documents
    > > > > define('PB_PRINT_REMOTE_DOCUMENTS',1);
    > > > >
    > > > > # allow use of 'addEdition'
    > > > > define('PB_ADD_EDITION',1);
    > > > >
    > > > > #use 'addEdition' when creating a new printbox
    > > > > define('PB_ALWAYS_ADD_EDITION',1);
    > > > >
    > > > > # use the following location for MAGPIE, if there is no MAGPIE_DIR.
    > > > > Add a TRAILING SLASH
    > > > > define('PB_MAGPIE_DIR','magpierss-0.7/');
    > > >
    > > > This is where you need to install MAGPIE on your system, if you haven't
    > > > installed it anywhere else.
    > > >
    > > > > # where is the RSS document list located/
    > > > > define('PB_RSS_URL','http://news.bbc.co.uk/rss/newsonline_uk_edition/fr
    > > > >on t_page/rss091.xml');
    > > >
    > > > That's just a URL where your RSS feed is available. You can
    > > > alternatively code up some changes to the printboxinterface class.
    > > >
    > > > Ondra Koutek wrote:
    > > > >Question: in index.php I commented smarty config (we have it in include
    > > > > path), but there are 2 more directories below, that are not described
    > > > > in Readme.txt and evidently are connected to your local installation.
    > > > > Shall I change them according to our website?
    > > > >Ondra
    > > > >
    > > > >On Tuesday 14 of December 2004 15:18, John Pye wrote:
    > > > >>What's the lingo in the printshop business? I'm thinking of those
    > > > >> places like kinkos etc... anyone know? Kinda like a job tray or
    > > > >> something....
    > > > >>
    > > > >>Douglas.Arellanes@mdlf.org wrote:
    > > > >>>I'd say to call it the "printing basket" or the "printing cart", but
    > > > >>>not the "print cart"
    > > > >>>
    > > > >>>doug

    --
    Aleksandar Brajanoski
    Internet Development Manager
    Transitions Online
    Chlumova 22, 130 00 Praha 3
    Czech Republic
    420 2 2278-0805 (extension 26)
    420 2 2278-0804 (fax)
    http://www.tol.cz

    TOL: Intelligent Eastern Europe!

    ------------------------------------------
    Posted to Phorum via PhorumMail
  • Have a look at this class, which would be called
    campsiteprintbox.inc.php. It would need some changing of course.

    require_once("printboxinterface.inc.php");

    class CampsitePrintBox extends PrintBoxInterface{

    function CampsitePrintBox(){
    $this->PrintBoxInterface();
    }

    function addEdition($edition=NULL){
    // printing past editions is not supported by the GUI yet but
    could be fairly easily

    // somehow you need to get the ID of the current edition
    $edition=3;

    // the do query of your campsite database -- I don't know the
    structure of it but maybe it's like
    $sql="SELECT sectionid,sectiontitle,articletitle,articleid FROM
    articles WHERE section=".mysql_escape($edition);
    $res=mysql_query($sql,...);

    while($row=mysql_fetch_assoc($res)){

    $url=$this->makeArticleURL($edition,$row['sectionid'],$row['articleid']);

    $this->addPrintBoxItem($url,$row['articletitle']);
    }

    $_SESSION['PB_EDITION']=true;
    return true;
    }

    function makeArticleURL($edition,$section,$article){
    return
    "http://".$_SERVER['SERVER_NAME']."/look/xxxx.tpl?edition=".$edition."§ion=".$section."&article=".$article;
    }
    }

    In index.php uncomment the following line

    //define('PB_INTERFACE_CLASS','PrintBoxInterfaceCampsite');

    and change it to

    define('PB_INTERFACE_CLASS','CampsitePrintBox');

    Hopefully that works ok.

    JP

    John Pye wrote:

    > Ondra Koutek wrote:
    >
    >> We do not have magpierss on our system and it is not in ports. Do we
    >> need to install that?
    >> Ondra
    >>
    > When you talk about 'ports', that's a BSD thing right? MagpieRSS is
    > pur PHP so you can just download it and install it in your php include
    > path. No need for a binary version or anything.
    >
    > But you don't have to install it. If you want to use the RSS importer
    > as the means by which you download the list of stories in the latest
    > edition, it's a quick method doing it, with the nice side-effect of
    > meaning that your content is then syndicatable etc.
    >
    > But you can do it another way. The printboxinterface class
    > encapsulates the method by which the list of stories is obtained. In
    > this case, you would extend the printboxinterface class and create an
    > SQL-squery replacement for the following, perhaps:
    >
    >> /**
    >> Add items from the current or another specified edition
    >> */
    >> function addEdition($edition=NULL){
    >> //die(MAGPIE_DIR.'rss_fetch.inc');
    >> require_once(MAGPIE_DIR.'rss_fetch.inc');
    >> if(!defined('PB_RSS_URL')){
    >> $this->error="RSS URL not specified";
    >> return false;
    >> }
    >>
    >> $url=PB_RSS_URL;
    >> $rss = fetch_rss($url);
    >> foreach($rss->items as $item){
    >> $this->addPrintBoxItem($item['link'],$item['title']);
    >> }
    >> $_SESSION['PB_EDITION']=true;
    >> return true;
    >> }
    >
    >
    > Note that the PB_EDITION flag is required to be set to ensure that all
    > the titles are not again automatically added if they have just been
    > manually removed by the user.
    >

    ------------------------------------------
    Posted to Phorum via PhorumMail