1
jcera
printer friendly pages
  • 2011/8/28 11:38

  • jcera

  • Just popping in

  • Posts: 72

  • Since: 2004/6/5 6


Hi,
does anyone here know how to develop printer-friendly pages? I tried to search from this site but only saw a reference to print.php of the News module.

Thanks!


2
redheadedrod
Re: printer friendly pages

One suggestion is to look for PDF links. PDF files should be printer friendly.

Whatever you are doing it will be a feature of the module you are using. You may be able to also address this in a theme but that is outside my expertise but I am sure one of the theme designers here could help you with that.

Rodney
Attending College working towards Bachelors in Software Engineering and Network Security.

3
jcera
Re: printer friendly pages
  • 2011/8/28 16:47

  • jcera

  • Just popping in

  • Posts: 72

  • Since: 2004/6/5 6


thanks, redheadedrod.

i tried to download the following from sourceforge, but the file is corrupted;

ezpublish_in_7_schritten_v4ezp.zip

I tried other sources but all download links point to sourceforge. Event he one from the xoops documentation points to it. would you happen to know good a location where i can download it from? Thanks!

4
redheadedrod
Re: printer friendly pages

I think all the filed on here have sourceforge links? Mamba can hopefully tell you more.

5
Peekay
Re: printer friendly pages
  • 2011/8/29 0:18

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


The basic structure of print.php is to create a function that pulls variables from the article, either by direct reference or by including the class used to generate the article content.

Unfortunately, there are no hard and fast rules about how to achieve this, so I can only suggest you download a few modules and compare their print.php structure until you see one that suits the module you are working on.

It's worth doing, especially if your users will be using Firefox which hasn't got a remote chance of ever printing a web page properly.
A thread is for life. Not just for Christmas.

6
Peekay
Re: printer friendly pages
  • 2011/8/29 1:31

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Sorry if I missed something, but what has this file got to do with this topic?

ezpublish_in_7_schritten_v4ezp.zip
A thread is for life. Not just for Christmas.

7
jcera
Re: printer friendly pages
  • 2011/8/29 7:22

  • jcera

  • Just popping in

  • Posts: 72

  • Since: 2004/6/5 6


Thanks, Peekay. About that file, i found this article from this site:

https://xoops.org/modules/news/article.php?storyid=348

by looking for pdf systems for Xoops. It has a link to the file download from sourceforge to download that zipped file, it's supposed to make it easier to support making pdf's in Xoops.

So now, I am choosing between two options:
(1) Study how the other modules can apply to mine; or
(2) go through the quick tutorial from www.fpdf.org and see how i can apply this to my module.

Hi Redheadedrod, thanks. Hopefully Mamba can give some feedback. Meantime, I am taking the tutorial from fpdf.org. :)

8
Mamba
Re: printer friendly pages
  • 2011/8/29 9:31

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Our developers prefer recently www.tcpdf.org, as it seems to address better UTF.

You can check out some of these modules that currently are using TCPDF:

Publisher
Newbb 4.05 beta
Oledrion
xPayment

and check out how they are using it.

I hope, we'll have soon a standard way of using TCPDF in our modules.

In the meantime, this thread might be useful for you.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

9
jcera
Re: printer friendly pages
  • 2011/9/11 12:36

  • jcera

  • Just popping in

  • Posts: 72

  • Since: 2004/6/5 6


Thanks Mamba! It worked.

10
Mamba
Re: printer friendly pages
  • 2011/9/11 12:40

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Excellent!

Can you write a short tutorial on how you did it, so others could learn from it? It's always important that we share our knowledge with others, so they can benefit from it too

Thanks!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

231 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits