The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to hide all attachments (Images / Video / Links) from Guests
Hi
I am trying to find out the best way to hide all attachments (Images / Video / Links) from Guests. Pretty much exactly like the plugin sections is set-up here on vBulletin.org, that you must be logged in to see them or link off them. Cheers John --------------- Added [DATE]1337835780[/DATE] at [TIME]1337835780[/TIME] --------------- I have tried this plugin already and it didnt do anything. https://vborg.vbsupport.ru/showthread.php?t=256054 |
#2
|
|||
|
|||
Same problem, up,
thank you |
#3
|
||||
|
||||
Can you not just use permissions for this? in user-group Manger.
|
#4
|
|||
|
|||
Do you mean disable [IMG] option in every forum? But like this instead of the image it shows the clickable link of the image.
Or you have another idea? If so, please share, thanks |
#5
|
||||
|
||||
you can't hide the attachments with userpermissions. You can only disalow the downloading.
|
#6
|
|||
|
|||
Ah, and how can I do this?
|
#7
|
||||
|
||||
you have to use a conditional if to do that.
open postbit legacy search for: Code:
<vb:if condition="$show['attachments']"> <div class="attachments"> <vb:if condition="$show['thumbnailattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend> {vb:raw post.thumbnailattachments} </fieldset> </vb:if> <vb:if condition="$show['imageattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_images}" /> {vb:rawphrase attached_images}</legend> {vb:raw post.imageattachments} </fieldset> </vb:if> <vb:if condition="$show['imageattachmentlink']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_images}" /> {vb:rawphrase attached_images}</legend> <ul> {vb:raw post.imageattachmentlinks} </ul> </fieldset> </vb:if> <vb:if condition="$show['otherattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_files}" /> {vb:rawphrase attached_files}</legend> <ul> {vb:raw post.otherattachments} </ul> </fieldset> </vb:if> <vb:if condition="$show['moderatedattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attachments_pending_approval}" /> {vb:rawphrase attachments_pending_approval}</legend> <ul> {vb:raw post.moderatedattachments} </ul> </fieldset> </vb:if> </div> <!-- / attachments --> </vb:if> Code:
<vb:if condition="$show['attachments']"> <div class="attachments"> <vb:if condition="$show['guest']"> Please <a href="register.php">register</a> or login to download attachments. <vb:else /> <vb:if condition="$show['thumbnailattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend> {vb:raw post.thumbnailattachments} </fieldset> </vb:if> <vb:if condition="$show['imageattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_images}" /> {vb:rawphrase attached_images}</legend> {vb:raw post.imageattachments} </fieldset> </vb:if> <vb:if condition="$show['imageattachmentlink']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_images}" /> {vb:rawphrase attached_images}</legend> <ul> {vb:raw post.imageattachmentlinks} </ul> </fieldset> </vb:if> <vb:if condition="$show['otherattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_files}" /> {vb:rawphrase attached_files}</legend> <ul> {vb:raw post.otherattachments} </ul> </fieldset> </vb:if> <vb:if condition="$show['moderatedattachment']"> <fieldset class="postcontent"> <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attachments_pending_approval}" /> {vb:rawphrase attachments_pending_approval}</legend> <ul> {vb:raw post.moderatedattachments} </ul> </fieldset> </vb:if> </vb:if> </div> <!-- / attachments --> </vb:if> Attachment 140191 NOTE: this does not work if you show attachments inline. In that case you have to use a hide mod. https://vborg.vbsupport.ru/showthread.php?t=282328 or https://vborg.vbsupport.ru/showthread.php?t=266744 |
#8
|
|||
|
|||
Maybe I don't understand: I use inline attachment system, and mods linked talk about hide code and html, not images.
See this for example: www.baltazar.it/notizie/435298-le-belle-dello-sport.html#post926297 To let only registered members see this image I need a mod or just edit the postbitlegacy code? Thank you again |
#9
|
||||
|
||||
|
#10
|
|||
|
|||
I cannot see the first example in the attached you post.
But - for what I can see - there is not a "register or login to see the attached". Is it correct? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|