Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 03-03-2012, 06:27 PM
brandondrury brandondrury is offline
 
Join Date: Oct 2005
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you ever figure this one out?

Brandon
Reply With Quote
  #3  
Old 03-03-2012, 08:39 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03546 seconds
  • Memory Usage 2,185KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete