View Single Post
  #1  
Old 02-25-2010, 01:07 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03652 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete