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)

hollyboy 11-22-2005 08:41 PM

Quote:

Originally Posted by Chris M
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

what about it? :ermm:

Chris M 11-22-2005 08:44 PM

Ok - Try this:
Find:
PHP Code:

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

Above add:
PHP Code:

        // run the censor
        
$text fetch_censored_text($message);
        
$has_img_tag = ($do_bbcode $this->contains_bbcode_img_tags($text) : 0);
        if (
$has_img_tag)
        {
                
$message preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_url('\\1', '', 'url')"$message);
        } 

That should work :)

Chris

hollyboy 11-22-2005 08:50 PM

Quote:

Originally Posted by Chris M
Ok - Try this:
Find:
PHP Code:

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

Above add:
PHP Code:

        // run the censor
        
$text fetch_censored_text($message);
        
$has_img_tag = ($do_bbcode $this->contains_bbcode_img_tags($text) : 0);
        if (
$has_img_tag)
        {
                
$message preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe'"handle_bbcode_url('\\1', '', 'url')"$message);
        } 

That should work :)

Chris

didnt work :(
I still get the images in the quote, not its link

Chris M 11-22-2005 09:46 PM

Ok I have no clue then - It's baffling me...

I know I'm close but can't get it to work - I hate regular expressions :speechless:

Chris

hollyboy 11-24-2005 05:53 AM

any1 else can try maybe?

J82980BA3E43 11-24-2005 02:03 PM

who wants help our pleas :disappointed:

hollyboy 11-28-2005 10:51 AM

Quote:

Originally Posted by J82980BA3E43
who wants help our pleas :disappointed:


nobody :(

J82980BA3E43 11-30-2005 08:26 AM

Quote:

Originally Posted by hollyboy
nobody :(

Please help :disappointed:

J82980BA3E43 12-20-2005 06:00 PM

https://vborg.vbsupport.ru/external/2005/12/5.gifhttps://vborg.vbsupport.ru/external/2005/12/6.gif


All times are GMT. The time now is 02:49 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.01119 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
  • (4)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
  • (9)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