| Author |
Topic Search Topic Options
|
donhill
Groupie
Joined: 06 June 2003
Location: Australia
Status: Offline
Points: 66
|
Post Options
Thanks(0)
Quote Reply
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 
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
j055
Newbie
Joined: 25 June 2003
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
j055
Newbie
Joined: 25 June 2003
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 June 2003 at 4:02am |
|
See my last post in this topic. The new code is there.
|
|
|
 |
j055
Newbie
Joined: 25 June 2003
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
pedalcars
Senior Member
Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
pedalcars
Senior Member
Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |