vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Inline Images (IMG) used inside QUOTE tags show up as links... (https://vborg.vbsupport.ru/showthread.php?t=93593)

ConqSoft 08-04-2005 02:02 PM

Inline Images (IMG) used inside QUOTE tags show up as links...
 
I searched but wasn't able to find anything.

Has anyone seen a hack/plug-in that will make inline images (IMG Tag) show up as a LINK if it's inside quote tags?

People tend to quote posts that have images in them, and the image shows up 10 times in the same thread. so I'd like to prevent that...

hollyboy 11-17-2005 04:10 PM

Looking for this too.
I remember I had found it for vb3 somewhere

hollyboy 11-20-2005 02:15 PM

none can help?

up :)

J82980BA3E43 11-21-2005 06:54 PM

yes i Looking for this too for Vbulletin 3.5 gold !!!

Chris M 11-21-2005 09:06 PM

Quote:

Originally Posted by hollyboy
Looking for this too.
I remember I had found it for vb3 somewhere

You don't remember where by any chance?

Chris

hollyboy 11-22-2005 12:40 AM

Quote:

Originally Posted by Chris M
You don't remember where by any chance?

Chris

no I dont :( and I've been searched a lot here

J82980BA3E43 11-22-2005 02:26 PM

Look here fore Vbulletin 3.7
https://vborg.vbsupport.ru/showthrea...3&page=1&pp=15

Chris M 11-22-2005 02:44 PM

Untested, but this should work for 3.5
Open /includes/class_bbcode.php
Find:
PHP Code:

        $template $this->printthread 'bbcode_quote_printthread' 'bbcode_quote';
        eval(
'$html = "' fetch_template($template) . '";'); 

add underneath:
PHP Code:

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

(this is using Zero Tolerance's code - I only found where to put it :p)

Chris

hollyboy 11-22-2005 08:16 PM

Quote:

Originally Posted by Chris M
Untested, but this should work for 3.5
Open /includes/class_bbcode.php
Find:
PHP Code:

        $template $this->printthread 'bbcode_quote_printthread' 'bbcode_quote';
        eval(
'$html = "' fetch_template($template) . '";'); 

add underneath:
PHP Code:

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

(this is using Zero Tolerance's code - I only found where to put it :p)

Chris

Fatal error: Call to undefined function: contains_bbcode_img_tags() in /home/interfan/public_html/forum/includes/class_bbcode.php on line 1290

Chris M 11-22-2005 08:35 PM

From /includes/class_bbcode.php:
PHP Code:

    /**
    * Determines whether a string contains an [img] tag.
    *
    * @param    string    Text to search
    *
    * @return    bool    Whether the text contains an [img] tag
    */
    
function contains_bbcode_img_tags($text)
    { 

Interesting...

Chris


All times are GMT. The time now is 03:50 PM.

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.02524 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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