vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [VB3 RC3] Attachments in private messages (https://vborg.vbsupport.ru/showthread.php?t=59840)

gmarik 01-26-2004 05:57 AM

I like to like it ;)

Giveit2u43 01-28-2004 08:30 PM

I had a similiar problem with everything seeming to work fine but the attachments not actually showing in the pm's.. I finally tracked it down to the fact the forum had been upgraded from vb2, and we`d had the private attachments hack installed and so there was already a "private" table in attachments, I`d overlooked this on installation, but on removing that table and creating a new one fixed the problem with attachments not showing...

Might not work for others, but it worked for us and it gives people another option to try when attempting to get this great addon working... (haveto agree with Erwin too, this should be standard in gold! definetly get's my vote)

Natch 01-28-2004 09:19 PM

Great job!

Thanks for this excellent tool ...

/me installs *

Boofo 02-02-2004 09:29 AM

Found another boo-boo with this. If you add an attachment to a pm and then preview the pm, the attachment has detatched itself. Then, without saving the message, view your attachments and you will see the attachment in the listing.

catocom2 02-04-2004 08:02 PM

I installed this, and everything looks fine so far, except it keeps
telling me I don't have permission to do an attachment.

I'm not clear as to what is meant here...
Quote:

################################################## #################
# New phrases to add
################################################## #################

Add a new phrase and make sure it is in the posting group, otherwise it won't work

phrase: in_private_message
Text: Private Message
Do I do this in a PM?

catocom2 02-04-2004 08:17 PM

oh, and I'm running RC3
I couldn't fine this bit of code in the "pm_newpm"
Quote:

-------------------------------------------------------------------
search for this:
-------------------------------------------------------------------

<input type="hidden" name="receipt" value="0" />

------------------------------------------------------------------
change it to:
-------------------------------------------------------------------

<input type="hidden" name="receipt" value="0" />
<input type="hidden" name="posthash" value="$posthash" />
I also have the hack so that the reciept box is a checkbox instead of a popup.

catocom2 02-04-2004 08:37 PM

OK with the checkbox mod the line look like this in the "pm_newpm"

in stead of ...
PHP Code:

[QUOTE]-------------------------------------------------------------------
search for this:
-------------------------------------------------------------------

<
input type="hidden" name="receipt" value="0" />

------------------------------------------------------------------
change it to:
-------------------------------------------------------------------

<
input type="hidden" name="receipt" value="0" />
<
input type="hidden" name="posthash" value="$posthash/>
[/
QUOTE

look for....
PHP Code:

<input type="checkbox" name="receipt" id="cb_receipt" value="1" checked />
Request Read Receipt

and change to...
PHP Code:

<input type="checkbox" name="receipt" id="cb_receipt" value="1" checked />
Request Read Receipt?
<
input type="hidden" name="posthash" value="$posthash/> 

right?

Kentaurus 02-05-2004 01:39 AM

Quote:

Originally Posted by catocom2
OK with the checkbox mod the line look like this in the "pm_newpm"

in stead of ...

look for....
PHP Code:

<input type="checkbox" name="receipt" id="cb_receipt" value="1" checked />
Request Read Receipt

and change to...
PHP Code:

<input type="checkbox" name="receipt" id="cb_receipt" value="1" checked />
Request Read Receipt?
<
input type="hidden" name="posthash" value="$posthash/> 

right?

Yes, that's right. In fact you can add that bit of code anywhere inside the form tag... it doesn't have to be near the receipt or anything. I just added it there to group it with all the other hidden fields.

Kentaurus 02-05-2004 01:40 AM

Quote:

Originally Posted by catocom2
I installed this, and everything looks fine so far, except it keeps
telling me I don't have permission to do an attachment.

I'm not clear as to what is meant here...


Do I do this in a PM?

The new phrases are added in the admin control panel, that is, you go to the phrase manager and click on the "add new phrase" button

Kentaurus 02-05-2004 02:07 AM

Quote:

Originally Posted by Boofo
Found another boo-boo with this. If you add an attachment to a pm and then preview the pm, the attachment has detatched itself. Then, without saving the message, view your attachments and you will see the attachment in the listing.

A couple of changes to fix this. Thanks for spotting this, Boofo.

In private.php search for this
Code:

        $poststarttime = TIMENOW;
change it to
Code:

if ($_POST['poststarttime'])
{
$poststarttime = $_POST['poststarttime'];
}
else
{
        $poststarttime = TIMENOW;
}

In the template pm_newpm, search for this
Code:

<input type="hidden" name="posthash" value="$posthash" />
change it to
Code:

<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />

TXT updated also


All times are GMT. The time now is 01:09 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.01287 seconds
  • Memory Usage 1,763KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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