Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Preview Private Message Before Sending Details »
Preview Private Message Before Sending
Mod Version: 1.00, by bira (Member) bira is offline
Developer Last Online: Jun 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (1 vote - 5.00 average) Installs: 31
Released: 26 Nov 2001 Last Update: Never Downloads: 2
Not Supported  

OK, I wrote this hack seeing as my users were nagging about it and I could not find one here (if there is one, I apologise - please give me the URL).

This works exactly like post preview:



How to install:

Open private.php

1) First we need to move "newmessage" after "dosend". Highlight the entire section between:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Until (but not including):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Cut this entire section (a total of 83 lines in 2.2.1) and paste it right above:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2) Now we need to insert the following code:

a) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Right under it insert:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

b) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Right above it insert:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

c) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Right above it insert:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

d) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Right under it insert:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

e) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Right under it insert:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

f) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Right above it insert:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


g) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with (the code to remove is marked in red):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Save private.php and upload to server.


In the Administration control panel -> Templates

1) ADD template priv_sendpreview and insert to it:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(you may edit this to your liking).

2) Open template priv_sendprivmsg

a) place $postpreview where you want the message preview to appear (normally would be under $cpnav).

b) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with (change marked in red):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

c) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with (change marked in red):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

d) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with (change marked in red):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

e) Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with (change marked in red):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


3) Open template priv_requestreceipt

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And replace it with (change marked in red):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's it!

Comments and additions welcome.

Cheers,

Bira

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Private Messages Enhancements Prevent members sending private message to others abus3d vBulletin 3.7 Add-ons 27 18 Jul 2009 08:35
Private Messages Enhancements Can't Use Private Message Before X posts and Before X days Atakan KOC Modification Graveyard 14 13 Feb 2007 18:50

  #61  
Old 09 Jul 2002, 07:49
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Thread...

The answer is in the thread here.

http://www.vbulletin.org/forum/showt...514#post203514

Originally posted by JJR512

I'm getting this, too.
Reply With Quote
  #62  
Old 04 Nov 2002, 00:09
edwardandtubbs1 edwardandtubbs1 is offline
 
Join Date: Oct 2002
I installed this on 2.2.8 and all I get is a blank screen when I hit preview. I all have the quick reply add. any ideas?
Reply With Quote
  #63  
Old 05 Dec 2002, 05:51
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Originally posted by bira
From what you are telling me, I can only assume you have high error reporting set in php.ini.

For the vast majority of the people, that error won't show up because they are not in development environment with high error reporting, and functionality is not tampered.

However, if you want to be "holier than the pope" so to speak, do this instead:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I think this should work. Try it out and let me know

Cheers,

Bira
I'm holier than the pope too Thanks for the fix Bira
Reply With Quote
  #64  
Old 05 Jan 2003, 22:02
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Re: Unique problem

Originally posted by Boofo
bira,

I ran into a unique problem tonight totally by accident. (The wife noticed it, actually. ) If I reply to a message and send it, everything works fine. But if I preview it before sending it, somehow it "forwards" the message instead of sending it. The better half noticed an FW: on the message after she recieved it and asked how come I was always forwarding messages to her instead of sending them. I always hit the send button, never the forward button. It only seems to happen after previewing them first. Any ideas on this one?
anyone find a fix for this one? I just intalled it on 2.2.9 and get the same problem. other than this it works great.
Reply With Quote
  #65  
Old 05 Jan 2003, 23:03
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Replace this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and this will fix the forwarding problem.
Reply With Quote
  #66  
Old 23 Feb 2003, 12:38
subu1 subu1 is offline
 
Join Date: Sep 2002
hello friends I tinkered already very much to orginal privat.php and I does not create it not without your assistance this beautiful Hack could I means Privat.php somebody to send and inserts it then? That would be very nice, since my English is now the best also not. subu1 thanks me would make happy: -))

that was my engl. Google Machine *g*
Reply With Quote
  #67  
Old 14 Mar 2003, 03:10
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
can someone update this hack for 2.3 please
i had an error when requesting preview it was an invalid link or something
Reply With Quote
  #68  
Old 02 May 2003, 20:38
Frozen Dreams's Avatar
Frozen Dreams Frozen Dreams is offline
 
Join Date: Apr 2003
I have the quick reply pm box hack installed (this one: http://www.vbulletin.org/hacks/index...ack&hackid=347)
Can someone tell me please how to put the preview button underneath that box as well :blush:
Reply With Quote
  #69  
Old 23 May 2003, 08:46
padblaz padblaz is offline
 
Join Date: Apr 2003
one of the most important features missing in vbulletin
thanks for this hack
Reply With Quote
  #70  
Old 24 Jun 2003, 19:29
ruffnerr's Avatar
ruffnerr ruffnerr is offline
 
Join Date: Jun 2002
03-13-03 at 11:10 PM msimplay said this in Post #67
can someone update this hack for 2.3 please
i had an error when requesting preview it was an invalid link or something

The hack works with 2.3.0, I went through this whole thread and updated the original downloadable hack code with all the enhancements, bug fixes, etc that have been posted.

I'm not a professional hack writer, so I make no guarantees for this code.
Attached Files
File Type: txt previewprivmsg[1].txt (5.5 KB, 27 views)
Reply With Quote
  #71  
Old 01 Jul 2003, 21:25
The_Huntress The_Huntress is offline
 
Join Date: Jan 2003
it doesnt work for me (i have 2.3.0) it throws an error that i guess its either on member.php or member2.php... but when i look it up in i cant find it in either file *scratches head* ne ideas? like right now i went to edit a post and it says 'Line 44: 'color_text' is not defined'... no clue wut dat is heh..cuz lie 44 shows no errors (in ne of the templates)

a syntax error gets shown on private php as well ... when u try make a new pm

a little help?

Last edited by The_Huntress; 01 Jul 2003 at 21:27.
Reply With Quote
  #72  
Old 13 Jul 2003, 12:15
Salazar's Avatar
Salazar Salazar is offline
 
Join Date: May 2003
06-24-03 at 08:29 PM ruffnerr said this in Post #70
The hack works with 2.3.0, I went through this whole thread and updated the original downloadable hack code with all the enhancements, bug fixes, etc that have been posted.

I'm not a professional hack writer, so I make no guarantees for this code.
Thanks, man!
Your file works perfectly with my 2.3.0.

You should create a new thread though. Great work ruffnerr!
Reply With Quote
  #73  
Old 30 Jul 2003, 01:15
duncan99 duncan99 is offline
 
Join Date: Feb 2003
It works great , I use v2.3.0 everything is ok except 2 small bugs :
- after pressing preview button, the signature checked becomes unchecked.

- when I modify the subject of the PM or change the subject, after pressing preview button, it goes back as the same subject before.

Can someone know how to fix it ?
Reply With Quote
  #74  
Old 08 Aug 2003, 18:20
ruffnerr's Avatar
ruffnerr ruffnerr is offline
 
Join Date: Jun 2002
Preview Private Message Before Sending v2

I implemented all the changes listed in the support thread, tested it with vB 2.30, fixed another bug not previously fixed, and am posting the updated code here.

See attached instructions for installation.
Attached Files
File Type: txt previewprivmsg.txt (5.4 KB, 25 views)

Last edited by ruffnerr; 08 Aug 2003 at 18:29.
Reply With Quote
  #75  
Old 08 Aug 2003, 18:26
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Such updates should be released in the original thread. Merging threads now..
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:30.

Layout Options | Width: Wide Color: