4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Printer-friendly pages
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
kichu
Junior WebHelper
Junior WebHelper


Joined: 20 May 2002
Posts: 3
Location: Chennai, India

PostPosted: Mon May 20, 2002 1:34 pm (15 years, 7 months ago) Reply with QuoteBack to Top

Hi
Please throw at me a php script that could be used to create a printer-friendly page.
(Similar to one that is used in www.4webhelp.net/)
Thanks
S.K

________________________________
Cause something to change.....!
http://www.cyberbrahma.com/
OfflineView User's ProfileFind all posts by kichuSend Personal MessageVisit Poster's WebsiteYahoo Messenger
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon May 20, 2002 1:38 pm (15 years, 7 months ago) Reply with QuoteBack to Top

We aren't actually using a special script. We are using a content management script which allows us to use "templates". We then just use a different template for the printer-friendly version.

Unfortunately, you've used plain old HTML for your site, so without doing it all manually, it isn't possible to have printer-friendly pages. However, for recent browsers, there is an option to use a special style sheet for printing. So you could use this code:

Code:
<div class="menu">Menu</div>


And then put this in your style sheet (with a media=print attribute):

Code:
.menu { display: none; }

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
kichu
Junior WebHelper
Junior WebHelper


Joined: 20 May 2002
Posts: 3
Location: Chennai, India

PostPosted: Mon May 20, 2002 1:54 pm (15 years, 7 months ago) Reply with QuoteBack to Top

Thanks, Daniel.
I'll try that.
BTW, I was one of the beneficiaries of your site during my brief sojourn in f2s.com!
And wich CMS do you use. I am presently dabbling with Mambo.
Regards
S.K

________________________________
Cause something to change.....!
http://www.cyberbrahma.com/
OfflineView User's ProfileFind all posts by kichuSend Personal MessageVisit Poster's WebsiteYahoo Messenger
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon May 20, 2002 2:00 pm (15 years, 7 months ago) Reply with QuoteBack to Top

Actually, it isn't really a CMS, it's just a template class, from PHPLib (see Peter's tutorial for a link).

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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 vote in polls in this forum.


Page generation time: 0.099749 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme