Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #12  
Old 04-19-2015, 04:11 PM
DSemen DSemen is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I note a few posts (4 for example) for multi citation, I press the button "Reply to Thread" and answer.

In this case, a tick (previously marked) remain active.

They should be removed after the answer.
Reply With Quote
  #13  
Old 04-19-2015, 04:19 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
I note a few posts (4 for example) for multi citation, I press the button "Reply to Thread" and answer.

In this case, a tick (previously marked) remain active.

They should be removed after the answer.
Yes,when I reply, they are all unmarked for multi-quote just as they should be. Are you actually submitting the reply?

If so, try disabling the product, and see if this behavior persists...
Reply With Quote
  #14  
Old 04-19-2015, 04:23 PM
DSemen DSemen is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Behavior persists even when turned off.
Starts to work properly only after hack deleted
Reply With Quote
  #15  
Old 04-19-2015, 04:56 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The earliest version of vBulletin to which I have access is 4.2.0 PL3, and it behaves correctly just as vB 4.2.1 and vB 4.2.2 PL 4 do.

If other users of vB 4.1.x report this issue, then I will mark this product for 4.2.x only.
Reply With Quote
  #16  
Old 04-19-2015, 05:53 PM
nosaes nosaes is offline
 
Join Date: Mar 2015
Location: Florida
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting the following error:
Quote:
Fatal error: require_once(): Failed opening required '/home/rogcommunity/public_html/forums/stripbbcodesfromquotes/striptagsfromquotes.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rogcommunity/public_html/forums/includes/functions_newpost.php(1663) : eval()'d code on line 1
Any idea how to resolve this?

Edit: I'm on 4.2.2
Reply With Quote
  #17  
Old 04-19-2015, 06:07 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 nosaes View Post
I'm getting the following error:

Quote:
Fatal error: require_once(): Failed opening required '/home/rogcommunity/public_html/forums/stripbbcodesfromquotes/striptagsfromquotes.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rogcommunity/public_html/forums/includes/functions_newpost.php(1663) : eval()'d code on line 1
Any idea how to resolve this?

Edit: I'm on 4.2.2
Did you upload the contents of the "upload" folder to your forum's root directory (where forum.php resides)?

edit: To everyone asking for support, please click "Mark As Installed."
Reply With Quote
  #18  
Old 04-19-2015, 07:10 PM
nosaes nosaes is offline
 
Join Date: Mar 2015
Location: Florida
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Did you upload the contents of the "upload" folder to your forum's root directory (where forum.php resides)?

edit: To everyone asking for support, please click "Mark As Installed."
Oh. Thank you, I feel pretty silly now. Works great!

Marked as installed.
Reply With Quote
Благодарность от:
MarkFL
  #19  
Old 04-19-2015, 07:13 PM
DSemen DSemen is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
The earliest version of vBulletin to which I have access is 4.2.0 PL3, and it behaves correctly just as vB 4.2.1 and vB 4.2.2 PL 4 do.

If other users of vB 4.1.x report this issue, then I will mark this product for 4.2.x only.

Maybe you can help this file
P.S. Marked as installed. Nominate for Modification of the Month
Attached Files
File Type: php functions.php (226.5 KB, 10 views)
Reply With Quote
  #20  
Old 04-22-2015, 03:45 PM
DSemen DSemen is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
The earliest version of vBulletin to which I have access is 4.2.0 PL3, and it behaves correctly just as vB 4.2.1 and vB 4.2.2 PL 4 do.

If other users of vB 4.1.x report this issue, then I will mark this product for 4.2.x only.
This product is not working properly in these versions, check.
Attached Images
File Type: jpg 1.jpg (68.2 KB, 0 views)
File Type: jpg 2.jpg (47.9 KB, 0 views)
File Type: jpg 3.jpg (59.0 KB, 0 views)
File Type: jpg 4.jpg (78.7 KB, 0 views)
Reply With Quote
  #21  
Old 04-22-2015, 04:25 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
This product is not working properly in these versions, check.
I don't use the quick edit option because on the forums with which I am involved we use LaTeX rendering by MathJax, and the quick reply/edit simply do not work well with it. My users like for their LaTeX to be rendered after posting or making an edit without having to manually refresh the page.

However, when I enable the quick reply on my local dev site, I do see the behavior you have indicated. but I see this behavior even with my product uninstalled. I must therefore conclude that it is behavior intrinsic to vBulletin 4.2.x. As I said above, I don't have access to vBulletin 4.1.x and so I can't say whether that version behaves in this way or not.
Reply With Quote
Reply

Thread Tools

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 03:41 AM.


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.04705 seconds
  • Memory Usage 2,353KB
  • Queries Executed 28 (?)
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
  • (8)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete