Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic any option to deactivate downloadable images? (Read 1816 times)
Magi
New Member
*
Offline


I Love YaBB 2.6.11!

Posts: 34
Joined: Jan 19th, 2018
any option to deactivate downloadable images?
Nov 1st, 2018 at 11:57am
Print Post  
Would like to know if there is an option to deactivate the download link from images in a post?

The picture shows the first picture with no link to the download, the second with donwload link.

Is there an option in the admin surface or can I edit it in a specific file?
  

2018-11-01_125429.png ( 614 KB | Downloads )
2018-11-01_125429.png
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 137
Joined: Apr 25th, 2012
Re: any option to deactivate downloadable images?
Reply #1 - Nov 1st, 2018 at 2:50pm
Print Post  
If an item has been uploaded as an attachment, it automatically has a download link. (Otherwise, why was it uploaded in the first place?)

Where to edit to remove this feature depends on what version of YaBB.
  
Back to top
WWW  
IP Logged
 
Magi
New Member
*
Offline


I Love YaBB 2.6.11!

Posts: 34
Joined: Jan 19th, 2018
Re: any option to deactivate downloadable images?
Reply #2 - Nov 1st, 2018 at 3:02pm
Print Post  
Well I am using YaBB 2.6.11

The reason is clearly logic for a normal forum but in the way I am using the forum itīs something what I like to change.  Wink
  
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I Love YaBB 2!

Posts: 137
Joined: Apr 25th, 2012
Re: any option to deactivate downloadable images?
Reply #3 - Nov 3rd, 2018 at 1:03pm
Print Post  
In Display.pm locate
Code
Select All
                        $showattach .=
qq~<div class="small attbox"><a href="$scripturl?action=downloadfile;file=$urlname" target="_blank"><img src="$attach_gif{$ext}" class="bottom" alt="" /> $_</a> ( ~ 



And make it

Code
Select All
                        $showattach .=
qq~<div class="small attbox">( ~ 



Note: this should only remove the text link for pictures and should not affect the greybox link.
  
Back to top
WWW  
IP Logged
 
Magi
New Member
*
Offline


I Love YaBB 2.6.11!

Posts: 34
Joined: Jan 19th, 2018
Re: any option to deactivate downloadable images?
Reply #4 - Nov 3rd, 2018 at 8:54pm
Print Post  
Works for me. Wink Many thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint