UBB.Dev
Posted By: Leshrac [6.0x] Preview Post [ Finished ] - 03/20/2001 2:16 AM
From the installation instructions:

HACK NAME : Preview Post

DESCRIPTION : This hack allows users to preview their posts. The previews are displayed above the input box, and appear exactly as they would in an actual post, including all UBB Code™ formatting.

AUTHOR : Eddie Holman (Leshrac) - [email protected]
VERSION : 1.01

If you feel you have contributed but not been given credit please email me - [email protected]

REQUIREMENTS : A full version of the UBB, version 6.0 or later.

DOWNLOAD URL : http://www.magictraders.com/ubb/preview_post.txt


Note that this version does not use a JavaScript pop-up, as it's something I'm not a big fan of. I hear another version of this hack with that feature is in the works, however.

If you find any bugs that aren't a result of user error, please let me know. This has worked flawlessly for me so far.

[ March 19, 2001: Message edited by: Leshrac ]
Posted By: Greg Hard Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 2:46 AM
I dont know why, but the new topic one works, but the reply one doesnt work. It posts the topic.
Posted By: Greg Hard Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 2:53 AM
In ubb_new_reply page
if ($in{prev}) {
&reply_page;
exit;
}

not

if ($in{prev}) {
&new_topic_page;
exit;
}
Posted By: Leshrac Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 3:07 AM
Thanks. That's what I get for trying to condense the install docs. tipsy
Posted By: mrspanky Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 3:43 AM
I couldn't find:

Code
code:

in public_edit_post.pl

I take you meant:

Code
code:


anyway, installed it and tested it and it's great smile five star hack that everyone should go install smile

great work Leshrac

[ March 19, 2001: Message edited by: Mr. Spanky ]
A FEW THINGS:

1. I can preview NEW TOPICS but when I EDIT, it doesn't work.

2. When I add Smilies/Graemlins and preview, they show up as broken images (/cgi-bin/ubb6/biggrin.gif - should be /ubb6/biggrin.gif)

3. I have to turn flood check OFF in order to use preview or else I get the flood check warnings or I have to lower the flood check time which defats the purpose of using flood check.
Posted By: jedithrawn Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 4:47 AM
ehhh, maybe this should head on over to the beta section.. but thats not for me to decide.. AA's job.
Posted By: Compboy Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 5:35 AM
Quote
quote:

I Agree.
Posted By: Leshrac Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 6:17 AM
All above mentioned bugs have been fixed. Please refer to the installation instructions and reapply the code changes to ubb_new_topic.cgi, ubb_new_reply.cgi, ubb_edit_post.cgi, and public_edit_post.pl.

Jedi Thrawn and Compboy: your posts are incredibly unhelpful. In the future, please do not waste your time and that of others if you have nothing useful to contribute.
Posted By: qasic Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 6:43 AM
Leshrac,

Excellent work on the hack. One suggestion for the install documentation ...

When editing the vars_wordlets.cgi file, if I put the preview wordlet is added at the end as it is indicated in your documentation, it will cause an error error. If you suggest to people to check the line above ends in a comma (and if not add one at the end), this might eliminate some problems.

Nevertheless great hack and I *love* the no Javascript required part. smile

qasic
Posted By: Leshrac Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 7:00 AM
Well, to be fair, I just say to add it to your wordlets file, not put it at the end. I'm assuming people should at least be able to exercise a small degree of common sense and put it in the logical place. :rolleyes:
Leshrac - All bugs fixed, roger. Excellent hack dude! Thanks very much!! laugh
Posted By: DD Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 10:41 AM
Thank you, It looks awesome and works awesome. I hated the fact that I couldn't preview my posts.
Thank you...
Posted By: h4p3 Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 12:52 PM
works great, thx leshrac ... who needs a javascript popup?
Posted By: twinspin Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 1:44 PM
Thank you for the hack. It's working without any problems on my board. A general question--how many places would I need to change the coding in order to make the add reply and now the preview gray boxes converted into gif's?
Posted By: Jigga-Master Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 3:17 PM
works good...one more thing........incorporate this with the pm form as well! wink
Posted By: Compboy Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 8:06 PM
Quote
quote:

Again I Agree here !
Works 99%. But the hack doesn't incorporate the UBB codebuttons hack (yet) I would like to see this too (eg glow text).

Keep up the good work.. cool

[ March 20, 2001: Message edited by: Compboy ]
Posted By: DPK.ducky.quack Re: [6.0x] Preview Post [ Finished ] - 03/20/2001 10:13 PM
Quote
quote:

well gee, screw my hack then, thnx.... mad


les: nice hack wink

