Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
This is an adaptation of Leshrac's Preview Post hack that will work with 6.1

The actual code was not altered, but there were a few spots where number values were off a little (compared to what was already there), and I also added the code so you can choose which button it goes by (upper or lower, or both).

Original Thread (For 6.0): https://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic&f=24&t=000013

Download Link: http://members.aol.com/razorback423/ubbhacks/preview_post.txt

PS. Again, I apologize if anyone objects to be posting the modified code without contacting the original author.

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
You haven't XHTML'ed it yet. This is what you need to do:

Lowercase all tags - Close all tags -
should be

Quote all values EG: needs to be .

Hope you understand. smile

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
LD: He doesn't have to XHTML it, it's just a suggestion.

Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
Quote
quote:
Oh thats all i need to do?

Okay I'll give it a shot. smile

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Just a note that in lines like:
Code
code:
You can't use just '"' because of the 'message .= "...";', so use:
Code
code:
or
Code
code:

[ 10-24-2001: Message edited by: LK ]

Sponsored Links
Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
Does this look right?
I made all the tags I could find into lowercase...dont think I missed any.

http://members.aol.com/razorback423/ubbhacks/preview_post_XML.txt

Joined: Apr 2001
Posts: 43
Member
Member
Offline
Joined: Apr 2001
Posts: 43
Seems to work except instead of saying Preview in the button it sez Submit Query?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Code
code:
BASE tag isn't closed.
Use:
Code
code:
Code
code:
Use the code I gave you above.
Code
code:
INPUT isn't closed, lowercase HIDDEN/POST... And what's that < before value?
Code
code:
Code
code:
TEXT/SIZE/MAXLENGTH aren't lowercased. And again, what's that < before value?
Code
code:
12/45 aren't quotted, VIRTUAL isn't lowercased...
There are some others...


Also, don't change the 'FIND' parts tipsy

Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
Okay I'm fixing those, BUT most of your fixes are for the FIND lines, and the ones that are already there were the ones on my UBB, so I'm gonna keep the two instructions seperate.

Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
Quote
quote:
Wasnt me...

Quote
quote:
I dont remember doing that...if it happened it was a side-effect of Mass Replace.

Okay I did all your fixes...I'm uploading the new copy. Thanks for the help, LK!

[ 10-24-2001: Message edited by: Outback2K1 ]

Sponsored Links
Joined: Apr 2001
Posts: 43
Member
Member
Offline
Joined: Apr 2001
Posts: 43
Any ideas about the problem Im having?

Joined: Mar 2000
Posts: 204
Member
Member
Offline
Joined: Mar 2000
Posts: 204
Sorry to be picky, but you might be misleading people by saying it's XML Compliant (Which it's not). It's XHTML Compliant (Which it probably isn't completely compliant yet, but it sure isn't XML). You might want to change that.

Just thought I'd point that out.


-Never Underestimate The Power Of Stupid People In Large Groups.
Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
Quote
quote:
Sorry...for some reason I get them backwards sometimes...

Joined: Jun 2001
Posts: 50
Member
Member
Offline
Joined: Jun 2001
Posts: 50
Quote
quote:
Works fine for me...did you add the wordlets?

Joined: Apr 2001
Posts: 43
Member
Member
Offline
Joined: Apr 2001
Posts: 43
Yup Im gonna back track thru and see if I can find where I screwed up

Joined: Jul 2001
Posts: 272
Member
Member
Offline
Joined: Jul 2001
Posts: 272
This is what happened after trying to add in the Preview Post hack. What should I do to fix it:

[Linked Image]

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Make sure you put this:

Quote
quote:
into vars_wordlets.cgi

Joined: Nov 2001
Posts: 33
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 33
uh yea when i hit either Preview buttons it just makes the post, it doent show me a preview

and also i didnt cross them the add reply or add new topic buttons also just post it as normal

i aso het this error when trying to edit my posts

Error
An error has occured:


/home/gamingsocietyx/cgi-bin/ubb2/ubb_edit_post.cgi: Can't modify subroutine entry in concatenation at /home/gamingsocietyx/cgi-bin/ubb2/ubb_edit_post.cgi line 429, near "qq!!;"


Please inform the board administration of this error so that they may fix the problem. Thank you!

:::::::::EDIT:::::

ok i fixed that problem now i can edit posts but, the previous text does NOT show up for editing NOR do the message icons at all

[ 11-18-2001: Message edited by: ssilenthill ]

Joined: Apr 2001
Posts: 43
Member
Member
Offline
Joined: Apr 2001
Posts: 43
Has anyone tried this hack in 6.1.0.3? Any problems?

Joined: Apr 2001
Posts: 43
Member
Member
Offline
Joined: Apr 2001
Posts: 43
Ok after 10 beers i decided to try it and all went well Works perfect

Joined: Feb 2001
Posts: 61
Member
Member
Offline
Joined: Feb 2001
Posts: 61
I have this working on 6.1.0.3 with no problems.

I also have this in a MultiHack automatic install file for MK 2.0 which should be out of beta in the next few days. Once MultiHack 2.0 is released I will make sure that file gets posted here at UBBDev.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Code
quote:</font><hr>Originally posted by snip1er:
I have this working on 6.1.0.3 with no problems.

I also have this in a MultiHack automatic install file for MK 2.0 which should be out of beta in the next few days. Once MultiHack 2.0 is released I will make sure that file gets posted here at UBBDev.
<hr></blockquote>

Make sure you have LK's fix on it.

Having this:
<blockquote><font size="1" face="Verdana, Helvetica, Arial">code:

instead of this(which is still in the current instuctions):
Code
code:

Joined: Nov 2001
Posts: 99
Member
Member
Offline
Joined: Nov 2001
Posts: 99
ok I have a problem just exactly like Splitfyre, what's wrong I use the multihack and manual, and btw it shows that little button and then when you click on it it just post the topic and not preview it


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)