Author |
Topic |
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 04 February 2001 : 09:25:27
|
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 |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 04 February 2001 : 14:19:43
|
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." *----*----*----*----*----*----*----*----* |
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 04 February 2001 : 14:34:50
|
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 |
|
|
master of puppets
Junior Member
Canada
117 Posts |
Posted - 04 February 2001 : 20:11:33
|
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 |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 04 February 2001 : 20:23:05
|
Awesome! Works Great! Thanks
Test Site www.eastpasco.com Running on HuwR's SR4 release |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 04 February 2001 : 22:15:58
|
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." *----*----*----*----*----*----*----*----* |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 05 February 2001 : 14:14:28
|
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?
|
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 05 February 2001 : 15:19:32
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 05 February 2001 : 22:15:17
|
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." *----*----*----*----*----*----*----*----* |
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 06 February 2001 : 02:53:16
|
ok, done and updated the zip-file, though ofcouse I also should have added the check for IE4+ and/or NS4+
Pierre |
|
|
mutts
Starting Member
Australia
12 Posts |
Posted - 06 February 2001 : 07:47:46
|
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
|
|
|
gor
Retired Admin
Netherlands
5511 Posts |
Posted - 06 February 2001 : 08:31:48
|
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 |
|
|
tilttek
Junior Member
Canada
333 Posts |
Posted - 06 February 2001 : 12:28:32
|
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 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 06 February 2001 : 12:42:31
|
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." *----*----*----*----*----*----*----*----* |
|
|
wedont
Junior Member
Canada
344 Posts |
Posted - 07 February 2001 : 18:29:12
|
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. |
|
|
Topic |
|