vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Remove paperclip linking help please (https://vborg.vbsupport.ru/showthread.php?t=245926)

Jollyware 07-05-2010 02:16 PM

Remove paperclip linking help please
 
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 [DATE]1278353878[/DATE] at [TIME]1278353878[/TIME] ---------------

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

Code:

<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 [DATE]1278660970[/DATE] at [TIME]1278660970[/TIME] ---------------

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

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

Quote:

Originally Posted by Jollyware (Post 2066439)
You need to go into threadbit and comment out the following code

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:

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>
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 [DATE]1410680965[/DATE] at [TIME]1410680965[/TIME] ---------------

I have did like that and its worked i think:

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

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

Quote:

Originally Posted by Jollyware (Post 2515123)
/* 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>


All times are GMT. The time now is 07:18 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.01096 seconds
  • Memory Usage 1,731KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete