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)

dmark101 12-14-2005 05:54 PM

Quote:

Originally Posted by hollyboy
this dont work for vb 3.5 :(

can someone PM the guy who made the hack and see if it can be done for vB 3.5.x?

:)

Scootro 03-13-2006 08:46 PM

Thanks. Installed.

The Fathom 06-28-2006 04:12 PM

Will this work in 3.5 too?

Protonus 08-19-2006 07:52 AM

I would love to see this ported to 3.6!

masalaman 09-01-2006 03:14 AM

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


Protonus 09-07-2006 06:50 AM

Masalaman: Thank you so much for taking the time to work on this. I tried your above steps and unfortunatly cannot get it to work. It seems to do nothing difference to new or existing quotes containing [img] tags :-( Nothing seems broke, just doesn't work. I made sure that I added the code you list right after the existing command you mention, while in the correct function. It all looks good. I see no other mentions of the quote function elsewhere in this file either...

Is there something I have to do to "activate" this per se? I would think it would work on th fly... Let me know if I'm missing something, thanks!

Protonus 09-20-2006 06:53 PM

bump? Anyone know how to get this to work in 3.6.0? The above hack didnt' work when I tried it.

indiancinema 10-21-2006 12:38 AM

any updates

masalaman 10-25-2006 03:29 AM

It works fine for me. Images in quote are shown as just hyperlinks on my forum. Protonus, have you copied the code multiple times? It must be copied after every instance of the line below.

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

indiancinema 10-25-2006 11:11 PM

working thank u


All times are GMT. The time now is 10:37 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.01207 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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