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.

jancarlo 09-02-2005 10:22 AM

what I can modify for giving to the permissions to all the users even if in the forum the users simple they cannot enclose?

tnx
jancarlo

Snake 09-02-2005 11:23 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

Yes I would like to see this hack as a product or plugin, please.

BluPhoenix 09-02-2005 02:22 PM

Quote:

Originally Posted by jancarlo
what I can modify for giving to the permissions to all the users even if in the forum the users simple they cannot enclose?

tnx
jancarlo

A little more complex.. allow the usergroups to have attachments, but in the forum permissions manager you need to make sure each forum doesn't allow attachments, that way pm's can still have attachments while the forums do not..

FleaBag 09-03-2005 12:21 PM

Looking good here! Will keep an eye on it. :)

jancarlo 09-05-2005 06:38 AM

in Scheduled Tasks ---> Scheduled Task Manager ---> Private Attachments CleanUp ---> Run Now

Fatal error: Call to a member function on a non-object in /home/*******/public_html/includes/functions.php on line 4240 :ermm: ???

tnx
jancarlo

BluPhoenix 09-05-2005 11:41 PM

Quote:

Originally Posted by jancarlo
in Scheduled Tasks ---> Scheduled Task Manager ---> Private Attachments CleanUp ---> Run Now

Fatal error: Call to a member function on a non-object in /home/*******/public_html/includes/functions.php on line 4240 :ermm: ???

tnx
jancarlo

are you running RC2?

.Tim 09-06-2005 01:07 AM

I wanted to re-install this but have been paranoid since the last one wiped out 6 months worth of attachments. I installed this one, hopefully no problems. I'm still paranoid though and worried. haha! But I did make a backup this time.

.Tim 09-06-2005 01:35 AM

Whenever I send an attachment in a PM, nothing shows up in the message the user gets. I have attachments allowed on the forum, so that can't be why. If I copy and paste the attachment link after I upload it it works but it never shows up in the message. Hope that makes sense.

jancarlo 09-06-2005 04:16 AM

Quote:

Originally Posted by BluPhoenix
are you running RC2?

yes... :ermm:

vBulletin Versione 3.5.0 Release Candidate 2
Copyright ?2000 - 2005, Jelsoft Enterprises Ltd.

dookie 09-22-2005 06:35 PM

*Subscribes to this thread*
Very interesting. Hope it will be released as a product soon. :)

.Tim 10-01-2005 07:15 PM

Works great with 3.5 gold, my problem above is now resolved. :D

mahdiyat` 10-01-2005 09:08 PM

I installed it but when I clicked manage attachment bottun the error will show $idname error , and advice to contact admin
any help

Boofo 10-01-2005 11:30 PM

Quote:

Originally Posted by .Tim
Works great with 3.5 gold, my problem above is now resolved. :D

How did you solve the problem?

MaXxed 10-02-2005 12:25 AM

Id love to offer this as a premium service to users...can this be controlled by usergroup? Both sending and receiving?

.Tim 10-02-2005 12:34 AM

Quote:

Originally Posted by Boofo
How did you solve the problem?

I don't know, I removed the hack after having the problems and after installing 3.5 gold I reinstalled it for the hell of it to see if it'd work and it did.

Snake 10-02-2005 11:22 AM

I'm hoping to see this as a product or plugin.

Colin F 10-03-2005 11:14 AM

Quote:

Originally Posted by Snake
I'm hoping to see this as a product or plugin.

Snake, it is a plugin.

Snake 10-03-2005 01:31 PM

Oh really... Sorry my bad. I just woke up so I was kinda sleepy. :P

troux 10-03-2005 08:32 PM

<font color="Lime">*installed*</font>

It works great, but It'd be awesome if only certain groups could use the feature!

Bubble #5 10-03-2005 11:10 PM

Quote:

Originally Posted by MaXxed
Id love to offer this as a premium service to users...can this be controlled by usergroup?

Wow this is a great idea. Hope we can see it happen soon :)

paulomt1 10-04-2005 03:43 PM

Is not working on vb 3.5.0
Error: Invalid Post specified. If you followed a valid link, please notify the administrator

Snake 10-04-2005 06:06 PM

And who said it will work on 3.5.0 Gold?

Keyser S?ze 10-04-2005 06:20 PM

this is something ive never understood, why not give the PM attachments its own table in the database, so it doesnt have to run off the normal attachments table

my site the attachment table is 785MBs (rard), so its big, and it would run better if it had its own database table

-----------------

also, what if u have changed to file-system attachments, will that cause a problem for this hack?

snake - thats a rather snotty answer, the thread title does say 3.5, doesnt say RCx or gold, however the version does say RC2, but so many times i have seen known coders say "there were little changes from any of the RC versions to gold, so u can assume all 3.5 hacks work on gold"

tsk tsk

Snake 10-04-2005 06:56 PM

I think you're wrong buddy because according to the hack info it says...

Quote:

vB Version: 3.5.0 RC2
Which means it doesn't and will NOT work on 3.5.0 Gold. ;)

Boofo 10-04-2005 06:57 PM

Quote:

Originally Posted by paulomt1
Is not working on vb 3.5.0
Error: Invalid Post specified. If you followed a valid link, please notify the administrator

Read the Quick FAQ in the first post for your answer. ;)

Keyser S?ze 10-04-2005 07:31 PM

was still a snotty answer regaurdless, we can always be polite

.Tim 10-04-2005 09:43 PM

Quote:

Originally Posted by Snake
And who said it will work on 3.5.0 Gold?

Me. I have 3.5.0 Gold and it works just fine. (my attachments don't have the "attached images" text or border but I promise you it's an attachment)

TTG 10-04-2005 10:41 PM

Quote:

Originally Posted by Snake
I think you're wrong buddy because according to the hack info it says...



Which means it doesn't and will NOT work on 3.5.0 Gold. ;)

Added image and zip to PM on 3.5.0 .. no problems on 3.5.0 gold :)

Keyser S?ze 10-04-2005 11:06 PM

may i ask, does this work if u r using a filesystem for attachments, and not the database?

TTG 10-04-2005 11:27 PM

Quote:

Originally Posted by Keyser S?ze
may i ask, does this work if u r using a filesystem for attachments, and not the database?

I'm using a file system.


All times are GMT. The time now is 04:28 PM.

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.01334 seconds
  • Memory Usage 1,822KB
  • 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
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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