php forum
php mysql forum
php mysql smarty
 
Topic Options
#36724 - 03/06/00 12:55 PM Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA

   Copy this message / source code hack to Del.icio.us Add to del.icio.us
  Digg Copy this message / source code hack Digg it
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 <IMG SRC="http://www.fast4gl.com/ubb/copy.gif" border=0>
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

Hope you like this hack!

-Chris

------------------
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc. http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36725 - 03/06/00 05:10 PM Re: Copy this message / source code hack
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#36726 - 03/06/00 05:22 PM Re: Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA
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
chris@fast4gl.com
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36727 - 03/06/00 05:54 PM Re: Copy this message / source code hack
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

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

Top
#36728 - 03/06/00 06:06 PM Re: Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA
Atom-

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

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

------------------
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36729 - 03/06/00 06:10 PM Re: Copy this message / source code hack
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#36730 - 03/09/00 12:06 AM Re: Copy this message / source code hack
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#36731 - 03/09/00 12:15 AM Re: Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA
Troy-

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

-Chris


------------------
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36732 - 03/09/00 12:22 AM Re: Copy this message / source code hack
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#36733 - 03/09/00 12:34 AM Re: Copy this message / source code hack
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#36734 - 03/09/00 12:45 AM Re: Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA
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
chris@fast4gl.com
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36735 - 03/09/00 02:08 PM Re: Copy this message / source code hack
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
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
_________________________
http://www.iamcal.com

Top
#36736 - 03/09/00 03:04 PM Re: Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA
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 Here's the new icon
I just whipped up: <IMG SRC="http://www.fast4gl.com/ubb/copy.gif" border=0>

-Chris


------------------
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc. http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36737 - 03/09/00 09:17 PM Re: Copy this message / source code hack
Sir Nikon Offline
Junior Member

Registered: 01/03/00
Posts: 400
This is such a good idea for a hack.

That "Select All" button actually works too.

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

Joy! A hobby that only cost me $170.

Top
#36738 - 03/10/00 06:47 AM Re: Copy this message / source code hack
KiwiSurfer Offline
Junior Member

Registered: 03/08/00
Posts: 3
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!.
_________________________
James Pole

Top
#36739 - 03/10/00 10:17 PM Re: Copy this message / source code hack
LazyMonk Offline
Junior Member

Registered: 02/24/00
Posts: 17
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

Top
#36740 - 03/10/00 10:37 PM Re: Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA
Thanks for the great comments from Sir Nikon and KiwiSurfer

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
chris@fast4gl.com
Fast 4GL Systems, Inc. http://www.fast4gl.com/
UBB: http://www.progresstalk.com/
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36741 - 03/11/00 12:36 AM Re: Copy this message / source code hack
Chris Schreiber Offline
Member

Registered: 02/04/00
Posts: 123
Loc: Audubon, NJ USA
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
_________________________
Chris Schreiber
chris@fast4gl.com
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Top
#36742 - 03/11/00 12:50 AM Re: Copy this message / source code hack
LazyMonk Offline
Junior Member

Registered: 02/24/00
Posts: 17
thanks Chris

I got it working

Top


Who's Online
1 Registered (blaaskaak), 29 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 7
FREAK1 5
Chris Bale 4
Ian_W 4
tackaberry 4
Gizmo 4

 

 

 
fusionbb message board php hacks