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)
-   -   Private Attachments! (Attachments in Private Messages) (https://vborg.vbsupport.ru/showthread.php?t=35593)

Steve123 03-23-2003 09:31 AM

*bump*

Steve123 03-25-2003 04:21 AM

Fixed by turning Reg_Globals On

in php..

Is there any way around this?

msimplay 05-10-2003 04:16 PM

seems to be working fine on Vbulletin 2.30 release candidate 3

Crazy Pete 05-10-2003 09:24 PM

Quote:

03-22-03 at 01:21 AM Steve123 said this in Post #90
Hey,

Ive installed this hack and gone over it twice..

For some reason it wont work..

When i send an attachment in a pm and read it.. it dosent show the attachment.. it shows nothing..

Ive check the mysql tables and it dosent seem to be adding anything to the attachment and privatemessage sql tables..

using vb 2.2.6.. any ideas??

/Steve

Same issue with me, though I'm running 2.3.0. I'd rather not turn on register_globals like Steve had to, though.

SemperFidelis 05-22-2003 01:53 PM

Can anyone confirm that this hack is working 100% correctly for vb 2.3.0 with reg_glbals OFF ?

ontherun 06-23-2003 08:52 AM

Running vBulletin (2.3.0)

I have install the hack Scott MacVicar's Attachments as files.
[vB v2.2.3] Attachments as files (post #1)

I have installed Private Attachments! (Attachments in Private Messages)

Let me say the Attachments as files has been working with no issues for a few months.

After installing Private Attachments, it appears that every thing works, (no errors) except the attacment never appears on the pm to the user.

Now there is a earler post about This modification will allow you to have private attachment working with file attachment hack by PNP.

It looks to me that PA has been updated and the added notes in that post (post #33) are included in the current hack.

I Complete restore of test site to before install and re-installed the hack again............with the same results.

Everything looks great............ allows me attach the file to the PM but when the PM is received there is no attachment. ( No error messages).

What do I need to do? Help please......... I really need this to work on our system.

Thanks ahead of time for your help.

Guess this Thred is DEAD post this 06-23-03 02:52 AM and not a post....................hmmmmmmmmm

asweetdeal 08-03-2003 05:15 PM

I too have had this hack installed for quite some time now. Our server upgraded the php and turned off reg globals and now we can not receive our attachement in our PM's.

Is there a fix for this yet?

Thanks
ASD

Robert9 08-19-2003 04:14 AM

Have installed it, thank you for doing it. So i could get to bed some hours earlier now (it´s 7 in morning ;-(

But as i see the code there is no delete for the attachment, if the message is deleted, isn´t it so?

Will see if i can fix this ...

Robert9 08-19-2003 04:34 AM

Improvements:
1) If you want to see the pic instead download it, try this for the new template privmsg_attachment

<p><normalfont><img src="{imagesfolder}/attach/$message[attachmentextension].gif" width="16" height="16" border="0" alt="">
Attachment:<br> <img src="attachment.php?s=$session[sessionhash]&privatemessageid=$message[privatemessageid]" border="0" alt="" vspace="8" hspace="4">
</normalfont><br>
<smallfont>Downloads: $message[counter]</smallfont></p>

Robert9 08-19-2003 04:44 AM

Ok. The better one:

make another template called privmsg_attachmentimage
with this code:

Code:

<p><normalfont><img src="{imagesfolder}/attach/$message[attachmentextension].gif" width="16" height="16" border="0" alt="">
Attachment:<br> <img src="attachment.php?s=$session[sessionhash]&privatemessageid=$message[privatemessageid]" border="0" alt="" vspace="8" hspace="4">
</normalfont><br>
<smallfont>Downloads: $message[counter]</smallfont></p>


Then found the place with:
Code:

        if ($message['attachmentid'] != 0) {
                $message['attachmentextension'] = strtolower(getextension($message['filename']));
                eval("\$message[attachment] = \"".gettemplate('privmsg_attachment')."\";");
        } else {
                $message['attachment'] = '';
        }

and substitute it with this:
Code:

        if ($message['attachmentid'] != 0) {
            $message['attachmentextension'] = strtolower(getextension($message['filename']));
                if (($viewattachedimages) and ($bbuserinfo[showimages]) ) {
                    eval("\$message[attachment] = \"".gettemplate('privmsg_attachmentimage')."\";");
                } else {
                    eval("\$message[attachment] = \"".gettemplate('privmsg_attachment')."\";");
                }
               
        } else {
                $message['attachment'] = '';
        }



All times are GMT. The time now is 11:48 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.01172 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (1)bbcode_quote_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