What is going on to my browser...:-|

Everything else that doesn't fall into one of the other PB categories.
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

What is going on to my browser...:-|

Post 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 />.......
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Semel in anno licet insanire (Seneca)
email: somic@libero.it, website: http://www.semelinanno.com
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: What is going on to my browser...:-|

Post by UserOfPure »

All the tags need to be [] instead of <>. A simple search/replace by the team would fix it.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: What is going on to my browser...:-|

Post 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
oh... and have a nice day.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: What is going on to my browser...:-|

Post 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()

Image
Last edited by luis on Sat Dec 26, 2009 1:08 am, edited 3 times in total.
"Have you tried turning it off and on again ?"
A little PureBasic review
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: What is going on to my browser...:-|

Post by cas »

Thanks Luis, works great :P
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: What is going on to my browser...:-|

Post 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.
Last edited by luis on Fri Dec 25, 2009 11:39 pm, edited 1 time in total.
"Have you tried turning it off and on again ?"
A little PureBasic review
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

Re: What is going on to my browser...:-|

Post 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) :D

Best regards,
Somic
----------------------------------------------------------------------------
Semel in anno licet insanire (Seneca)
email: somic@libero.it, website: http://www.semelinanno.com
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: What is going on to my browser...:-|

Post 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 !
"Have you tried turning it off and on again ?"
A little PureBasic review
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

Re: What is going on to my browser...:-|

Post 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
----------------------------------------------------------------------------
Semel in anno licet insanire (Seneca)
email: somic@libero.it, website: http://www.semelinanno.com
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: What is going on to my browser...:-|

Post by blueznl »

We all make mistakes.

It makes us human.

(Which, incidentally, makes me more human than others, as I make more mistakes...)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
somic
User
User
Posts: 66
Joined: Sun Jun 29, 2008 9:11 am
Location: Italy
Contact:

Re: What is going on to my browser...:-|

Post by somic »

@blueznl

Expert is who has made many mistakes... :)
----------------------------------------------------------------------------
Semel in anno licet insanire (Seneca)
email: somic@libero.it, website: http://www.semelinanno.com
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: What is going on to my browser...:-|

Post by Rook Zimbabwe »

See.... I am a PureBasic Expert! 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: What is going on to my browser...:-|

Post 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 ?
"Have you tried turning it off and on again ?"
A little PureBasic review
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: What is going on to my browser...:-|

Post by Fred »

Yes, we wrote a script which reformatted them correctly for phpbb3.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: What is going on to my browser...:-|

Post by luis »

Nice, thank you.
"Have you tried turning it off and on again ?"
A little PureBasic review
Post Reply