vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   bbcode with & (ampersand) ? (https://vborg.vbsupport.ru/showthread.php?t=226766)

CCV_Pinto 10-25-2009 06:03 PM

bbcode with & (ampersand) ?
 
hi,

do you know how do I create a bbcode in which the substitution has an ampersand (the symbol: &) ?

because now my &'s are turning into: & which is the "html form" of the ampersand

this would happen if we pass a "htmlspecialchars" php function to the ampersand.. but thats not the problem because others symbols like < and > are working well

so I want a substitution like this:

<a href="blabla.com/test.php?param={param}&otherp=123"

but [mybb]test[mybb] turns to: <a href="blabla.com/test.php?param=mybb&amp;otherp=123"

and I think that cause the script I am calling to not work

I appreciate any advice

thanks in advance

RenatoMN 10-27-2009 08:37 PM

Some things to verify:

1- be sure to include http:// in the href param

2- at least here, you didn't close the <a> tag (nor included the text to be shown).

it should be like: <a href="http://blabla.com/test.php?param={param}&otherp=123">{param}(or other text)</a>

3- if still don't work, try to use &amp; or %26 instead the & itself

CCV_Pinto 10-27-2009 10:18 PM

valeu renato pela resposta :D

mas nenhuma funcionou :(

ser? q eh algum plugin que est? fazendo isso?

--------

the suggestions didnt work

maybe is a plugin that is causing this behavior?

ps: i know the example is not well written, i can post my exact bbcode:


Code:

<object width="480" height="392"><param value="http://video.globo.com/Portal/videos/cda/player/player.swf" name="movie" /><param value="high" name="quality" /><param value="midiaId={param}&autoStart=false&width=480&height=392" name="FlashVars" /><embed width="480" height="392" flashvars="midiaId={param}&autoStart=false&width=480&height=392" type="application/x-shockwave-flash" quality="high" src="http://video.globo.com/Portal/videos/cda/player/player.swf"></embed></object>


All times are GMT. The time now is 10:47 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.00974 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_code_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