[ March 20, 2001: Message edited by: DPK ]
Posted By: Alien Re: [6.0x] Preview Post [ Finished ] - 03/21/2001 7:06 AM
Very nice work!

Worked on first try on my offline test version here.

Great docs. laugh
Posted By: Compboy Re: [6.0x] Preview Post [ Finished ] - 03/21/2001 8:28 AM
Quote
quote:
A Q Do you have UBB buttons installed?
if so does it work with it too?
Posted By: Caldazar Re: [6.0x] Preview Post [ Finished ] - 03/21/2001 8:59 AM
It does work with ubb code buttons.

[ March 21, 2001: Message edited by: Caldazar ]
Posted By: Alien Re: [6.0x] Preview Post [ Finished ] - 03/21/2001 10:33 AM
I haven't played with UBB Code Buttons yet, so I can't personally confirm it works. laugh
Posted By: BT Re: [6.0x] Preview Post [ Finished ] - 03/21/2001 11:33 AM
Brilliant hack, works a treat, thanks laugh
Posted By: AndrusW Re: [6.0x] Preview Post [ Finished ] - 03/24/2001 1:23 PM
Awesome Job! Works like a charm! Thanks!

Andrus
Posted By: freak.scene Re: [6.0x] Preview Post [ Finished ] - 03/24/2001 2:05 PM
Thanks again Leshrac! Nice Job!
Posted By: Kerry Re: [6.0x] Preview Post [ Finished ] - 03/26/2001 10:31 AM
Hi Leshrac:

Great hack. I love it. It's working fine, now that I've installed it correctly.

Thanks,

Kerry
Posted By: Kerry Re: [6.0x] Preview Post [ Finished ] - 03/26/2001 10:17 PM
It works perfectly for a New Topic but when I press Add Reply to that same post and enter some text and select Preview I get nothing. It hangs there showing no activity on the browser's progress bar.

Here's where I'm testing the Reply Preview.

Mail Box

Suggestions please.

[email protected]
Posted By: JZarate Re: [6.0x] Preview Post [ Finished ] - 03/28/2001 10:39 PM
This worked perfectly for me! Thanks!
Posted By: BT Re: [6.0x] Preview Post [ Finished ] - 03/31/2001 3:19 PM
This is a good one to put in the Database! cool
Posted By: h4p3 Re: [6.0x] Preview Post [ Finished ] - 04/01/2001 4:18 PM
works fine with version 6.02.
Posted By: gene1938 Re: [6.0x] Preview Post [ Finished ] - 04/07/2001 5:57 PM
HI have a question or two-you know how Newbe's are eek. I am using 6.02 & wonder if I upgrade in the future will I have to reapply the Hack to each upgrade?
Quote
quote:
Quote
quote:
Where is the proper place for the code as I don't know sqaut about programing?

[ April 07, 2001: Message edited by: gene1938 ]

[ April 08, 2001: Message edited by: gene1938 ]
Posted By: Joe Siegler Re: [6.0x] Preview Post [ Finished ] - 04/10/2001 10:14 PM
Quote
quote:
Yes - that's the nature of hacks. smile
Posted By: gene1938 Re: [6.0x] Preview Post [ Finished ] - 04/10/2001 11:08 PM
edit 3:35pm looks like I found my screw upPlease disregard thanks smile
having troubles-hack seemed to work at 1st. but now when I reply & hit preview I get an empty mess with another post below from member #0(admin account? & date posted is 1920 TEST POST
with the member # in the body of the post. I set up a test post account user: reg test, pass: abc123. Could some one look at this?
The only step of the hack I am unsure about is the last step where you add "preview_post => "Preview" to the vars_wordlets.cgi. I added it in the middle as the directions did not specify a place & I am not a scripting wizard.
FYI 6.03 on unix server gradient hack is only other 1 installed

[ April 10, 2001: Message edited by: gene1938 ]

[ April 10, 2001: Message edited by: gene1938 ]
Posted By: Joe Siegler Re: [6.0x] Preview Post [ Finished ] - 04/11/2001 12:42 AM
BTW, I installed this today, and it worked great - first time!

I installed it first, and then realized I did it on my test board, which was still at 6.02, and then I had to do it again for 6.03. Worked great both times! smile
Posted By: CTH Re: [6.0x] Preview Post [ Finished ] - 04/13/2001 8:56 AM
Ah the link works again laugh

Pls disregard smile
Posted By: CTH Re: [6.0x] Preview Post [ Finished ] - 04/13/2001 9:53 AM
Installed and working 1st time. Excellent mod Leshrac smile

And love the no-javascript part laugh

