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)
 MOD (tweak) : AYAPF
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kerry
Average Member

USA
553 Posts

Posted - 07 February 2001 :  12:19:31  Show Profile  Visit Kerry's Homepage
And Yet Another Printer-Friendly MOD
(A very minor tweak to Gor's YAPF )

File: http://www.cantonweb.com/kerrycode/ayapf_mod.zip

I did this tweak 'cuz I'm a cheapskate. Most often when printing from the forum, I'm mainly interested in what's in a single post but I end up printing the entire Topic (sometimes many pages) because I'm too lazy to cut-n-paste just the message I want into notepad before printing.

So in order to help myself and all the other lazy cheapskates out there, AYAPF places a printer icon on each message. Click the link at the top of the page, you get the whole Topic. Click the printer on the message, you just get that message.

To implement add 3 lines to topic.asp and upload the file and an icon.

We may not save a rain forest with it, but maybe my ink will last through another readme or two .

-Kerry

Demo: http://www.cantonweb.com/kerrycode/test/default.asp

* NOTE: Line #'s in the zip apply only to the Standard Release of v.3.1sr4. If you have modified your topic.asp or are using a premodified version your line numbers will be different.

Edited by - kerry on 07 February 2001 14:06:19

Kerry
Average Member

USA
553 Posts

Posted - 07 February 2001 :  13:38:49  Show Profile  Visit Kerry's Homepage
The brain hit a bad sector. -If you downloaded this file before the timestamp on this reply, redownload it from the link above - the old zip contained the original YAPF, not AYAPF.

-Kerry

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 07 February 2001 :  15:10:41  Show Profile  Visit rick7165's Homepage
GREAT MOD Kerry!!! Thanks.

Follow Kerry's Instructions then here are the
Changes to make this work with HuwR's Forum.

The Topic.asp file in HuwR's Forum.

Line 456:
<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC=1&REPLYID=<% =rs("REPLY_ID") %>&TOPIC_ID=<% =Request.QueryString("TOPIC_ID") %>')"><img border="0" src="<%=strImageURL %>print.gif" width="16" height="17"></a>

Line 617:
<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC=1&TOPIC_ID=<% =Request.QueryString("TOPIC_ID") %>')"><img border="0" src="<%=strImageURL %>print.gif" width="16" height="17"></a>

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

BTW if your using HuwR's mod you need to change the scr="print.gif" to scr="<%strImageURL %>print.gif"

Here is my Topic.asp File if your having trouble.

http://www.eastpasco.com/tools/topic.txt

Rick



Test Site
www.eastpasco.com
Running on HuwR's SR4 release.
Colors and Graphic scheme done
by Richard Kinser.


Edited by - rick7165 on 07 February 2001 17:28:21
Go to Top of Page

efourie
New Member

USA
80 Posts

Posted - 08 February 2001 :  18:52:54  Show Profile
I have made yet another change, nothing major, but the code lacked the tooltip information. I have replaced the installation instruction with the old(original) and new code(including) tags for those who like consistency in their site.

Here is the new install instructions. Don't use the old code, but instead use the new code.

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.


* 2.1) in topic.asp add at line 517:

old
<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC=1&TOPIC_ID=<% =Request.QueryString("TOPIC_ID") %>')"><img border="0" src="print.gif" width="16" height="17"></a>

new
<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC=1&TOPIC_ID=<% =Request.QueryString("TOPIC_ID") %>')"><img border="0" src="print.gif" alt="Print Friendly version of this reply" width="16" height="17"></a>


* 2.2) in topic.asp add at line 380:

old
<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC=1&REPLYID=<% =rs("REPLY_ID") %>&TOPIC_ID=<% =Request.QueryString("TOPIC_ID") %>')"><img border="0" src="print.gif" width="16" height="17"></a>

new
<a href="JavaScript:openWindow5('pop_printer_friendly.asp?TOPIC=1&REPLYID=<% =rs("REPLY_ID") %>&TOPIC_ID=<% =Request.QueryString("TOPIC_ID") %>')"><img border="0" src="print.gif" alt="Print Friendly version of this reply" width="16" height="17"></a>


.....These place the Printer Friendly icon in each post. ***NOTE: Put them in in this order and LINE NUMBERS listed here will be correct.


3) upload print.gif and pop_printer_friendly.asp

Done.

Eddie

Live Life as if only Christ is watching.
[/font=Tahoma][/b][/center]

Edited by - efourie on 08 February 2001 19:55:57
Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 08 February 2001 :  18:56:55  Show Profile  Visit Kerry's Homepage
Yup - I forgot the ALT tag

Thanks, Eddie

-Kerry

Go to Top of Page

cheldan
Starting Member

Singapore
15 Posts

Posted - 09 February 2001 :  02:37:20  Show Profile
Great Mod Kerry.

Well done.

Thanx Richard for your help also.

Take care guys.
Go to Top of Page

efourie
New Member

USA
80 Posts

Posted - 12 March 2001 :  15:28:30  Show Profile
Ok, seems that this one also does not include the replies on the printer friendly page. What am I missing?

Thanks
Eddie

Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 12 March 2001 :  15:34:43  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
very good idea ;)

havn't looked at your code yet... but it does just modify the existing APFM right? So your passing a variable to it and utilizing the same .asp page?

Reinsnitz (Mike)
><)))'> Need a Mod?
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 12 March 2001 :  16:39:51  Show Profile  Visit Rob Poretti's Homepage
Hi Kerry,

I installed the ORIGINAL printer friendly mod... do I have to uninstall it to run Gor's version?

Rob

Go to Top of Page

nwduffer
Starting Member

45 Posts

Posted - 12 March 2001 :  19:45:05  Show Profile
Man, I hate to be picky, but I think it's "You're not being the ball Danny not Billy."



"...well, it's kind of hard with you talking like that...."

Paul
Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 12 March 2001 :  21:05:46  Show Profile  Visit Kerry's Homepage
quote:

So your passing a variable to it and utilizing the same .asp page?



Yup - it's nothing more than a tweak to Gor's version YAPF.

Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 12 March 2001 :  21:07:05  Show Profile  Visit Kerry's Homepage
quote:

do I have to uninstall it to run Gor's version?



Only if they're named the samething. -Then just rename or delete it.

-Kerry

Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 12 March 2001 :  21:08:48  Show Profile  Visit Kerry's Homepage
quote:

Man, I hate to be picky, but I think it's "You're not being the ball Danny not Billy."


"...well, it's kind of hard with you talking like that...."

Paul



...I can't believe I messed up a quote from Caddy Shack.

-I must've been WAY tired when I posted that.

-Kerry

Go to Top of Page

remarc
Starting Member

2 Posts

Posted - 20 April 2001 :  16:19:25  Show Profile
Hi, I had to add this line after the SQL statement (Line 84) build to ensure it gathered only the reply author ... not all the members.

strSql = strSql & " AND " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "REPLY.R_AUTHOR"


Go to Top of Page

Naveed
New Member

Norway
85 Posts

Posted - 02 June 2001 :  18:30:06  Show Profile  Visit Naveed's Homepage
I get this error:

Microsoft VBScript compilation error '800a0408'

Invalid character

/no/forum/inc_top.asp, line 95

function openWindow5(url) {
--------------------------^


Go to Top of Page

Naveed
New Member

Norway
85 Posts

Posted - 02 June 2001 :  18:59:13  Show Profile  Visit Naveed's Homepage
I solved it... just added the code wrong place because I allready had changed the inc_top.asp and then the line numbers were changed

Go to Top of Page
  Previous Topic Topic Next Topic  
 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.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07