Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Well I have wanted an easier way for my UBB users to be able to copy messages and source
code from my UBB, so I created this hack. It is basically a modified EditPost routine
that displays the message in an editor box and has a "Select All" button. This makes
it easier for users to copy stuff from your UBB that want to save.

See it in action at
http://www.fast4gl.com/ubb/Forum10/HTML/000011.html

First off, you'll need to save this image
and upload it to your UBB NONCGI directory, called copy.gif

Second, prepare to edit the following scripts: postings.cgi and ubb_library2.pl

In ubb_library2.pl

Find

Code
code:

Add BELOW the following

Code
code:

Next find the following

Code
code:

And add after it
Code
code:

Please note that this may be slightly different depending on what other hacks you
have installed, and how your message icons are arranged.

Next open up postings.cgi

find

Code
code:

and add below that

Code
code:

Next find the EditPost routine

Code
code:

Add the following BEFORE this

Code
code:

And your done! Just upload these changes, and remember to update your threads. Please
feel free to let me know if there are any problems with this hack, since these are the
first major UBB changes I have made by myself [Linked Image]

Hope you like this hack!

-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc. http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Looks like an interesting hack. Do you think you can show this to us "In Action" though?

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Sure thing, take a look at http://www.fast4gl.com/ubb/Forum10/HTML/000011.html .

Just click on the "Copy" icon at the bottom of either message.



------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Was that "See it in Action" link in the original message, or did you edit it in? if it was in there, i feel like a complete moron [Linked Image]

Your server appears to be down at teh moment..

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Atom-

Yes it was in the first message, but don't feel bad, I do the same thing all the time [Linked Image]

I just checked my server and it appears to be ok now, sorry if it was down for a moment there.

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
hmmm, strange, must just be my ISP, damn free school internet provider.

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
It took a good 60+ seconds for the page to load, but it did load and the hack looks really nice. I'm going to add it now(5.44a).

Also, I noticed a "Click here for a printable version", did I miss that hack somewhere?

Troy

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Troy-

Sir Nikon was nice enough to post the hack for me at http://ubbcodehacking.com/ubb/Forum8/HTML/000124.html

-Chris


------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Ok, I added the hack without any problems! Works great too! Thanks Chris!

In Action at: http://imurgod.icomnet.net/rpg-ubb/Forum5/HTML/000001.html

Please keep in mind I haven't publicly opened my site so there isn't anything there really. =)

Troy

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Chris,

Do you still have a copy of the directions for the Printable Page Hack? I visited that thread and the HTML is really whacked, nothing I can use. Thanks!

Troy

Sponsored Links
Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Troy-

Sure, here's a text file that should be a bit easier to follow: http://www.fast4gl.com/ubb/printable.txt

HTH.

-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
The words on the icon aren't quite right.

You can download the font to use here: http://www.one37.com/files/tinyfont.bmp

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Cal-

Thanks for the link to the correct font. I knew it wasn't quite the same font and that
was bugging me. My graphics skills aren't the greatest though [Linked Image] Here's the new icon
I just whipped up:

-Chris


------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc. http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Joined: Jan 2000
Posts: 47
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 47
This is such a good idea for a hack. [Linked Image]

That "Select All" button actually works too.

------------------
http://su.ffgamers.net

Joy! A hobby that only cost me $170.

Joined: Mar 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 2
An execellent idea, although I won't be using it on my UBB because it's not really the sort of UBB that needs it!. [Linked Image]


James Pole
Joined: Feb 2000
Posts: 20
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 20
Hello,

I tried to install this hacks and I got the button and every codes in the scripts. When I clicked on the copy icon, it gave me the blank white screen...anyone know what I did wrong? I did exactly in the above instruction....thanks for your help in advance

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Thanks for the great comments from Sir Nikon and KiwiSurfer [Linked Image]

LazyMonk, I took a look at your UBB and it looks like the changes in ubb_library2.pl
were done ok. Just re-check your changes in postings.cgi, make sure that the CopyPost
sub is in there. If you can't track it down then feel free to email me your postings.cgi
file and I'll double check it ( chris@fast4gl.com ).

-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc. http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
LazyMonk-

Actually I just got a private email from someone else having problems with this hack,
and one thing both of your boards have in common in the UBB code buttons hack. I
think there might be a problem/conflict with the code. I will take a look at it and see
if I can get it working. I'll keep everyone posted.

-Chris

Joined: Feb 2000
Posts: 20
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 20
thanks Chris

I got it working [Linked Image]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)