Thanks wink
Posted By: PCdude Re: [6.0x] Preview Post [ Finished ] - 04/13/2001 11:14 AM
Thanks! It's working great.
Posted By: Tosha Re: [6.0x] Preview Post [ Finished ] - 04/17/2001 1:55 PM
frown I'm having some problems Leshrac..

You see... I installed it twice and the same thing happens everytime... whenever I press preview it posts the post or topic or edits or whatever....

Any reasons for why this may be happening?
I have 6.02 with the following hacks:

Avatar
Last Reply By: In Forum
Mods in All Forums
The Dev Kit(var_wordlets_mods.cgi)
No Double Posts

The only one of those that I think can possibly conflict with your hack is the Double Post... but why would it? Please help as soon as possible...
frown

EDIT: My board: http://ubbgp.hypermart.net/cgi-bin/ultimatebb.cgi?ubb=forum&f=13

(thats the link to the Guest Posters forum where you can post without registering)

Please help ASAP!

[ April 17, 2001 07:17 AM: Message edited by: Tosha ]
Posted By: Tosha Re: [6.0x] Preview Post [ Finished ] - 04/18/2001 2:45 AM
PLEASE!! I BEG YOU!! HELP ME!!!!

*BUMP*
Posted By: Tosha Re: [6.0x] Preview Post [ Finished ] - 04/18/2001 3:31 AM
OK .... just to tell you.. this hack is incompatible with the

"No Double Posts" hack!
Posted By: Greg Hard Re: [6.0x] Preview Post [ Finished ] - 04/18/2001 3:55 AM
uh...
bumping in less than 2 hours for the same problem is not good. Dont do it again- its stupid.
Posted By: Tosha Re: [6.0x] Preview Post [ Finished ] - 04/18/2001 11:11 PM
I bumped after 13 hours... it was posted in AM and I bumped in PM..lol

Can anyone edit the No Double Posts hack to work with this hack?

Just the "prev" is not defined and that is why it doesn't work!.. any skillful Perl programers here? smile
Posted By: PokeMax Re: [6.0x] Preview Post [ Finished ] - 04/28/2001 11:59 PM
Tosha that same thing happens to me when i click preview too. You are nto the only one having problem with it.

Can anyone help?
Posted By: ramirez_rfm Re: [6.0x] Preview Post [ Finished ] - 05/24/2001 10:58 PM
thx man, I tried it out & it works 100%. I didn't try pms though! wink eek :rolleyes:
Posted By: dbode Re: [6.0x] Preview Post [ Finished ] - 05/25/2001 7:52 PM
Hi,

GREAT HACK, because I am using it with UBBNews and sometimes it´s not easy to add complicated HTML-Code - I always had to edit my posting...

Only problem : I installed it, but when I press "Preview" then I will get to the Preview page. But there - again - is the "Preview"-Button, I can always just press this one !

What did I do wrong ?

Thanks for your help
Dennis
Posted By: dbode Re: [6.0x] Preview Post [ Finished ] - 05/27/2001 10:01 PM
no idea ?
Posted By: CNCR Re: [6.0x] Preview Post [ Finished ] - 06/03/2001 2:35 PM
http://www.cnc-revolution.com/cgi-bin/ubb/ultimatebb.cgi

the preview doesnt work, theres just a blank button which posts the topic, instead of previewing it...any ideas? ive uploaded the wordlets..
Posted By: akersche Re: [6.0x] Preview Post [ Finished ] - 06/05/2001 11:01 PM
would be great if there would be a file for multihack availiable:-)

using the hack now and like it a lot. but i wanna upgrade my ubb to a current version and don't wanna to change code by hand again.
Posted By: Wanted Re: [6.0x] Preview Post [ Finished ] - 06/06/2001 4:15 PM
Can it show only your post , not all the posts in the topic ?
Posted By: Tech-Ni-Kal Re: [6.0x] Preview Post [ Finished ] - 06/06/2001 6:36 PM
Have any of these bugs been fixed? Because before I install this mod I would like it to work laugh
Posted By: dbode Re: [6.0x] Preview Post [ Finished ] - 06/10/2001 10:08 PM
Hi,

I installed your hack and it worked perfectly - but now I changed the layout of my ubb so that I get a navigation on the left side. Now, whenever I try to preview a post, I get a blank page.

The thing is : THERE IS A SOURCECODE. It is shown perfectly in a program like Dreamweaver, but IE can´t display it ?!?

I am totally confused, please help !

Dennis
Posted By: dbode Re: [6.0x] Preview Post [ Finished ] - 06/11/2001 7:32 AM
Shame on me !

SHAME ON ME !

Code
code:
was the problem. I just wonder, why the other pages were shown correctly but just the preview page caused a blank page. Something in there must be non-compatible with my great html wink

