Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Strip BBCodes From Quotes Details »»
Strip BBCodes From Quotes
Version: 1.3, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 04-07-2015 Last Update: 07-20-2015 Installs: 15
Uses Plugins
Additional Files Translations  
No support by the author.

This simple hack allows you to define a list of BBCode tags and their content that you want to be stripped from the body of posts quoted by your users. This eliminates the repeated and unnecessary posting of images, videos and other such media.

Update: version 1.1
  • Fixed serious flaw whereby post content was stripped of BBCodes when previewing the post. I now have the correct hook location, and I apologize for any inconvenience to anyone.

Update: version 1.2
  • The function that actually strips the BBCode tags and their content from quoted posts has been moved to an external PHP file, so that it can be used by other products. There is no change in functionality.

Update: version 1.3
  • Select usergroups may now be exempted from the stripping of BBCode tags from quoted posts.

To Install:

Download and extract the attached zip file, then upload the contents of the "upload" folder to your forum's root directory.

In AdminCP, go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was included in the .zip file.

Click "Import"

You MUST set your settings to enable the mod. Each setting has an explanation of its use.



The default list of tags is: attach,img,video

Support for this product can be found here:

Download Now

File Type: zip MarkFL - Strip BBCodes From Quotes v1.3.zip (4.3 KB, 45 views)

Screenshots

File Type: png sbfqacp.png (42.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-08-2015, 05:15 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
  #3  
Old 04-15-2015, 05:20 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found and fixed a serious flaw with this product as described above.
Reply With Quote
  #4  
Old 04-18-2015, 07:09 PM
DSemen DSemen is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, was looking like.
Is it possible to adapt to version 4.1.3?
In my case, after the installation does not work multi citation.
Reply With Quote
  #5  
Old 04-18-2015, 09:16 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DSemen View Post
Thanks, was looking like.
Is it possible to adapt to version 4.1.3?
In my case, after the installation does not work multi citation.
Can you give me a link to your site and a test account to use so I can see how it behaves?
Reply With Quote
  #6  
Old 04-19-2015, 01:46 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the new version 1.2, there is no change in how the product functions, I have simply put the PHP function that strips the tags and their content into an external file so that a new product I will be uploading soon can use it as well.
Reply With Quote
  #7  
Old 04-19-2015, 08:48 AM
DSemen DSemen is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Can you give me a link to your site and a test account to use so I can see how it behaves?
Thank you very much! In version 1.2, everything works without error
Quote:
Originally Posted by MarkFL View Post
In the new version 1.2, there is no change in how the product functions, I have simply put the PHP function that strips the tags and their content into an external file so that a new product I will be uploading soon can use it as well.
Is it possible to remove all the tags between brackets when empty?

Reply With Quote
  #8  
Old 04-19-2015, 12:45 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, edit your "newpost_quote" template to wrap the following conditional around the existing code:

Code:
<vb:if condition="$pagetext"></vb:if>
Reply With Quote
  #9  
Old 04-19-2015, 03:45 PM
DSemen DSemen is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.
Encountered an error: After answering a multi Quote checked with marked positions can not be removed!
Reply With Quote
  #10  
Old 04-19-2015, 03:58 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DSemen View Post
Thank you.
Encountered an error: After answering a multi Quote checked with marked positions can not be removed!
I am unable to reproduce this error. Can you describe exactly what you are doing?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04998 seconds
  • Memory Usage 2,321KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete