Codefolding for the PBForums

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Update:
added the code by peterb :D
but changed the icon, sry
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
harff182
Enthusiast
Enthusiast
Posts: 105
Joined: Thu Dec 08, 2005 4:58 pm
Location: Duesseldorf, Germany

Post by harff182 »

peterb wrote:added button "Select Code"
enjoy
Thanks, Peter.
As I know nothing about JS, I asked in the German forum, whether it could be possible to not only highlight, but also ask the user where to save that code.
They wrote, it's not possible for FF - do you know a way to offer that feature?
I would prefer this feature more than CTRl-C, open PB-IDE, CTRL-V :lol:
Sorry 4 my poor English, it's the only one I learned 40 years ago...
since 17.12.08: XPHome(SP3) + PB 4.30
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

@harff182
with js in this plugin, you can only change something in the browser itself,
but you can't put anything to the windows-clipboard with default settings.
This is for security! To do this, the user have to change something in the
firefox-browser config, so we wouln't add this.

Fauler Sack :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
harff182
Enthusiast
Enthusiast
Posts: 105
Joined: Thu Dec 08, 2005 4:58 pm
Location: Duesseldorf, Germany

Post by harff182 »

ts-soft wrote: Fauler Sack :wink:
Well, Thomas, I wouldn't call it laziness but consequence. :twisted:
If I right-click on a picture, FF offers amongst other things to save it to a file.
If I right-click on a link to a zip-file, FF offers amongst other things to save it to a file.
For me it would be consequently, if I could save a selected part to a file beside or instead of copying it to the clipbboard.
ts-soft wrote: with js in this plugin, you can only change something in the browser itself,
but you can't put anything to the windows-clipboard with default settings.
This is for security! To do this, the user have to change something in the
firefox-browser config, so we wouln't add this.
This sounds to me, as if there is a possibilty for the requested feature, that you know. Would you be so kind and tell us/me, what changes in the FF-configs have to be made?
tia... scholly
Sorry 4 my poor English, it's the only one I learned 40 years ago...
since 17.12.08: XPHome(SP3) + PB 4.30
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

I'd like to see a second button that copies the code (even when not selected)
to the clipboard. Is this possible?
Windows 7 & PureBasic 4.4
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

ts-soft wrote:you can't put anything to the windows-clipboard
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

@ts-soft: great code, thanks

but one thing i have noticed is that since i switched to FF3, i had to edit the included pages links (to http://*purebasic.fr/.../viewtopic.php*), as my shortcuts to the forum are just http://purebasic.fr/../...
in FF2, it just worked... (www. or no www.)

its no biggie, just pointing it out :)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

@lexvictory

simple add the url without www in greacemonkey :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Codefolding for the PBForums

Post by ts-soft »

Update

update to work with phpBB3
Attention: works only with subsilver2 template!

New feature:
open external links in a new tab
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: Codefolding for the PBForums

Post by lexvictory »

ts-soft wrote:Attention: works only with subsilver2 template!
only works with prosilver for me!
and has no expand button :?
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Codefolding for the PBForums

Post by ts-soft »

lexvictory wrote:
ts-soft wrote:Attention: works only with subsilver2 template!
only works with prosilver for me!
and has no expand button :?
can't work on prosilver, prosilver have a own expand-button.

Tested with subsilver2 on many systems without problems,
so i can't say what the problem.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Codefolding for the PBForums

Post by DarkDragon »

lexvictory wrote:
ts-soft wrote:Attention: works only with subsilver2 template!
only works with prosilver for me!
and has no expand button :?
You have to deinstall the old script before installing the new on in Greasemonkey. I had some problems with it, too. But after deinstalling it in Greasemonkey installation worked fine.
bye,
Daniel
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: Codefolding for the PBForums

Post by lexvictory »

i did that when the forums changed, as i realised it wouldnt work
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Codefolding for the PBForums

Post by ts-soft »

subsilverplus also works, at least here
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: Codefolding for the PBForums

Post by lexvictory »

ok, its working today on subsilver2. FireFox must have been having a bad day yesterday :lol:
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Post Reply