vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom parsing IMG tag in Signatures (https://vborg.vbsupport.ru/showthread.php?t=66276)

CarlitoBrigante 06-18-2004 01:18 PM

Custom parsing IMG tag in Signatures
 
Hi all!

I hope this isn't too difficult to do. I want to parse images posted in signatures differently from those posted in the post field. For example, let's say I want image in signatures to all have a special IE glow effect (this is just an example).


In functions_bbcodeparse.php, there is this function

Code:

// ###################### Start handle_bbcode_img_match #######################
// this is only called by handle_bbcode_img
function handle_bbcode_img_match($link)
{
        $link = strip_smilies(str_replace('\\"', '"', $link));

        // remove double spaces -- fixes issues with wordwrap
        $link = str_replace('  ', '', $link);

        return '<img src="' .  $link . '" border="0" alt="" />';
}

Basically I need some switch to return different html code if the image is going to be displayed in a signature.

Hope I was clear!

CarlitoBrigante 06-19-2004 09:49 AM

Quote:

Originally Posted by CarlitoBrigante
Hi all!

I hope this isn't too difficult to do. I want to parse images posted in signatures differently from those posted in the post field. For example, let's say I want image in signatures to all have a special IE glow effect (this is just an example).


In functions_bbcodeparse.php, there is this function

Code:

// ###################### Start handle_bbcode_img_match #######################
// this is only called by handle_bbcode_img
function handle_bbcode_img_match($link)
{
        $link = strip_smilies(str_replace('\\"', '"', $link));

        // remove double spaces -- fixes issues with wordwrap
        $link = str_replace('  ', '', $link);

        return '<img src="' .  $link . '" border="0" alt="" />';
}

Basically I need some switch to return different html code if the image is going to be displayed in a signature.

Hope I was clear!

Anyone? Is it difficult to do?

CarlitoBrigante 06-21-2004 01:53 PM

Quote:

Originally Posted by CarlitoBrigante
Anyone? Is it difficult to do?

Bumpity bump!

CarlitoBrigante 06-24-2004 01:02 PM

Quote:

Originally Posted by CarlitoBrigante
Bumpity bump!

I asked to the staff, but they redirected me to vbulletin.org... is it that difficult??

CarlitoBrigante 07-01-2004 10:00 AM

Quote:

Originally Posted by CarlitoBrigante
I asked to the staff, but they redirected me to vbulletin.org... is it that difficult??

Please guys and gals, nobody seems able to do this!!!


All times are GMT. The time now is 11:15 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.00949 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete