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)

Admin 03-01-2002 10:00 PM

Private Attachments! (Attachments in Private Messages)
 
*drums* :D
This hack is now out of beta! Safe to use. :)

My latest and one of the more extensive hacks -- Private Attachments!
This huge (I ain't kidding, it's pretty big) hack will allow your members to send private messages with attachments in them, so they don't need to use e-mail for that.

Since this hack requires a large number of edits, this is how I recommend installing it:
(a) Run the queries.
(b) Edit all the files, offline.
(c) When you are done with (b) upload all the files at once.
(d) Perform the template edits.
If you do all actions in this order your users shouldn't notice you are installing the hack.

All feature requests (except for limiting this for usergroups -- if you want that do it yourself it's not hard but I'm tired of adding permissions to the dreaded usergroup.php) are welcome before this goes out of beta. :)

As always, have fun.

Jadelit 03-02-2002 09:04 AM

GEEZE!! its 3am..

when I saw all that code, i passed out for 4 mins. LOL!!

btw.. this is great chen.. I'll install tomorrow..

MrLister 03-02-2002 01:09 PM

WOW! Awsome job! thank you

Xelation 03-02-2002 01:56 PM

I'm going to install it now! :D

Xelation 03-02-2002 02:12 PM

I just finished installing it.... heres the first problem for the hack... Ok I can send the file perfectly, but when the user that recieves the pm, he can do everything except open the file. here what happens.....

Admin 03-02-2002 02:50 PM

Xelation, I forgot to add something. Do this change:
Code:

+-------------------------------------------------------------------------------------------------+
| In file private.php replace this:                                                              |
+-------------------------------------------------------------------------------------------------+
  $message = $DB_site->query_first("SELECT privatemessage.*,icon.title as icontitle,icon.iconpath
                                    FROM privatemessage
                                    LEFT JOIN icon ON (privatemessage.iconid = icon.iconid)
+-------------------------------------------------------------------------------------------------+
|                                                                                                |
+-------------------------------------------------------------------------------------------------+
| With this:                                                                                      |
+-------------------------------------------------------------------------------------------------+
  $message = $DB_site->query_first("SELECT privatemessage.*,icon.title as icontitle,icon.iconpath,attachment.attachmentid,attachment.filename,attachment.counter
                                    FROM privatemessage
                                    LEFT JOIN icon ON (privatemessage.iconid = icon.iconid)
                                    LEFT JOIN attachment ON (attachment.attachmentid = privatemessage.attachmentid)
+-------------------------------------------------------------------------------------------------+

and you'll be fine. :)

Xelation 03-02-2002 03:07 PM

Works like a charm! Great Hack! :D :up: ...... do you plan to add this to vb.org? because this would be a real time saver.

Xelation 03-02-2002 03:08 PM

I see you already did, Great!

Admin 03-02-2002 03:08 PM

It's running here for almost a day... ;)

TECK 03-02-2002 03:41 PM

thanks firefly.. i guess my start idea on the requests helped you ;) good job, as usual.


All times are GMT. The time now is 06:13 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.01088 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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