![]() |
Members Can't Download Attachments Before Reply
1 Attachment(s)
Members Can't Download Attachments Members can't download Attachments Before Reply . Versions : vB 3.8.x Install : Import The Product From Your Admincp Open Read Me file In attachments For File Changes If You Use This modification click INSTALL |
Thank you :)
|
anyway to disallow certain usergroups ??? - like admins etc
|
Quote:
|
Quote:
Ive clicked install anway as i like sound of your hack. |
Thanks
can you add also minimum post count option ? and this is work in 3.7.X ? |
No this for 3.8.x
i will release version tomorrow for 3.7.x |
NEW UPDATE
Quote:
YES lasto ! in your attachment.php search for PHP Code:
write your usergroup this will be have permission to see attachments without reply the thread example : PHP Code:
|
good hack
|
Thanks HBK
|
Why not using a Plugin instead editing the attachment.php? Create a Plugin and the right Hook. That's all
|
Quote:
|
UPDATED
|
this looks good.
Will try this later |
is there any way to get to use with the thanks button instead of a reply.?
|
Quote:
|
Quote:
|
Thanks MArco - I agree with BigChucky that it would be good if they could only download attachments by way of the following :
1 - Hit thanks button 2 - Reply to thread Now that would be the Best way |
thanks button option would be perfect!!
|
OK . i will do this
Thanks Guys |
great hack
and yes i am with the popular opinion for the thanks button and reply button:) installed:) |
Yes i develop the coding to work with post thanks
|
1 - Hit thanks button Very, very good!
Thank you! |
Quote:
|
Awesome hack, man! I give you props! I am going to install it tonight when I get home. :)
|
Quote:
|
Looking forward to the new version.
|
@MARCO1 one more suggestion "integrate download links with changes options in CP Adm"...
Are you prognostics for one update this mod...? Nice work...:up: |
Good idea. I can't wait to try it but will wait for updated version that includes thanks button. I clicked on install.
|
Quote:
This didnt work for me, i got an error.. Code:
Database error in vBulletin 3.8.0: PHP Code:
any ideas? |
Try To replace this line
PHP Code:
PHP Code:
|
Quote:
Thanks for helping but if i cant get this sorted im gonna have to uninstall. :confused: [edit] Infact it didnt work for anybody wanting to download after that code edit. They could reply to the thread 10 times and they still couldnt have downloaded the attachment. |
Any other ideas to prevent admin from having to reply?
|
OK that one seems to have got you stumped a little, how about being able to turn it off for a certain style?
|
Hi. Great plugin you have here. Is there a plugin or can you mod it so that it says they are require to have a certain number of posts before they are allowed to download?
|
This doesn't work in any way shape of form for me.
I've done the edit to the attachment.php. Is there supposed to be an option in VB Options or anywhere else in Admin CP? I think you need to elaborate on this a little more, maybe a better read me file. Also worth mentioning when I reply to the post I still get the Quote:
This includes all usergroups including Admin even with this line in the attachments.php Code:
if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='6".$vbulletin->userinfo[userid]."' AND threadid=$threadinfo[threadid]" ) ) : |
You need to remove the 6 from that line cos it doesnt work, infact it stops it from working altogether. As yet we havnt another solution to the Admin problem which is a shame cos this could be a really good mod for my forum.
|
If you want to prevent a usergroup or groups from having to reply to a thread before downloading attachment you need to do this..
Replace this code ... PHP Code:
PHP Code:
Changing x, y, z for your groups that dont need to reply. Hope that helps. Thanks to Lynne for her help. |
Quote:
Code:
Parse error: syntax error, unexpected '}' in /home/test/domains/test-forum.com/public_html/forum/attachment.php on line 193 Quote:
|
What's happen if you install the hack without any changes ? did it work ?
|
All times are GMT. The time now is 08:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|