Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
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 ]

Sponsored Links
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
I dont know why, but the new topic one works, but the reply one doesnt work. It posts the topic.

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
In ubb_new_reply page
if ($in{prev}) {
&reply_page;
exit;
}

not

if ($in{prev}) {
&new_topic_page;
exit;
}

Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
Thanks. That's what I get for trying to condense the install docs. tipsy

Joined: Feb 2001
Posts: 35
Member
Member
Offline
Joined: Feb 2001
Posts: 35
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 ]


Fear is the mind-killer. Fear is the little death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past me I will turn to see fear's path. Where the fear has gone there will be nothing. Only I will remain.
Sponsored Links
Joined: Mar 2001
Posts: 29
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 29
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.

Joined: Mar 2001
Posts: 37
Member
Member
Offline
Joined: Mar 2001
Posts: 37
ehhh, maybe this should head on over to the beta section.. but thats not for me to decide.. AA's job.


Nice ezboard... for me to poop on!
Joined: Feb 2001
Posts: 67
Member
Member
Offline
Joined: Feb 2001
Posts: 67
Quote
quote:

I Agree.


What Would UBB look like with out hacks?
Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
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.

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Sponsored Links
Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
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:

Joined: Mar 2001
Posts: 29
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 29
Leshrac - All bugs fixed, roger. Excellent hack dude! Thanks very much!! laugh

Joined: Mar 2001
Posts: 15
DD Offline
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 15
Thank you, It looks awesome and works awesome. I hated the fact that I couldn't preview my posts.
Thank you...

Joined: Sep 2000
Posts: 68
Member
Member
Offline
Joined: Sep 2000
Posts: 68
works great, thx leshrac ... who needs a javascript popup?

Joined: Dec 2000
Posts: 54
Member
Member
Offline
Joined: Dec 2000
Posts: 54
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?

Joined: Oct 2000
Posts: 807
Member
Member
Offline
Joined: Oct 2000
Posts: 807
works good...one more thing........incorporate this with the pm form as well! wink

Joined: Feb 2001
Posts: 67
Member
Member
Offline
Joined: Feb 2001
Posts: 67
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 ]


What Would UBB look like with out hacks?
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
Quote
quote:

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


les: nice hack wink

[ March 20, 2001: Message edited by: DPK ]

Joined: Mar 2000
Posts: 344
Member
Member
Offline
Joined: Mar 2000
Posts: 344
Very nice work!

Worked on first try on my offline test version here.

Great docs. laugh


Administrator / WTF.com / IWantMy80s.com
http://www.wtf.com
http://www.iwantmy80s.com
Joined: Feb 2001
Posts: 67
Member
Member
Offline
Joined: Feb 2001
Posts: 67
Quote
quote:
A Q Do you have UBB buttons installed?
if so does it work with it too?


What Would UBB look like with out hacks?
Joined: Jan 2001
Posts: 22
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 22
It does work with ubb code buttons.

[ March 21, 2001: Message edited by: Caldazar ]

Joined: Mar 2000
Posts: 344
Member
Member
Offline
Joined: Mar 2000
Posts: 344
I haven't played with UBB Code Buttons yet, so I can't personally confirm it works. laugh


Administrator / WTF.com / IWantMy80s.com
http://www.wtf.com
http://www.iwantmy80s.com
Joined: Mar 2001
Posts: 41
BT Offline
Member
Member
Offline
Joined: Mar 2001
Posts: 41
Brilliant hack, works a treat, thanks laugh

Joined: Aug 2000
Posts: 18
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 18
Awesome Job! Works like a charm! Thanks!

Andrus

Joined: Aug 2000
Posts: 594
Member
Member
Offline
Joined: Aug 2000
Posts: 594
Thanks again Leshrac! Nice Job!


jeremiah
Joined: Mar 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 15
Hi Leshrac:

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

Thanks,

Kerry

Joined: Mar 2001
Posts: 15
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 15
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]

Joined: Mar 2001
Posts: 25
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 25
This worked perfectly for me! Thanks!

Joined: Mar 2001
Posts: 41
BT Offline
Member
Member
Offline
Joined: Mar 2001
Posts: 41
This is a good one to put in the Database! cool

Joined: Sep 2000
Posts: 68
Member
Member
Offline
Joined: Sep 2000
Posts: 68
works fine with version 6.02.

Joined: Apr 2001
Posts: 83
Member
Member
Offline
Joined: Apr 2001
Posts: 83
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 ]

Joined: Mar 2001
Posts: 145
Member
Member
Offline
Joined: Mar 2001
Posts: 145
Quote
quote:
Yes - that's the nature of hacks. smile

Joined: Apr 2001
Posts: 83
Member
Member
Offline
Joined: Apr 2001
Posts: 83
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 ]

Joined: Mar 2001
Posts: 145
Member
Member
Offline
Joined: Mar 2001
Posts: 145
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

Joined: Sep 2000
Posts: 305
CTH Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 305
Ah the link works again laugh

Pls disregard smile

Joined: Sep 2000
Posts: 305
CTH Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 305
Installed and working 1st time. Excellent mod Leshrac smile

And love the no-javascript part laugh

Thanks wink

Joined: Mar 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 8
Thanks! It's working great.


Pentiums melt in your pc, not in your hand.
Joined: Jan 2001
Posts: 57
Member
Member
Offline
Joined: Jan 2001
Posts: 57
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 ]


I'm am the EVER POWERFUL GOHAN!
Joined: Jan 2001
Posts: 57
Member
Member
Offline
Joined: Jan 2001
Posts: 57
PLEASE!! I BEG YOU!! HELP ME!!!!

*BUMP*


I'm am the EVER POWERFUL GOHAN!
Joined: Jan 2001
Posts: 57
Member
Member
Offline
Joined: Jan 2001
Posts: 57
OK .... just to tell you.. this hack is incompatible with the

"No Double Posts" hack!


I'm am the EVER POWERFUL GOHAN!
Page 1 of 2 1 2

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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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
Morgan 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)