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. :(

al3beer 06-19-2009 02:16 AM

fantastic MARCO1

&

so thanks

lasto

for idea

4nawadir.com 07-22-2009 06:31 PM

Thanks MARCO
Installed

maupassant 08-17-2009 04:38 AM

We've tested this tonight and we like it except for one thing :
The thumbnails are not showing when it's on. Is there a way to fix this ?
:confused:

Thanks.

hqlman 08-18-2009 12:42 AM

Still waiting on new update, to allow download only after pressing thank you button :)

yahoooh 08-18-2009 06:57 AM

suggestion :
user who write the thread and attach file can choose if make people to dwonload without reply or have to reply
and this ofcourse if he use to prevent people from download before reply m it will prevent user unregistered to dowbload untill them register and reply
and if unregistered usergroup prevented from download untill they register there are will be only error message to user registered and reply if he choose"have to reply to download"

this should be only for files not images
thank u

Willy T 11-21-2009 08:12 AM

Anything more about working with the Post Thanks hack?

MARCO1 11-21-2009 05:10 PM

Quote:

Originally Posted by Willy T (Post 1918186)
Anything more about working with the Post Thanks hack?

This Mod Is no longer support, however I have released MARCO1 Hide All for all vB4 series

JGreig 01-18-2010 03:55 PM

Is it possible to limit this to just 1 forum or thread and if so how would that be done?

haytham 04-24-2010 08:03 AM

Quote:

Originally Posted by MARCO1 (Post 1729532)
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" 


Didn't work for me.

haytham 04-24-2010 08:05 AM

Quote:

Originally Posted by MARCO1 (Post 1918423)
This Mod Is no longer support, however I have released MARCO1 Hide All for all vB4 series

Has anyone tried with 3.8? The mod is working perfectly as is just that Admins also have to reply which is annoying.

ronaldkeaton 07-03-2010 06:15 PM

Dear brother,
This mod has problems:
1. Uncompatible with UTF-8 (Charset uncompatible)

2. How to modifify this MOD to show a message box

http://cA4.upanh.com/9.225.13455007.PVC0/postVBBORG.png

Istead of showing this page:

http://cA2.upanh.com/9.225.13455017.SBZ0/1.jpg

Ichigo88 05-08-2011 07:49 PM

Quote:

Originally Posted by MARCO1 (Post 1738493)
Yes i develop the coding to work with post thanks

2 years have passed but I can not see the hack, what is with this promise?


All times are GMT. The time now is 07:47 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.01137 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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