vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Disable [IMG] In [QUOTE] Tags (https://vborg.vbsupport.ru/showthread.php?t=77173)

cunder 03-13-2007 01:37 PM

Quote:

Originally Posted by Zia (Post 1195595)
helo any one...can say the process for
vb3.6.5 ?


I use these at vb3.6.5 :)

Zia 03-30-2007 04:30 PM

Helo cunder
do u install it on 3.6.5

or u got that b4 upgrade to 3.6 ?

amcd 01-10-2008 06:18 AM

Quote:

Originally Posted by cunder (Post 1202522)
I use these at vb3.6.5 :)

http://srv.xboard.us/images/smilies/adore.gif

stwilson 02-18-2008 02:18 AM

I tried this on 3.7 but no go. Anyone know of a more current version of this MOD???

dmark101 05-24-2008 03:07 AM

the plugin attached above gave my board all kinds of fits, so if someone came up with a simple code for this to work, that would be awesome.

thaigan 07-27-2008 01:43 AM

You should only need to do this after the one line. Make sure that when you copied it in, it didn't end up with linebreaks in the wrong places. I'm not sure it will automatically work on posts that have been already made, though, it should work on new quoted replies.

Videx 10-19-2008 02:37 AM

Any chance we could see this mod as a Product? I mean, I really hate the thought of having to do these edits every time I update.

kingMOB 02-18-2009 09:10 AM

Quote:

Originally Posted by masalaman (Post 1065331)
We have to do this a bit different in 3.6.0.

1). Open "includes/class_bbcode.php"

2). Find function handle_bbcode_quote

3). Within function "handle_bbcode_quote" find the line below. This line is there at several places so make sure you found the right one.

eval('$html = "' . fetch_template($template) . '";');

4). Add the code below right after the above line.

Code:

                //### HACK BEGIN - Turn [img] to [url]
                if ($this->contains_bbcode_img_tags($html))
                {
                        $html = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_url(str_replace('\\\"', '\"', '\\1'), '')", $html);
                }
                //### HACK END


Thanks masalaman, works perfectly.

Now, is there a way to just put a spoiler tag around the images in a quoted post? Not replace the image with the link, just a spoiler tag around it.


All times are GMT. The time now is 10:32 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,730KB
  • 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
  • (3)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
  • (8)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