vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   PM Attachments 3.5 (https://vborg.vbsupport.ru/showthread.php?t=95477)

BluPhoenix 09-01-2005 10:00 PM

PM Attachments 3.5
 
Original Hack by Rigel Kentaurus (http://www.cemzoo.com)
Original Thread: https://vborg.vbsupport.ru/showthread.php?t=91220
See the original thread for details of the problems..

Basically everything has been fixed so this works with existing installs and not just clean ones, also no error message about a non-matching release anymore.. attachments are now correctly displayed as they would be in a thread and this hack No longer inteferes with non-pm attachments.. So all the good bits left (Attachments in Private Messages, using the existing usergroup permissions) and all the bad bits taken out.

Also I'm willing to support this hack, which is why I took the decision to start a new thread rather than use the existing one so I can easier support the hack and problems with this plugin not the old buggy one. (or at least that's the theory)

Please uninstall the old plugin first, thanks.

QuickFaq
I'm getting Invalid Post specified:
That means the plugin was unable to get attachments permissions for the user. The solution is to locate a thread in your forum (one that shouldn't be deleted in a long time, it doesn't matter if it's closed). Remember it's threadid
Go to Plugin Manager and click on "private attachments - get posthash and allow attachments"

Find: $_pmt = 1;


Replace the "1" with the threadid

Boofo 09-02-2005 01:34 AM

What would cause the "Invalid Post specified" error in the first place? ;)

nexialys 09-02-2005 01:39 AM

because this hack actually act like a "i take the permission from a thread, and apply it to the PM system"...

this means there is no permissions system for the PM attachments actually... missing!

Boofo 09-02-2005 01:40 AM

Quote:

Originally Posted by nexialys
because this hack actually act like a "i take the permission from a thread, and apply it to the PM system"...

this means there is no permissions system for the PM attachments actually... missing!

Shouldn't there be one for PM attachments, too?

TTG 09-02-2005 01:41 AM

Tested a couple of times with different size and types of attachements .. no problems.
Very useful addition .. thanks BluPhoenix.
Clicked install.

Andreas 09-02-2005 02:09 AM

Some suggestions
- Make this into a Product with Install/Uninstall Codes so Users don't have to run Queries manually
- You can use Hook cron_script_cleanup for the Cron-Stuff so you don't need an additional File

BluPhoenix 09-02-2005 06:34 AM

Quote:

Originally Posted by KirbyDE
Some suggestions
- Make this into a Product with Install/Uninstall Codes so Users don't have to run Queries manually
- You can use Hook cron_script_cleanup for the Cron-Stuff so you don't need an additional File

Boofo:
This works by tricking vbulletin that the pm is infact a thread, but on some systems the trick used to do that will fail. In such a case an old thread is used to hold the attachments in such a way that they are stored and viewed in the pm, but not viewed when the thread is viewed.

nexialys:
The permissions are still in effect if a usergroup does not have permission to send attachments they cannot send ones via pm either.

KirbyDE:
Thanks for the suggestions Kirby, I certainly plan to do just that once I've had some more A. Ok's for everything working as is.. I didn't want to make it too complex too soon and not be able to fix any little bugs that may come up.

TTG:
Good stuff, glad it's working for you.

theArchitect 09-02-2005 08:31 AM

Fantastic. My members really loved this hack and missed it one I upgraded to 3.5.0.

Although I have clicked install I haven't installed so I can't give you an a ok. I just want to get the e-mail letting me know the system has been updated to be a product.

BluPhoenix 09-02-2005 09:00 AM

Quote:

Originally Posted by theArchitect
Fantastic. My members really loved this hack and missed it one I upgraded to 3.5.0.

Although I have clicked install I haven't installed so I can't give you an a ok. I just want to get the e-mail letting me know the system has been updated to be a product.

Well I'm working on the product now.. Still learning when it comes to vb 3.5's way of doing things.. although I guess that's true of all of us *l*

theArchitect 09-02-2005 09:03 AM

Quote:

Originally Posted by BluPhoenix
Well I'm working on the product now.. Still learning when it comes to vb 3.5's way of doing things.. although I guess that's true of all of us *l*

I am just glad that people are prepared to build mods for those of us who don't have the skills. Many thanks to you and all the coders who contribute to this forum.


All times are GMT. The time now is 06:59 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.01138 seconds
  • Memory Usage 1,739KB
  • 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_quote_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