Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Members Can't Download Attachments Before Reply - Or X Usergroup Details »»
Members Can't Download Attachments Before Reply - Or X Usergroup
Version: 1.5, by MARCO1 MARCO1 is offline
Developer Last Online: Jan 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.x Rating:
Released: 01-16-2010 Last Update: Never Installs: 70
Uses Plugins Auto-Templates
 
No support by the author.

Members Can't Download Attachments Before Reply
Or X Usergroup


As ARP Request, He want a separate Mod From MARCO1 Hide All to prevent members or X usergroup to download the Attachments before reply.

Features :
  • Hide Attachments before reply for Members.
  • Hide Attachments for guests.
  • Hide Attachments for X Usergroup can edit from admincp.
  • Message Manager : To edit the No Attachments Phrase.
  • Working with all vBulletin 4.X Versions.
Mod Info :
  • Coder : MARCO1
  • Version : 1.5
  • vBulletin Compatible Versions : All vBulletin 4.x versions
  • Installation time : 2 Seconds
Install :
Auto-installation Just upload the Mod from AdminCp.

Screen-shots & Download :
In Attachments, Remember you can't download this attach before Mark As Installed.

Translations :
You didn't have any permission to translate or edit or copy any part of this Mod, You should contact me first via PM, Just to let me know you will translate or edit in this Mod.

French Version By Allan here : https://vborg.vbsupport.ru/showpost....6&postcount=13

Don't Forget to Mark As Installed.
To Get the new updates and support!

Download Now

File Type: zip Members Can't download Attachments before reply.zip (1.4 KB, 493 views)

Screenshots

File Type: jpg 8.jpg (49.1 KB, 0 views)
File Type: jpg 9.jpg (59.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
kizy

Comments
  #32  
Old 01-05-2011, 02:51 PM
to_die4 to_die4 is offline
 
Join Date: Nov 2010
Location: London, UK
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works very well, thank you.
Reply With Quote
  #33  
Old 01-08-2011, 02:36 PM
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems to have stopped working in 4.1.0 PL2, any chance you could look at this please Marco1
Reply With Quote
  #34  
Old 01-09-2011, 05:18 PM
Bob Albion Bob Albion is offline
 
Join Date: Mar 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same as above .. MARCO1 could please look at this as soon as you can its needed asap
And i know as Pearson of your infinite talent could get this going again in no time what so ever

Regs
Bob
Reply With Quote
  #35  
Old 01-09-2011, 05:31 PM
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So I've been trying to get this fixed, so looked at your older version of this mod here.

https://vborg.vbsupport.ru/showthread.php?t=203634

And noticed this reply by you.

Quote:
Originally Posted by MARCO1 View Post
NEW UPDATE


YES lasto !

in your attachment.php

search for

PHP Code:
   if ( !$vbulletin->db->query_first "SELECT postid FROM " TABLE_PREFIX "post WHERE userid='".$vbulletin->userinfo[userid]."'  AND threadid=$threadinfo[threadid]) ) : 
and in ( post WHERE userid='" )
write your usergroup this will be have permission to see attachments without reply the thread

example :
PHP Code:
post WHERE userid='2,3,4,5,6" 
Rather than edit the attacment.php I noticed the hooks exist in the plugin code, so I tried to replicate it like this.

PHP Code:
global $db ,$vbulletin;
                
$p=$db->query_first("SELECT userid from post where threadid='$post[threadid]'  AND userid=22,24,25" $vbulletin->userinfo[userid] . "");
                
$m=$p[userid];
                if(
$vbulletin->userinfo[userid]!= $m AND can_moderate($forumid'canremoveposts') == false or $vbulletin->userinfo[userid] == 0)
                {
                               eval(
'$this->post[\'imageattachmentlinks\'] = $vbphrase[MARCO1_At];');
                               eval(
'$this->post[\'thumbnailattachments\'] = $vbphrase[MARCO1_At];');
                               eval(
'$this->post[\'imageattachments\'] = $vbphrase[MARCO1_At];');
                               eval(
'$this->post[\'otherattachments\'] = $vbphrase[MARCO1_At];');
                               eval(
'$this->post[\'moderatedattachments\'] = $vbphrase[MARCO1_At];');
                }
  } 
The 3 usergroups I want to allow to to download attachments without replying are 22, 24 & 25 and of course the 3 staff usergroups 5, 6 & 7, but I believe the staff usergroups are covered by this statement.

PHP Code:
                if($vbulletin->userinfo[userid]!= $m AND can_moderate($forumid'canremoveposts') == false or $vbulletin->userinfo[userid] == 0
Looking at the attachment.php I don't see the same hook info.

PHP Code:
        $attachmentinfo $db->query_first_slave("
            SELECT filedataid, SUBSTRING(" 
. ((!empty($vbulletin->GPC['thumb']) ? 'thumbnail' 'filedata')) . ", $startbyte + 1, $readsize) AS filedata
            FROM " 
TABLE_PREFIX "filedata
            WHERE filedataid = 
$attachmentinfo[filedataid]
        "
); 
Anyway, I still haven't been able to get this to work so any help or updates would be greatly appreciated.
Reply With Quote
  #36  
Old 01-09-2011, 06:06 PM
smoggy07 smoggy07 is offline
 
Join Date: Feb 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as the members above have said, is there any chance on an update for 4.1.0 pl2 as i have just noticed this has stopped working?

thanks in advanced

smoggz
Reply With Quote
  #37  
Old 01-09-2011, 06:49 PM
bd1 bd1 is offline
 
Join Date: Jan 2011
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks for your hard work Marco is there any chance on an update for 4.1.0 pl2.Cos my forum needs it and is such a useful way to keep tabs on all that input stuff to my site.
Reply With Quote
  #38  
Old 10-09-2011, 09:49 AM
Guru Samrat Guru Samrat is offline
 
Join Date: Mar 2011
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working with 4.0.3
Reply With Quote
  #39  
Old 10-24-2011, 02:59 PM
Guru Samrat Guru Samrat is offline
 
Join Date: Mar 2011
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not work in 4.0.3
Reply With Quote
  #40  
Old 06-13-2012, 02:27 PM
ywwz ywwz is offline
 
Join Date: Jul 2009
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.2.0???? anyone?
Reply With Quote
  #41  
Old 07-18-2012, 11:21 PM
faisaly.com faisaly.com is offline
 
Join Date: Mar 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works on 4.2.0 fine but hides screenshots and attachment files... is there a way so it wont hide the screenshot attachments...

Members don't like to reply just to see screenshots first...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09901 seconds
  • Memory Usage 2,359KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete