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)

bira 12-10-2001 04:13 AM

Thanks wluke, good to know

FWC 12-10-2001 05:16 AM

[QUOTE]Originally posted by bira
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

LuBi 12-12-2001 04:18 AM

Ok I press preview, and the page refreshes with nothing but a new blank priv message...

help!? :(

bira 12-12-2001 11:31 AM

LuBi, follow the instructions again and see what you missed out or did wrong

LuBi 12-12-2001 03:53 PM

From what I can see I have installed everything correctly, my only problem was that copy and paste part but the problem was no with what I did but that it was interesting ;) anyhow.. now my only worry is when I pree preview it's more like a refresh button and the page comes back blank, exactly what happened before so nothing has changed. I have this hack installed with the jscript hack similar to what firefly runs on here.. but for some reason my preview doesn't work...

LuBi 12-13-2001 03:30 PM

<<help>>

bira 12-13-2001 03:40 PM

LuBi, I honestly don't know how to help you.

If you installed the hack exactly as the instructions say then you shouldn't have any problem.

Your problem, from what you are describing, is that the action 'preview' is either not present in private.php, or misconfigured. If the page simply refreshes, it means it doesn't know what to "do" with 'preview'. That means you installed the hack wrongly.

LuBi 12-13-2001 03:53 PM

Ok well that was funny I missed $postpreview 5 times. Now my problem wil be getting this hack to work with the javascript hack. I think I just need to change this $privmessage for $message[message] and I'll be so fresh so clean. THANKS! :D

*Edit - Works now with the javascript hack, my mistake $privmessage had an extra e i.e. $privmessagee Thanks Again!

Lionel 12-24-2001 12:50 AM

I tried installing twice. and this is what I get printed on screen above my headers

(part of my VB title) Private Messaging - Send Message

then I get the screen to send PM

and underneath it printed on the screen

HTTP/1.1 200 OK Date: Mon, 24 Dec 2001 04:29:14 GMT Server: Apache/1.3.19 (Unix) PHP/4.0.5 mod_ssl/2.8.2 OpenSSL/0.9.6 X-Powered-By: PHP/4.0.5 Content-Length: 5331 Keep-Alive: timeout=15, max=97 Connection: Keep-Alive Content-Type: text/html

and then the vbulletin error message no private message specified...

???

Lionel 12-24-2001 01:14 AM

Stupid me instead of cutting and pasting I did a copy and paste... However I cannot preview. I still am getting the no message specified error....

I applied wluke's fix

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

and it is working now.

Thanks for the hack Bira.


All times are GMT. The time now is 07:10 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.01048 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)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