vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - Members Can't Download Attachments Before Reply (https://vborg.vbsupport.ru/showthread.php?t=203634)

Davros 03-30-2009 09:19 PM

No not quite, after replying and hitting the attachment button, I was still getting the message.

MARCO1 03-30-2009 09:32 PM

Can you send your admincp info To PM For Me. So i will check it for you

Davros 03-30-2009 09:44 PM

Well I've actually got it working now, but theirs still no permission options, IE: every member group needs to reply to be able to download.

I'll try adding the custom code posted by Powlo again.

Thanks for helping with this.

I'll let you know how I get on.

MARCO1 03-30-2009 10:30 PM

Glad to hear that Davros :)
Waiting your feedback :D

Davros 03-30-2009 11:29 PM

Right with a bit of help from Stelthius I got this sorted.

Find this

Code:

// check if there is a forum password and if so, ensure the user has it set
Add Above it

Code:

if (!is_member_of($vbulletin->userinfo, 5,6,7))
{
  if ( !$vbulletin->db->query_first ( "SELECT postid FROM " . TABLE_PREFIX . "post WHERE userid='".$vbulletin->userinfo[userid]."'  AND threadid=$threadinfo[threadid]" ) ) : 
                        eval('print_output("' . fetch_template('MARCO1 Cant See Attach') . '");'); 
                endif ;

Find this

Code:

?>
Add above it

Code:

}
All working If you need to add any additional usergroups just add them onto to the bit of code that's highlighted in Red separate them with ,

firas 03-31-2009 04:28 AM

can we chose which forums this addin works on?

OcR Envy 05-22-2009 12:30 PM

I'd love too see a version of this that hides a poll until someone replies!

aakhan136 05-28-2009 03:44 PM

thanks

nando99 06-04-2009 01:26 AM

Does this work on images with thumbs? Like will the thumbs show but will give an error message when clicked for full size if the user hasn't replied?

kent_lkc 06-18-2009 02:24 PM

installed but nothing happens. :(


All times are GMT. The time now is 03:36 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.01032 seconds
  • Memory Usage 1,727KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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