Page 1 of 1
What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 11:10 am
by somic
Hi,
ask for help/advice.
Does anyone know how I can fix this problem in browsing Restored web pages of this site (see below)?
I really don't know (but I didn't try hard...)
Many thanks in advance for any help.
Somic
Marty Christmas and Happy New Year to everyone.
---------------------------------------------------------------------------
<i>Restored from previous forum. Originally posted by <b>Sasa</b>.</i><br /><br /> Hey, hey,<br /><br />nice that this thread got rolling.<br /><br />Well, as I looked on freshmeat.net and sourceforge.net there are lots of C, CPP, Java and other open source libraries. This shouldn't be the problem. To mention a few:<br /><br />Grep of course is open source: <a href="
http://www.gnu.org/software/grep/grep.html" target="_blank"><a href="
http://www.gnu.org/software/grep/grep.html" target="_blank">
http://www.gnu.org/software/grep/grep.html</a></a><br /><br />If you filter for regular expressions AND Programming Language :: C AND Topic :: Software Development :: Libraries<br />you get: <a href="
http://freshmeat.net/search/?q=regular" target="_blank"><a href="
http://freshmeat.net/search/?q=regular" target="_blank">
http://freshmeat.net/search/?q=regular</a></a> expressions§ion=projects&filter=164,809<br /><br />.......
----------------------------------------------------------------------------
Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 11:53 am
by UserOfPure
All the tags need to be [] instead of <>. A simple search/replace by the team would fix it.
Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 12:02 pm
by Kaeru Gaman
nope
there is more to change.
a simple "activate HTML in posts" wouldn't do it, either, because it would need to be activated in each reader's profile, too.
if you desperately need a posting, copy/paste it to notepad, save it as .html and then view it in the browser...
... and there is the question how important this is, because the restored postings are from the forums before summer 2004
Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 2:53 pm
by luis
BackupUser viewer 1.1.
Select the original garbled text and click the "paste" button to be able to read it again.
Select the text you want to extract (or click on the "select all" button) and then click the "copy" button to transfer it back in the clipboard to use it as you wish.
Code: Select all
; Written with PB 4.40 by Luis on 25 Dec 2009, yeah on Christmas ...
EnableExplicit
Enumeration
#WIN_MAIN
#WEB_MAIN
#BTN_PASTE
#BTN_SELECT_ALL
#BTN_COPY
EndEnumeration
Enumeration 1
#OLECMDID_OPEN
#OLECMDID_NEW
#OLECMDID_SAVE
#OLECMDID_SAVEAS
#OLECMDID_SAVECOPYAS
#OLECMDID_PRINT
#OLECMDID_PRINTPREVIEW
#OLECMDID_PAGESETUP
#OLECMDID_SPELL
#OLECMDID_PROPERTIES
#OLECMDID_CUT
#OLECMDID_COPY
#OLECMDID_PASTE
#OLECMDID_PASTESPECIAL
#OLECMDID_UNDO
#OLECMDID_REDO
#OLECMDID_SELECTALL
#OLECMDID_CLEARSELECTION
#OLECMDID_ZOOM
#OLECMDID_GETZOOMRANGE
#OLECMDID_UPDATECOMMANDS
#OLECMDID_REFRESH
#OLECMDID_STOP
#OLECMDID_HIDETOOLBARS
#OLECMDID_SETPROGRESSMAX
#OLECMDID_SETPROGRESSPOS
#OLECMDID_SETPROGRESSTEXT
#OLECMDID_SETTITLE
#OLECMDID_SETDOWNLOADSTATE
#OLECMDID_STOPDOWNLOAD
EndEnumeration
Enumeration 0
#OLECMDEXECOPT_DODEFAULT
#OLECMDEXECOPT_PROMPTUSER
#OLECMDEXECOPT_DONTPROMPTUSER
#OLECMDEXECOPT_SHOWHELP
EndEnumeration
Procedure Main()
Protected iEvent
Protected WGO.IWebBrowser2
Protected tWinRect.RECT
Protected tDeskRect.RECT
Protected sBuffer.s
Protected bad1$ = "<pre id=" + Chr(34) + "code" + Chr(34) + ">"
Protected bad2$ = "</pre id=" + Chr(34) + "code" + Chr(34) + ">"
If OpenWindow(#WIN_MAIN, 0, 0, 810, 240, "BackupUser viewer 1.1", #PB_Window_SystemMenu |#PB_Window_Invisible)
WebGadget(#WEB_MAIN, 5, 5, 800, 200, "")
ButtonGadget(#BTN_PASTE, 5, 210, 150, 25, "Paste garbled HTML")
ButtonGadget(#BTN_SELECT_ALL, 495, 210, 150, 25, "Select all ")
ButtonGadget(#BTN_COPY, 655, 210, 150, 25, "Copy selected as TEXT")
StickyWindow(#WIN_MAIN, 1)
GetWindowRect_(WindowID(#WIN_MAIN), @tWinRect)
SystemParametersInfo_(#SPI_GETWORKAREA, 0, @tDeskRect, 0)
ResizeWindow(#WIN_MAIN, tDeskRect\right - (tWinRect\Right - tWinRect\Left), tDeskRect\bottom - (tWinRect\bottom - tWinRect\top), #PB_Ignore, #PB_Ignore)
HideWindow(#WIN_MAIN, 0)
WGO = GetWindowLongPtr_(GadgetID(#WEB_MAIN), #GWL_USERDATA)
Repeat
iEvent = WaitWindowEvent()
Select iEvent
Case #PB_Event_Gadget
Select EventGadget()
Case #BTN_PASTE
sBuffer = GetClipboardText()
sBuffer = ReplaceString(sBuffer, bad1$, "")
sBuffer = ReplaceString(sBuffer, bad2$, "")
SetGadgetItemText(#WEB_MAIN, #PB_Web_HtmlCode, sBuffer)
sBuffer = ""
ClearClipboard()
Case #BTN_SELECT_ALL
WGO\ExecWB(#OLECMDID_SELECTALL, #OLECMDEXECOPT_DONTPROMPTUSER, 0, 0)
Case #BTN_COPY
WGO\ExecWB(#OLECMDID_COPY, #OLECMDEXECOPT_DONTPROMPTUSER, 0, 0)
WGO\ExecWB(#OLECMDID_CLEARSELECTION, #OLECMDEXECOPT_DONTPROMPTUSER, 0, 0)
EndSelect
EndSelect
Until iEvent = #PB_Event_CloseWindow
EndIf
EndProcedure
Main()

Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 2:58 pm
by cas
Thanks Luis, works great

Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 3:36 pm
by luis
Sadly does not always work (the view is ok but not the copy as text part).
For example look at this first post:
http://www.purebasic.fr/english/viewtop ... =12&t=5104
Even if you save it as .html and load it with IE and than save it as text, the part with the code is all on one single line.
EDIT: should be fixed.
Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 9:12 pm
by somic
Thanks guys (expecially luis for the tool, for me better than nothing)
When I look for solutions I give a look to old code too, because, beeing a beginner, I can find something interesting and avoid to post "stupid questions" (even if in my company we have two milestones: 1. "there are not stupid questions, only stupid replies" and 2. "if in doubt, ASK!!!",; but I understand that there we are paid while here you are all voluntary contributors...
This forum and his people are valuable resources for purebasic

and it is usefull for me to have it all (honest and modest)
Best regards,
Somic
Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 11:21 pm
by luis
somic wrote:Thanks guys (expecially luis for the tool, for me better than nothing)
I found what was causing the problem, now should be fixed. See my original post.
Bye !
Re: What is going on to my browser...:-|
Posted: Fri Dec 25, 2009 11:56 pm
by somic
@luis
luis wrote:
; Written with PB 4.40 by Luis on 25 Dec 2009, yeah on Christmas ...
Good job and good night.
Rgds,
Somic
Re: What is going on to my browser...:-|
Posted: Sat Dec 26, 2009 11:20 am
by blueznl
We all make mistakes.
It makes us human.
(Which, incidentally, makes me more human than others, as I make more mistakes...)
Re: What is going on to my browser...:-|
Posted: Sat Dec 26, 2009 5:32 pm
by somic
@blueznl
Expert is who has made many mistakes...

Re: What is going on to my browser...:-|
Posted: Sun Dec 27, 2009 8:50 pm
by Rook Zimbabwe
See.... I
am a PureBasic Expert!

Re: What is going on to my browser...:-|
Posted: Wed Feb 03, 2010 12:27 pm
by luis
Did someone of the PureBasic team done something about this ?
I just noticed the old posts seem to be "ungarbled" now...
http://www.purebasic.fr/english/search. ... mit=Search
even the ones linked in this thread are readable now.
What's happened ?
Re: What is going on to my browser...:-|
Posted: Wed Feb 03, 2010 12:54 pm
by Fred
Yes, we wrote a script which reformatted them correctly for phpbb3.
Re: What is going on to my browser...:-|
Posted: Wed Feb 03, 2010 1:34 pm
by luis
Nice, thank you.