vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Strip BBCodes From Quotes (https://vborg.vbsupport.ru/showthread.php?t=318157)

MarkFL 04-07-2015 09:00 PM

Strip BBCodes From Quotes
 
1 Attachment(s)
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.

https://vborg.vbsupport.ru/attachmen...1&d=1437507359

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

Support for this product can be found here:

MarkFL 04-08-2015 05:15 AM

Reserved.

MarkFL 04-15-2015 05:20 AM

I found and fixed a serious flaw with this product as described above. :o

DSemen 04-18-2015 07:09 PM

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.

MarkFL 04-18-2015 09:16 PM

Quote:

Originally Posted by DSemen (Post 2543457)
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?

MarkFL 04-19-2015 01:46 AM

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. :D

DSemen 04-19-2015 08:48 AM

Quote:

Originally Posted by MarkFL (Post 2543476)
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 (Post 2543484)
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. :D

Is it possible to remove all the tags between brackets when empty?

https://vborg.vbsupport.ru/external/2015/04/10.jpg

MarkFL 04-19-2015 12:45 PM

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

Code:

<vb:if condition="$pagetext"></vb:if>

DSemen 04-19-2015 03:45 PM

Thank you.
Encountered an error: After answering a multi Quote checked with marked positions can not be removed! https://vborg.vbsupport.ru/external/2015/04/7.jpg

MarkFL 04-19-2015 03:58 PM

Quote:

Originally Posted by DSemen (Post 2543532)
Thank you.
Encountered an error: After answering a multi Quote checked with marked positions can not be removed! https://vborg.vbsupport.ru/external/2015/04/7.jpg

I am unable to reproduce this error. Can you describe exactly what you are doing?


All times are GMT. The time now is 09:46 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.01007 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete