#35955
01/15/2000 4:30 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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<<<
|
|
|
#35956
01/15/2000 4:31 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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?
|
|
|
#35957
01/15/2000 5:29 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Ok, I found the wrong statements in my documentation; I reuploaded it and it should be allright now
|
|
|
#35958
01/15/2000 6:32 AM
|
Joined: Jan 2000
Posts: 56
Member
|
Member
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
|
|
|
#35959
01/15/2000 6:50 AM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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 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.
|
|
|
#35960
01/15/2000 8:41 AM
|
Joined: Jan 2000
Posts: 56
Member
|
Member
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
|
|
|
#35961
01/15/2000 4:04 PM
|
Joined: Jan 2000
Posts: 18
Member
|
Member
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!
|
|
|
#35962
01/17/2000 8:13 PM
|
Joined: Jan 2000
Posts: 68
Junior Member
|
Junior Member
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: replace it with: then find: and replace it with: Save and done!
|
|
|
#35963
01/18/2000 1:12 AM
|
Joined: Jan 2000
Posts: 3
Junior Member
|
Junior Member
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?
|
|
|
#35964
02/12/2000 11:42 AM
|
Joined: Jan 2000
Posts: 32
Member
|
Member
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
|
|
|
#35965
02/13/2000 5:45 PM
|
Joined: Feb 2000
Posts: 4
Junior Member
|
Junior Member
Joined: Feb 2000
Posts: 4 |
Just a note about the fix Dave posted. Instead of: it should be: he forgot a bracket that made the disable smileys check box disappear totally.
|
|
|
#35966
02/14/2000 6:42 PM
|
Joined: Feb 2000
Posts: 7
Junior Member
|
Junior Member
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 !! Thanks to anyone that can... Patrick
|
|
|
#35967
02/20/2000 11:20 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
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: BEFORE this, add: under this, find replace with All done! Just a thought
|
|
|
#35968
02/20/2000 12:51 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
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
|
|
|
#35969
03/01/2000 5:52 PM
|
Joined: Jan 2000
Posts: 18
Member
|
Member
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
|
|
|
#35970
03/13/2000 3:39 AM
|
Joined: Feb 2000
Posts: 7
Junior Member
|
Junior Member
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 1:02 PM.
|
|
|
#35971
03/13/2000 6:06 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
EMail me your postings.cgi and I'll take a look. Just a thought
|
|
|
#35972
03/13/2000 9:37 AM
|
Joined: Mar 2000
Posts: 1
Junior Member
|
Junior Member
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
|
|
|
#35973
05/30/2000 11:44 AM
|
Joined: May 2000
Posts: 1
Junior Member
|
Junior Member
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.
|
|
|
#35974
05/31/2000 2:02 PM
|
Joined: May 2000
Posts: 19
Member
|
Member
Joined: May 2000
Posts: 19 |
I found some incorrect iformation in Preview hack - no javascript. In preview-hack-nojavascript.txt it says: actualy it should be: ------------------ /Vulpes
/Vulpes ASK NEXT QUESTION
|
|
|
#35975
06/06/2000 7:26 PM
|
Joined: Jun 2000
Posts: 13
Junior Member
|
Junior Member
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
|
|
|
#35976
06/09/2000 7:04 PM
|
Joined: Jun 2000
Posts: 13
Junior Member
|
Junior Member
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
|
|
|
#35977
06/14/2000 3:00 AM
|
Joined: Jun 2000
Posts: 13
Junior Member
|
Junior Member
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]
|
|
|
#35978
06/14/2000 8:56 AM
|
Joined: May 2000
Posts: 19
Member
|
Member
Joined: May 2000
Posts: 19 |
Matrix,
With popup or without popup?
|
|
|
#35979
06/14/2000 11:18 AM
|
Joined: Jun 2000
Posts: 3
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 3 |
Will either of these hacks show avatars and signature lines?
------------------
|
|
|
#35980
06/14/2000 11:19 AM
|
Joined: Jun 2000
Posts: 3
Junior Member
|
Junior Member
Joined: Jun 2000
Posts: 3 |
Will either of these hacks show avatars and signature lines?
------------------
|
|
|
#35981
06/14/2000 2:57 PM
|
Joined: Jun 2000
Posts: 13
Junior Member
|
Junior Member
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.
------------------
|
|
|
#35982
06/14/2000 3:01 PM
|
Joined: Jun 2000
Posts: 13
Junior Member
|
Junior Member
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. ------------------
|
|
|
#35983
03/15/2001 9:03 AM
|
Joined: Mar 2001
Posts: 4
Junior Member
|
Junior Member
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
|
|
|
#35984
03/15/2001 12:13 PM
|
Joined: Oct 2000
Posts: 76
Member
|
Member
Joined: Oct 2000
Posts: 76 |
this hack is not compatible with the SubmitOnce hack!
-Ghoste
|
|
|
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.
|
|
Posts: 21,079
Joined: March 2000
|
|
Forums63
Topics37,575
Posts293,927
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|