vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How To Stop Link Parsing In BBcode? (https://vborg.vbsupport.ru/showthread.php?t=236828)

Brew 02-25-2010 01:07 AM

How To Stop Link Parsing In BBcode?
 
I am trying to create a BBcode to force an image to the left of text by creating a new BBcode called [IMGL]. (I'm updating an old mod from borgs8472 with his approval).

The problem I am having is that the editor automatically parses the text and inserts it's own [url] tags.

As an example. In the Replacement input box for creating a new BBcode :

HTML Code:

<div style="float: left; padding-right: 8px;"> {param} </div>
The above code comes out as:

HTML Code:

[IMGL][url]http://url to image[/url][/IMGL]
I need it so when {param} = 'url to image' the actual image is displayed instead of a link to the image, which is [IMG] instead of [url] tags.

The only way I know to do this is to turn off auto parsing for links. But I don't see that as an option for me to do.

What can I do to make the software do what I need without turning off parsing?

Here...try this at home....

Create New BBcode:

Title .... Float Left
BB Code Tag Name.....imgl
Replacement.......<div style="float: left; padding-right: 8px;">[IMG]{param}[/IMG]</div>
Example...... [imgl]url to image[/imgl]
Description.... Float an image to the left, wrap text around it!
Button Image (Optional) .... Any 21 x 20 image for testing this.

Then use the new bbcode with a url to an image and type a few paragraphs of text.

The text will float to the right but it's a link, instead of an image.

I've tried all the tricks I know and I am hoping someone out there will give me a few pointers on what the system is doing and how to work around it.


Thanks for any and all help

--------------- Added Wednesday 24th of February 2010 at 11:53:26 PM ---------------

Digging around I found what should be a cool BBcode. It's supposed to stop the forum from parsing between the code....I think.

HTML Code:

[noparse][/noparse]
But...I haven't figured out how to use it, let alone whether it actually works.

Any ideas?

brandondrury 03-03-2012 06:27 PM

Did you ever figure this one out?

Brandon

nhawk 03-03-2012 08:39 PM

I think this..

Code:

<div style="float: left; padding-right: 8px;">[IMG]{param}[/IMG]</div>
Should be this..
Code:

<div style="float: left; padding-right: 8px;"><img src="{param}" /></div>


All times are GMT. The time now is 06:40 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.01114 seconds
  • Memory Usage 1,717KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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