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 ]
I dont know why, but the new topic one works, but the reply one doesnt work. It posts the topic.
In ubb_new_reply page
if ($in{prev}) {
&reply_page;
exit;
}
not
if ($in{prev}) {
&new_topic_page;
exit;
}
Thanks. That's what I get for trying to condense the install docs.
I couldn't find:
in
public_edit_post.plI take you meant:
anyway, installed it and tested it and it's great
five star hack that everyone should go install
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.
ehhh, maybe this should head on over to the beta section.. but thats not for me to decide.. AA's job.
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.
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.
qasic
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!!
Thank you, It looks awesome and works awesome. I hated the fact that I couldn't preview my posts.
Thank you...
works great, thx leshrac ... who needs a javascript popup?
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?
works good...one more thing........incorporate this with the pm form as well!
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..
[ March 20, 2001: Message edited by: Compboy ]
well gee, screw my hack then, thnx....
les: nice hack
[ March 20, 2001: Message edited by: DPK ]
Very nice work!
Worked on first try on my offline test version here.
Great docs.
A Q Do you have UBB buttons installed?
if so does it work with it too?
It does work with ubb code buttons.
[ March 21, 2001: Message edited by: Caldazar ]
I haven't played with UBB Code Buttons yet, so I can't personally confirm it works.
Brilliant hack, works a treat, thanks
Awesome Job! Works like a charm! Thanks!
Andrus
Thanks again Leshrac! Nice Job!
Hi Leshrac:
Great hack. I love it. It's working fine, now that I've installed it correctly.
Thanks,
Kerry
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]
This worked perfectly for me! Thanks!
This is a good one to put in the Database!
works fine with version 6.02.
HI have a question or two-you know how Newbe's are
. I am using 6.02 & wonder if I upgrade in the future will I have to reapply the Hack to each upgrade?
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 ]
Yes - that's the nature of hacks.
edit 3:35pm looks like I found my screw upPlease disregard thanks
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 ]
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!
Ah the link works again
Pls disregard
Installed and working 1st time. Excellent mod Leshrac
And love the no-javascript part
Thanks
Thanks! It's working great.
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...
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 ]
PLEASE!! I BEG YOU!! HELP ME!!!!
*BUMP*
OK .... just to tell you.. this hack is incompatible with the
"No Double Posts" hack!
uh...
bumping in less than 2 hours for the same problem is not good. Dont do it again- its stupid.
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?
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?
thx man, I tried it out & it works 100%. I didn't try pms though!
:rolleyes:
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
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..
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.
Can it show only your post , not all the posts in the topic ?
Have any of these bugs been fixed? Because before I install this mod I would like it to work
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
Shame on me !
SHAME ON ME !
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
Dennis
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
[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
[ July 24, 2001 09:23 PM: Message edited by: revolver ]
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
yeah self problem here with my 6.05...
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?
Thank you Leshrac so much for this hack!
I really needed that! You rule!
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
[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...
[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 ]
I have to admit that I overlooked this hack about 40 times, but tonight curiousity got the best of me. Thanks, it works perfectly!
Hey,
Does it work on 6.1.x
figured out my problem...had nothing to do with this hack...sorry!
[ 11-21-2001: Message edited by: nfan ]
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.
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
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
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.