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)

kennethj 05-05-2002 05:24 PM

;) tnks i need this fix - works great -
tnks for the help,

:) the hack - is just what the doctor ordered - every one likes a preview, i think

ken

[QUOTE]Originally posted by wluke
OKay.. I have installed this as well and come across another pecularity.

If you look in private.php in the "New Message" section there is this line:
PHP Code:

  if (isset($privatemessageid)) { 

Well what this does is start a check to make sure the previous message actually exists. On my version and installation of PHP even though it was set to '0' this was returning true. I had to change the line to the following to prevent a "Invalid Message Error".

PHP Code:

  if (isset($privatemessageid) and $privatemessageid!=0) { 

With that it works great. I recommend that if the error doesn't occur then use Bira's original code. If it does then make this modification.

tkeil69575 05-07-2002 05:42 AM

hi bira,

sending pms works, but when I press "Preview" I get a error message telling me that ** privatemessage ** is not defined or missing?
Ive tripple checked the code and it seems ok, any ideas?

---- update ----

bira forget my message. I was just "holier than the pope" and made the change you suggested to firefly and now it works great! Thanks

greetings tina

Boofo 05-09-2002 08:10 PM

[QUOTE]Originally posted by FireFly

Don't forget we do set error reporting to 7 in all vBulletin's scripts. ;)

Annnnnyhow, I just did what you said and everything seems to be working good now. :D
Perfect.

Boofo 05-17-2002 09:46 AM

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? :)

Fatty_Bolger 05-21-2002 04:24 AM

Thanks Bira!!

It took me twice :o , but I GOT IT!!!

The only thing is, unlike your screen shot in the opening post, in preview it does no appear to be converting the smilie code into smilies in the preview pane. It just shows the emoticon :-) for example.

No big deal really, I am very happy that it's working!!

If you think of a reason as to why the smilies don't work, that would be kewl, if not...no worries!!

Another GREAT and USEFULL hack!!!

Thanks again!! :cool:

Smoothie 05-21-2002 06:25 AM

/me likes this hack. Good job!

Mark Hensler 05-23-2002 05:28 PM

Smilie fix...
PHP Code:

// FIND:

$previewmessage=bbcodeparse($message,0,$allowsmilie);

// REPLACE:

$previewmessage pmcodeparse($message);



// FIND:

$post['signature'] = bbcodeparse($bbuserinfo['signature'],0,$allowsmilie);

// REPLACE:

$post['signature'] = pmcodeparse($bbuserinfo['signature']); 


Illuvatar 05-23-2002 07:23 PM

Thanks Mark,

I just applied this fix and it works great!! Hopefully Bira will add this fix to the original. ;)

You folks are the best!! :bunny: :bunny: :bunny:

Illuvatar 05-26-2002 02:27 AM

Hey Bira,

This hack is working great for me except when I use "PM To Buddies", and select multiple recipients. We sending multilples, I don't get an option to preview at all.

I send mutiples regularly and would really love to have this option available there as well. Any chance?

Thanks as always,

Illu

Boofo 05-26-2002 03:16 AM

Mark,

When I install the smilie fix, if the use signature is checked before I preview the message, it is no longer checked when previewing the message. And ideas on this one? :)


All times are GMT. The time now is 10:07 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.01807 seconds
  • Memory Usage 1,742KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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