vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Preview Private Message Before Sending (https://vborg.vbsupport.ru/showthread.php?t=32695)

Boofo 07-09-2002 05:49 AM

The answer is in the thread here. :)

https://vborg.vbsupport.ru/showthrea...514#post203514

[QUOTE]Originally posted by JJR512

I'm getting this, too.

edwardandtubbs1 11-03-2002 10:09 PM

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?

Natch 12-05-2002 03:51 AM

[QUOTE]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:

PHP Code:

if ($prevmessageid) {
       
$privatemessageid $prevmessageid;
}

$forward iif($forward,1,0); 

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

Cheers,

Bira

yzztik 01-05-2003 08:02 PM

[QUOTE]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? :)

Boofo 01-05-2003 09:03 PM

Replace this:

Code:

    // preview hack
    if ($preview) {
        $previewpost=1;
        $previewmessage=bbcodeparse($message,0,$allowsmilie);

        if ($signature) {
            $post['signature'] = bbcodeparse($bbuserinfo['signature'],0,$allowsmilie);
            eval("\$post[signature] = \"".gettemplate("postbit_signature")."\";");
            $previewmessage.=$post['signature'];
        }

        eval("\$postpreview=\"".gettemplate("priv_sendpreview")."\";");

        $parseurlchecked=iif($parseurl,"checked","");
        $pmreceiptchecked=iif($pmreceipt,"checked","");
        $savecopychecked=iif($savecopy,"checked","");
        $signaturechecked=iif($signature,"checked","");
        $previewchecked=0;
       
        $title = htmlspecialchars($title);
       
        $subject = $title;
                $privatemessageid = $prevmessageid;
                $forward;               
        $privmessage = $message;
        $action="newmessage";
    } else {
    // preview hack

with this:

Code:

    // preview hack
    if ($preview) {
        $previewpost=1;
        $previewmessage=bbcodeparse($message,0,$allowsmilie);

        if ($signature) {
            $post['signature'] = bbcodeparse($bbuserinfo['signature'],0,$allowsmilie);
            eval("\$post[signature] = \"".gettemplate("postbit_signature")."\";");
            $previewmessage.=$post['signature'];
        }

        eval("\$postpreview=\"".gettemplate("priv_sendpreview")."\";");

        $parseurlchecked=iif($parseurl,"checked","");
        $pmreceiptchecked=iif($pmreceipt,"checked","");
        $savecopychecked=iif($savecopy,"checked","");
        $signaturechecked=iif($signature,"checked","");
        $previewchecked=0;
       
        $title = htmlspecialchars($title);
       
        $subject = $title;
                if ($prevmessageid) {
      $privatemessageid = $prevmessageid;
    }

        $forward = iif($forward!='','true','');
        $privmessage = $message;
        $action="newmessage";
    } else {
    // preview hack

and this will fix the forwarding problem.

subu1 02-23-2003 10:38 AM

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*

msimplay 03-14-2003 01:10 AM

can someone update this hack for 2.3 please
i had an error when requesting preview it was an invalid link or something

Frozen Dreams 05-02-2003 06:38 PM

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:

padblaz 05-23-2003 06:46 AM

one of the most important features missing in vbulletin :)
thanks for this hack

ruffnerr 06-24-2003 05:29 PM

[QUOTE]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


All times are GMT. The time now is 11:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01551 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete