Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - printer friendly posts problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

printer friendly posts problem

 Post Reply Post Reply Page  <123>
Author
donhill View Drop Down
Groupie
Groupie
Avatar

Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
Post Options Post Options   Thanks (0) Thanks(0)   Quote donhill Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2003 at 3:49am

yes but it does work on my system too, except as  i said for a couple of posts. When I copy from a webpage and paste it in I am able to printer friendly view the text and image.

When I upload from this url function it doesnt. Since all my original posts to my forum were copied site pages I didnt realize.

I had planned to use the url button to uplaod my images to all new posts but then I discovered on my first new posts they dont work.All my new posts to my forum will be unable to view them unless I either post to a website first before copying them across.

 

Anyway I can get the file with the new code in now? Please

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2003 at 4:42am

Go to the file functions_edit_post.asp and find the convert post to text function at the bottom and change it to:-

'******************************************
'***    Convert Post to Text Function ***
'******************************************

'Function to romove icons and colurs to just leave plain text
Function ConvertToText(ByVal strMessage)

 Dim intLoop   'Loop counter
 Dim strTempEmoticonAltTag 'Temp Emoticon code store

 'Remove the font colours, smilley graphics, images, hyperlinks
 strMessage = Replace(strMessage, " target=""_blank""", "", 1, -1, 1)
 strMessage = Replace(strMessage, " border=""0""", "", 1, -1, 1)

 strMessage = Replace(strMessage, "<a href=""", "", 1, -1, 1)
 strMessage = Replace(strMessage, "<a href= """, "", 1, -1, 1)
 strMessage = Replace(strMessage, "</a>", "", 1, -1, 1)

 'Return the message with the icons and text colours removed
 ConvertToText = strMessage

End Function

Although this changed function is no where near being completed and is full of bugs (worse than the old one) for example it doesn't yet convert links to text correctly, problems with borders, etc. But thats becuase I spent less than 2 minutes on it at the moment.

Back to Top
j055 View Drop Down
Newbie
Newbie


Joined: 25 June 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote j055 Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2003 at 3:51am

hello

Printer friendly page breaking HTML

When I view a printer friendly page with font tags the html is broken. It looks like a replace function is corruping the html but I can't find it in the code. Can you help?

Back to Top
j055 View Drop Down
Newbie
Newbie


Joined: 25 June 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote j055 Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2003 at 3:53am

excpet it dosn't break on your forum so can you tell me where to get the lastest code? I am using 7.01

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2003 at 4:02am
See my last post in this topic. The new code is there.
Back to Top
j055 View Drop Down
Newbie
Newbie


Joined: 25 June 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote j055 Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2003 at 4:54am

Oh yes. I didn't see that that code would address my problem but I've tried it and it does so thank you very much.

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 2:59am
Another html problem on the print friendly page:

If a user has been a twonk and manually inserted forum tags without closing them, the normal page copes OK, but the print friendly page doesn't.

Example:

If a user types in,
"[ RED ]Some text in red [ BLUE ]Some text in blue to end the post"

instead of
"[ RED ]Some text in red [ /FONT ][ BLUE ]Some text in blue to end the post[ /FONT ]"

Then all the following text will maintain the formatting which wasn't closed. In this case, it'll all be in blue. In the normal page, this is cleared at the end of the individual post (ie, next post is fine), but in the print friendly page, the formatting continues.

This is annoying when a user has large / coloured text in their signature, as this carries over to subsequent posts.

Yes it's the user's fault for being a twonk, but given the normal page copes, could the print friendly version not be modified to cope also?

Example:

Some blue text, I have not closed the tag.
www.pedalcars.info

The most fun on four wheels

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 07 November 2003 at 3:01am
This post has no formatting. Looks fine in the forum. Now click the "print friendly" link, it'll be blue!

To avoid all subsequent posts being blue in the print friendly version, I'll add a font closing tag at the end of this post.

PS. Yes it's minor, but if said twonk has an unclosed [ SIZE = 6 ] in their sig, suddenly all the printable pages take way more paper and ink than they should!


Edited by pedalcars
www.pedalcars.info

The most fun on four wheels

Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.