Dennis
Posted By: revolver Re: [6.0x] Preview Post [ Finished ] - 07/25/2001 4:11 AM
Quote
quote:
Yep I get the same problem CNCR, using UBB v6.01. The blank button sits to the right of the [add topic/reply] button and its about half a finger width. When pushed it just posts the topic or reply.

Did u sort this prob out CNCR? If so i'd appreciate if u posted the fix smile

[Ok I fixed the error. It was a user error made by me, not faulty coding. I had placed the preview_post => "Preview", in the wrong file. I hastily assumed it would be added to the vars_wordlets_mods.cgi file, but on second inspection of the instructions it's the vars_wordlets.cgi file]

Well Done Leshrac. choice hack laugh

[ July 24, 2001 09:23 PM: Message edited by: revolver ]
Posted By: Sir Alex Re: [6.0x] Preview Post [ Finished ] - 07/28/2001 11:45 AM
I installed it on 6.5 and all I get is a blank little button than posts the message - no preview at all. Can I get some help?
http://www.texasracingscene.com
Posted By: Engine Re: [6.0x] Preview Post [ Finished ] - 07/28/2001 7:39 PM
yeah self problem here with my 6.05...
Posted By: Saturn [K] Re: [6.0x] Preview Post [ Finished ] - 08/18/2001 12:49 AM
I just upgraded to 6.05 and also have the same problem where a button comes up blank and just posts the message instead of perviewing.

Does anyone know how to fix Preview Post to work with 6.05?
Posted By: Nosferato Re: [6.0x] Preview Post [ Finished ] - 09/08/2001 2:47 PM
Thank you Leshrac so much for this hack!
I really needed that! You rule! cool
Posted By: hotdogg Re: [6.0x] Preview Post [ Finished ] - 10/08/2001 6:46 AM
need MAJOR HELP!

it previews fine but when u post new topics it screws something.....look at it! it dosen't put in what u typed...it displays your ip and more

http://hdelight.hypermart.net/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=000003
Posted By: Brett Re: [6.0x] Preview Post [ Finished ] - 10/11/2001 4:36 AM
[QUOTE]Originally posted by hotdogg:
need MAJOR HELP!

it previews fine but when u post new topics it screws something.....look at it! it dosen't put in what u typed...it displays your ip and more

http://hdelight.hypermart.net/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=000003
[/QUO TE]


Something about your board name, get's to me...
Posted By: heretic Re: [6.0x] Preview Post [ Finished ] - 10/16/2001 12:33 AM
[QUOTE]Originally posted by hotdogg:
need MAJOR HELP!

it previews fine but when u post new topics it screws something.....look at it! it dosen't put in what u typed...it displays your ip and more

http://hdelight.hypermart.net/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=000003
[/QUO TE]


We don't help warez boards. :rolleyes:

[ 10-15-2001: Message edited by: heretic ]
Posted By: RandyM Re: [6.0x] Preview Post [ Finished ] - 10/16/2001 4:43 AM
I have to admit that I overlooked this hack about 40 times, but tonight curiousity got the best of me. Thanks, it works perfectly!
Posted By: Cuervo Re: [6.0x] Preview Post [ Finished ] - 11/10/2001 11:49 PM
Hey,

Does it work on 6.1.x
Posted By: nfan Re: [6.0x] Preview Post [ Finished ] - 11/19/2001 1:53 AM
figured out my problem...had nothing to do with this hack...sorry!

[ 11-21-2001: Message edited by: nfan ]
Posted By: PrimeTime Re: [6.0x] Preview Post [ Finished ] - 11/22/2001 2:15 PM
HI!

Just want to say that this is an awesome hack and is greatly needed for people like myself who likes to review my messages before I post them. Currently I'm using 6.05 with nearly (or over) 20 hacks...I lost count and they all seem compatible with one another. laugh

The only downside I have is when you preview a topic that has the "intergrated poll" with it then press post it leaves out the poll. I'm sure I can figure that out myself so that is not a concern. I'm new at these forums but everyone seems cool here and are helpful so if I can return the favor then cool. GL guys with the 6.05 cause it does work.

THANKS!
PrimeTime
Posted By: Brad.loo Re: [6.0x] Preview Post [ Finished ] - 11/22/2001 4:27 PM
works on 6.05 over here to, i know i must have one of the most hacked forums on the net. i have almost all mods in the finished and beta 6.0x forums and downgraded many form 6.1.x, thanks man. great hack laugh
Posted By: BloggerMan Re: [6.0x] Preview Post [ Finished ] - 11/23/2001 9:28 AM
It took away the "Add Reply" button on my board for some reason, I probably replaced something instead of adding it... I'll try installing it again tomorrow.
© UBB.Developers