Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Yet Another Printer Friendly Mod
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

gor
Retired Admin

Netherlands
5511 Posts

Posted - 04 February 2001 :  09:25:27  Show Profile  Visit gor's Homepage
I based the page on the ones that allready were available on the forums created by Davio and Slemieux, so I can't claim all the credit for it!

This is the version used at the forums here.

Things I added were:
Better formatting, the page now uses the fonts used in the forum.
I used <HR> for the lines so they always span the page.
I also put the page in a popup, changed the link to the page so it won't break when the topic title contains a ' and (very important) made sure all the recordsets and the connection object are properly closed.

Download it here: http://forum.snitz.com/archive/default.asp?catid=15&cattitle=Mods+and+Add-On's

Pierre

anotherwin95
Junior Member

USA
140 Posts

Posted - 04 February 2001 :  10:53:30  Show Profile  Visit anotherwin95's Homepage  Send anotherwin95 an ICQ Message
Gor,

Thanks for the mod - almost screwed everything up - had word wrap turned on in my editor so the line 613 I was trying to edit was actually about 300 or so

Once I fixed that it installed like a charm!


Richard Hay
Webmaster/Forum Admin
http://AnotherWin95.com
http://AnotherWin95.com/forum
http://AnotherWin95.com/cowboys/
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 February 2001 :  14:19:43  Show Profile
Really nice mod gor. I really didn't like the layout of the current printer friendly mods out there, but I didn't know what else to do to the formating to make it look much more proffesional like. I even checked UBB's v6 printer friendly mod, see how there's looked and it looked almost the same as the mod that I was using. Just a few changes.

But this one looks really good. I like how it lays out and the formating is great. I really like it.
Nice work.

*----*----*----*----*----*----*----*----*
"Even when you feel you have nothing left,
You still have prayer--And that's enough."

*----*----*----*----*----*----*----*----*
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 04 February 2001 :  14:34:50  Show Profile  Visit gor's Homepage
Thank you

Now it is implemented I don't know why I didn't add it before, because I find it is a great way to quickly browse through topics with a lot of replies.


Pierre
Go to Top of Page

master of puppets
Junior Member

Canada
117 Posts

Posted - 04 February 2001 :  20:11:33  Show Profile  Visit master of puppets's Homepage  Send master of puppets an AOL message  Send master of puppets an ICQ Message  Send master of puppets a Yahoo! Message
What's a good ASP editor? One that says lines and stuff, I am just using Notepad right now, and it sucks.

Help!

"If I close my mind in fear, Please pry it open" - Metallica
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 04 February 2001 :  20:23:05  Show Profile  Visit rick7165's Homepage
Awesome! Works Great! Thanks

Test Site
www.eastpasco.com
Running on HuwR's SR4 release
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 04 February 2001 :  22:15:58  Show Profile
quote:
What's a good ASP editor? One that says lines and stuff, I am just using Notepad right now, and it sucks.
You could try this topic: http://forum.snitz.com/forum/link.asp?TOPIC_ID=1455

From what was discussed, it seems that Arnaae or however you spell it, came out as one of the good free asp editors to use.

*----*----*----*----*----*----*----*----*
"Even when you feel you have nothing left,
You still have prayer--And that's enough."

*----*----*----*----*----*----*----*----*
Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 05 February 2001 :  14:14:28  Show Profile
Nice. I like it. But now I have one really stupid question. How do people actually print this out?

When it opens in the new window, the browser print button is gone (I know I can use the menu, etc...) and there is not a javascript link to print. Did I miss something?

Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 05 February 2001 :  15:19:32  Show Profile  Visit gor's Homepage
quote:

Nice. I like it. But now I have one really stupid question. How do people actually print this out?

When it opens in the new window, the browser print button is gone (I know I can use the menu, etc...) and there is not a javascript link to print. Did I miss something?



Like you said: use the menu. I didn't want to include the button-bar because that would take just that extra space.
Didn't include the javascript link to print yet (I know IE4+ and NS4+ support that). Was on the todo list, but wasn't too high on the priority list (this was a "lets do it within the hour thing").

Pierre
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 February 2001 :  22:15:17  Show Profile
It's nothing too time cosuming gor. I believe it's the "window.print()" command that opens the print window.

"<a href="javascript:window.print()">Print</a>"

Or you could put it in the <BODY> tag.

"<body onLoad="window.print()">"

*----*----*----*----*----*----*----*----*
"Even when you feel you have nothing left,
You still have prayer--And that's enough."

*----*----*----*----*----*----*----*----*
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 06 February 2001 :  02:53:16  Show Profile  Visit gor's Homepage
ok, done and updated the zip-file, though ofcouse I also should have added the check for IE4+ and/or NS4+

Pierre
Go to Top of Page

mutts
Starting Member

Australia
12 Posts

Posted - 06 February 2001 :  07:47:46  Show Profile  Send mutts an ICQ Message
can some one please tell me what I am doing wrong, I haqve downloaded this zip and followed the instructions but it dosent seem to work

Changed needed based on V3.1SR4 :

1) in inc_top.asp add at line 95:

function openWindow5(url) {
popupWin = window.open(url,'new_page','width=450,height=525,scrollbars=yes,toolbars=yes,menubar=yes,resizable=yes')
}

2) in topic.asp add at line 613:

<br>
<center><a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC_ID=<% =Request.QueryString("TOPIC_ID") %>')"><img border="0" src="print.gif" width="16" height="17"></a> <a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC_ID=<% =Request.QueryString("TOPIC_ID")%>')"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Printer Friendly</font></center></a>

This places the Printer Friendly link.

3) upload print.gif and pop_printer_friendly.asp

some one please help

Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 06 February 2001 :  08:31:48  Show Profile  Visit gor's Homepage
Did you make sure you didn't have linewrap on when you edited (so you edited the wrong lines) ?
Did you also upload inc_top.asp (because that one was changed also) ?

What is the error message you are getting ?

Pierre
Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 06 February 2001 :  12:28:32  Show Profile  Visit tilttek's Homepage
quote:

It's nothing too time cosuming gor. I believe it's the "window.print()" command that opens the print window.



IE4 and IE5 doesnt do it te same way, and NE4 and N6 doesnt do it like IE. So yes it take time to test all browsers.



Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 06 February 2001 :  12:42:31  Show Profile
What do you mean IE4 and IE5 doesn't do it the same way? Do you mean that each version browser uses a different javascript function to open the print window?

I tested it on NS4 and it opened the print window ok. Don't know how NS6 would do it. But it would make sense that if the window.print() function works ok on NS4 that it would work on newer versions of the browser too. *shrugs*

Care to explain a bit more tilttek why you would have to do a browser check?

*----*----*----*----*----*----*----*----*
"Even when you feel you have nothing left,
You still have prayer--And that's enough."

*----*----*----*----*----*----*----*----*
Go to Top of Page

wedont
Junior Member

Canada
344 Posts

Posted - 07 February 2001 :  18:29:12  Show Profile
Pierre,

Since it doesn't seem to deal with cookies, beside figuring out the "Line equivalent", does your mod would be compatible with v3.1sr2?

Thanks,

Wedont
snitz ver3.1 sr2
access 2k.
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07