PDA

View Full Version : Remove paperclip linking help please


Jollyware
07-05-2010, 02:16 PM
Hi, is there any way to stop the paperclip linking to the attachment in any post.

I have a mod installed that requires the user to make a thanks before the attachment is shown, but clicking on the paperlink takes you straight to the attachment and bypass the thanks system.

Thanks.

--------------- Added 1278353878 at 1278353878 ---------------

I have found this in threadbit, but not sure what to remove to take away the paperclip

<li class="threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$thread['postuserid'] AND !$thread['del_userid']"> guest</vb:if><vb:if condition="$thread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}">

Jollyware
07-08-2010, 05:59 PM
Any one any ideas on how this can be done ?

--------------- Added 1278660970 at 1278660970 ---------------

I have done it, you need to go into threadbit and comment out the following code

<a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a>

This will remove the paperclip and hyperlink.

Jerit2012
09-14-2014, 04:24 AM
Can you tell me what we need to edit ??. I have the same issue and disable the paper clip image from thread view

Jollyware
09-14-2014, 05:40 AM
You need to go into threadbit and comment out the following code

<a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a>

This will remove the paperclip and hyperlink.

This is what you need to do

Jerit2012
09-14-2014, 06:18 AM
I have checked my threadbit but the same above code used as default:

<a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a>

Can you check again please.. Thanks a lot for the response

Jollyware
09-14-2014, 06:22 AM
Comment it out so it doesn't run

Jerit2012
09-14-2014, 06:24 AM
Comment it out???. Can you explain?. I am newbee and not much experience

--------------- Added 1410680965 at 1410680965 ---------------

I have did like that and its worked i think:

<!-- a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a -->


Thanks a lot

Jollyware
09-14-2014, 06:55 AM
/* at the beginning of the line
*/ at the end of the line

eg /* CODE */

ozzy47
09-14-2014, 08:59 AM
/* at the beginning of the line
*/ at the end of the line

eg /* CODE */

No, that is for PHP, not HTML, you should use <vb:comment> STUFF TO BE COMMENTED OUT </vb:comment>