Previous Thread
Next Thread
Print Thread
Rate Thread
#35955 01/15/2000 5:30 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Ok, I've managed to get the preview hack working without javascript! Here's what it will look like:

When you hit preview you just get the regular posttopic/postreply/editmessage window but with the previewed message above it. In this manner you can edit/preview your message again and again and again and submit it when you really think it's done

I've also added the option in edit mode to change your msgicon -> So 2 hacks in one, isn't that great?

I can't let you see what it looks like because I didn't implement it at my board (yet) I have no reason to not use the javascript version because it works perfectly for me...
So I'll guess you just have to try it

Here are both versions:

preview hack with javascript: http://feyenoordmb.virtualave.net/ubbhacks/preview-hack.txt (which is implemented on this board too)

non-javascript version, containing the editable msgicon addition: http://feyenoordmb.virtualave.net/ubbhacks/preview-hack-nojavascript.txt

Maybe someone who get's this working can post a link to view this hack?

>>>Reposted this thread due to the long title<<<

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Sir Nikon - Can you give me some information on what went wrong? Was it only the instructions or the hack itself?

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Ok, I found the wrong statements in my documentation; I reuploaded it and it should be allright now

Joined: Jan 2000
Posts: 56
Member
Member
Offline
Joined: Jan 2000
Posts: 56
Mas*Mind:

I tried this out on version 5.39c of UBB and nothing is changed from the way it normally looks. What am I supposed to see with this? Should there be a Preview button?

Thanks,

Parker

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Forgot the most important thing: The preview button *ashamed*

I've edited the documentation and everything should be allright now [Linked Image]

Just do a search for < INPUT TYPE="Submit" NAME="prev" VALUE="Preview"> (without the space between < and INPUT)
it should be there three times and make those changes.

Sponsored Links
Joined: Jan 2000
Posts: 56
Member
Member
Offline
Joined: Jan 2000
Posts: 56
I have uploaded and installed this great hack on my board and its works great. I can highly recommend anyone wanting a preview that they can use the submit button to use this hack.

Parker

Joined: Jan 2000
Posts: 18
Member
Member
Offline
Joined: Jan 2000
Posts: 18
I have it working at my site...
http://www.djchat.com
Don't mind the mess, I am installing the Aim hack right now...

Thanks to Mas*Mind for the help!

Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
Found a small problem with this hack... if the user has smilies disabled, it still shows the smilies in the preview, also it doesn't save the state of the "Disable Smilies" checkbox. here's the fix:

In postings.cgi:

find:
Code
code:

replace it with:
Code
code:

then find:
Code
code:

and replace it with:
Code
code:

Save and done!

Joined: Jan 2000
Posts: 3
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 3
For some reason the post icons don't seem to be sticking on my boards.

When you go to the preview window, is defaults back to the "message" icon.

Any ideas?

Joined: Jan 2000
Posts: 32
Member
Member
Offline
Joined: Jan 2000
Posts: 32
ATTENTION: THERE IS A BUG IN THE EDIT MESSAGE ICON HACK!

When you go to edit a messsage it doesn't "select" your previous icon. Instead it just selects icon1.gif.

Can this be fixed please.

------------------
Blizzard Domain - http://go.to/blizzdomain

Sponsored Links
Joined: Feb 2000
Posts: 4
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 4
Just a note about the fix Dave posted. Instead of:

Code
code:

it should be:

Code
code:

he forgot a bracket that made the disable smileys check box disappear totally.

Joined: Feb 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 7
Can someone please do like a final revised version in a text format for me to download!

Otherwise I get a bit [Linked Image]!!

Thanks to anyone that can... [Linked Image]

Patrick

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
To make icons 'Stick' when using the non js preview hack, do the following:

open ubb_library2.pl

find:

Code
code:

BEFORE this, add:

Code
code:

under this, find

Code
code:

replace with

Code
code:

All done!

Just a thought [Linked Image]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
This shouldn't be necessary; Just find these lines in postings.cgi:

$IconWording = &IconFieldHTML;

(they should be there 2 times)

And replace with:

$IconWording = &IconFieldHTML($in{'MsgIcon'});

This should work

Joined: Jan 2000
Posts: 18
Member
Member
Offline
Joined: Jan 2000
Posts: 18
Great hack! I've just installed it on my current version of my "hacked board" which I'm slowly in the process of creating (if only InfoPop wouldn't come out with a new version of the board every other day -hehe-)

See it in action here on my hacked board: Hacked Board

Thanks for the hack!

------------------
Donna
Cazic-Thule Corner

Joined: Feb 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 7
Mas*Mind, you have some great hacks, I've implemented a few on my board, but this preview hack doesn't want to work.

I started from scratch twice, but while I can preview the message, it won't "remember" the message text, so when previewing, you'll get an empty message box.

This only happens with new messages. Replies work perfect.....

Any ideas?

UBB = 5.44a

Last edited by Gizmo; 08/17/2016 2:02 PM.
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
EMail me your postings.cgi and I'll take a look.

Just a thought [Linked Image]

Joined: Mar 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 1
I installed this hack as posted, and it works fine, except for one problem. When I hit the preview button, and then close the window, it posts the message before I actually submit the post.

Can I send someone my postings.cgi file to have a look?

Thanks,
Josh

Joined: May 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: May 2000
Posts: 1
Hi.

I am attempting to install the non-java version.

I am using UBB version 5.54c

I followed the tutorial at: http://feyenoordmb.virtualave.net/ubbhacks/preview-hack-nojavascript.txt

All loaded correctly.

The "preview" works great.
However, when the "Submit" button is pressed, it loads [posting.cgi] but the page is blank.

It only shows a blank page when I am 'Replying.'
It works fine when I am submitting a "New" post.

(I'm sure I'll slap myself when I figure it out!)

Any suggestions?

Thanks.

Joined: May 2000
Posts: 19
Member
Member
Offline
Joined: May 2000
Posts: 19
I found some incorrect iformation in Preview hack - no javascript.
In preview-hack-nojavascript.txt it says:

Code
code:
actualy it should be:
Code
code:

------------------
/Vulpes


/Vulpes
ASK NEXT QUESTION
Joined: Jun 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 13
Anyone has a workin postings.cgi script which includes "Preview". Mine is not working at least not from the reply site.
Thanks

Joined: Jun 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 13
Ok I got it to work.
But in post new topic and hit the preview the background color in message icon changed to "black" this is not happend when I use the preview as a reply.
On the other hand in the preview from post reply I just can read the last two lines.
Any help, thanks

Joined: Jun 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 13
I installed "Preview" new and have problem from the reply. All I get is a blank white screen. Who can help?

With popup or without popup?

Without popup! I got it going now but still have some problems. This only happens in "Reply". When I hit "reply" it jumps to the wrong spot. It almost stays in the edit message window and it's not going to the preview area.
------------------


[This message has been edited by Matrix on June 14, 2000]

Joined: May 2000
Posts: 19
Member
Member
Offline
Joined: May 2000
Posts: 19
Matrix,

With popup or without popup?

Joined: Jun 2000
Posts: 3
rsg Offline
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 3
Will either of these hacks show avatars and signature lines?

------------------

Joined: Jun 2000
Posts: 3
rsg Offline
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 3
Will either of these hacks show avatars and signature lines?

------------------

Joined: Jun 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 13
With popup or without popup?

Without popup! I got it going now but still have some problems. This only happens in "Reply". When I hit "reply" it jumps to the wrong spot. It almost stays in the edit message window and it's not going to the preview area.

------------------

Joined: Jun 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 13
Quote
quote:
With popup or without popup?

Without popup!
I got it going now but still have some problems. This only happens in "Reply".
When I hit "reply" it jumps to the wrong spot. It almost stays in the edit message window and it's not going to the preview area.



------------------

Joined: Mar 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 4
OK...

I have this working PERFECTLY at my board now... Suggest A Fix

BUT...

There was a glitch in the script, whereby replying with quote got all messed up. When you replied with quote and the UBB bold tags had been used by the original poster, it did NOT convert those tags properly and you wound up with a mess. ALL replies with "Reply with Quote" were a disaster, regardless of whether you previewed or not.

I have taken 2 screenshots here to show you what the problem was before I fixed it. Please take a look at them.

I have found a fix for this, and corrected the problem...

It involves changing ONE line in POSTINGS.CGI

You can see that line change by clicking on my 2 screenshots link above.

Take care!
...Tom

Joined: Oct 2000
Posts: 76
Member
Member
Offline
Joined: Oct 2000
Posts: 76
this hack is not compatible with the SubmitOnce hack!

-Ghoste


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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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)