vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Members Can't Download Attachments Before Reply - Or X Usergroup (https://vborg.vbsupport.ru/showthread.php?t=233333)

MARCO1 01-16-2010 10:00 PM

Members Can't Download Attachments Before Reply - Or X Usergroup
 
1 Attachment(s)
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. :D

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!


Kolbi 01-17-2010 11:08 AM

Thank you!

Trip 01-17-2010 01:03 PM

I'm not running 4.0x, but if your screens indicate exactly as your mod displays. The word "reply" has a typo.

Zaiaku 01-17-2010 01:50 PM

Very nice! great work.

Quale 01-17-2010 02:35 PM

3.8.x Please! haha (:

or anyone know a similar mod/hack that does this for 3.8.x?

Namaless 01-17-2010 04:17 PM

Quote:

Originally Posted by Quale (Post 1958216)
3.8.x Please! haha (:

or anyone know a similar mod/hack that does this for 3.8.x?

Simple, upgrade your board to v4 :)

MARCO1 01-17-2010 05:04 PM

Quote:

Originally Posted by Quale (Post 1958216)
3.8.x Please! haha (:

or anyone know a similar mod/hack that does this for 3.8.x?

I will release new Mod with 3.X.

Quale 01-17-2010 09:56 PM

Quote:

Originally Posted by MARCO1 (Post 1958374)
I will release new Mod with 3.X.

:up:

cooltechie 01-19-2010 04:16 AM

Hope to give this a try. Tagged.

3DUInc 01-19-2010 06:13 AM

Thank you very much! :)

ARP 01-19-2010 01:06 PM

Waw, You are great Man.

Sure Installed, Nominated.

Also https://vborg.vbsupport.ru/external/2012/01/12.gif

MARCO1 01-21-2010 01:15 PM

You are welcome Steve and thanks for your great suggests :)

Allan 01-21-2010 07:36 PM

1 Attachment(s)
French language :)

Translator: BillyBoule (Team vBr)
Thread: http://www.vbulletin-ressources.com/...ad.php?t=19137

Valter 01-23-2010 12:38 PM

Users will not see the list of attached files but they are able to download them if attachmentid is known.

tini_lam 01-23-2010 03:45 PM

have mod allow member download after have x post ?

MARCO1 01-23-2010 04:05 PM

Quote:

Originally Posted by Allan (Post 1962686)
French language :)

Translator: BillyBoule (Team vBr)
Thread: http://www.vbulletin-ressources.com/...ad.php?t=19137

Thanks Allan, First post updated.

MARCO1 01-23-2010 04:05 PM

Quote:

Originally Posted by tini_lam (Post 1964487)
have mod allow member download after have x post ?

No.

mobilewo 02-28-2010 05:02 AM

Database error
The myforum database has encountered a problem
help me

skontakt 03-28-2010 12:02 AM

I have Database error too.

Could somebody help fix this problem!?

parks72 04-14-2010 11:52 PM

thank you.................

shempsall2009 04-29-2010 10:45 PM

Hi, can you make an addon for this Mod so the attachments can be viewed if the thanks button is pressed??? Ver 4.0.3..

Thanks,

abu-mejbel 05-15-2010 06:23 AM

1 Attachment(s)
Thanks my brother on nice product

+ Product in Arabic in the Attachment

click here

MARCO1 05-23-2010 07:33 AM

Thanks Abu-mejbel :)

OQP 06-22-2010 05:49 AM

Database Error...

wolfiejp 06-23-2010 01:50 AM

Hi nice mod just what i was after, now if you have the time can you get this to work with the thanks button like with this one [AJAX] Post Thank You Hack

Thanks

wolfie

khanh.phanvan 06-23-2010 02:54 AM

hi,
Mod Members Can't Download Attachments Before button thanks
help me please.

Jollyware 06-27-2010 06:41 AM

Will this work with attachments or is it just a BBCode.

Jollyware 06-27-2010 06:57 AM

I cant seem to get this mod to work, have installed it, but cannot see any options anywhere to hide the attachments.

Am I being blind ?

Jollyware 06-29-2010 05:10 AM

Is there anyone that can help on this please, I have the mod activated, but all attachements are still visible.

I am really desperate to get this working, please help.

jambo_1969 07-03-2010 03:54 PM

Quote:

Originally Posted by Jollyware (Post 2061485)
Is there anyone that can help on this please, I have the mod activated, but all attachements are still visible.

I am really desperate to get this working, please help.

Have you checked in the usergroups options ?

There (and I haven't installed this, so don't know) may be an option for say, Registered Users to have this applied - it's most likely set to no by default.

to_die4 01-05-2011 02:51 PM

Works very well, thank you.

Da-Vinci 01-08-2011 02:36 PM

Seems to have stopped working in 4.1.0 PL2, any chance you could look at this please Marco1

Bob Albion 01-09-2011 05:18 PM

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

Da-Vinci 01-09-2011 05:31 PM

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 (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" 


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.

smoggy07 01-09-2011 06:06 PM

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

bd1 01-09-2011 06:49 PM

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.

Guru Samrat 10-09-2011 09:49 AM

not working with 4.0.3

Guru Samrat 10-24-2011 02:59 PM

not work in 4.0.3

ywwz 06-13-2012 02:27 PM

4.2.0???? anyone?

faisaly.com 07-18-2012 11:21 PM

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


All times are GMT. The time now is 03:19 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.01380 seconds
  • Memory Usage 1,834KB
  • 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
  • (5)bbcode_php_printable
  • (7)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
  • (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