vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Parsing BBCode, not working how I need it too. (https://vborg.vbsupport.ru/showthread.php?t=91642)

Guest190829 07-05-2005 02:28 AM

Parsing BBCode, not working how I need it too.
 
Okay, well I made a function to send a PM for a hack I'm making, and inside

PHP Code:

$message 

Is text, and also a link to a members profile...so I need to parse the link to make it an actually hyperlink...

I tried

PHP Code:

$parsedurl parse_bbcode("<a href='" $cleanurl[0] ."'>$cleanuri[0]</a>"); 

and that wasn't what I wanted....

And then I tried

PHP Code:

$parseurl parse_bbcode("[URL=$cleanuri[0]]$cleanurl[0][/url]"); 

And that gave me the actually HTML markup for the link

Code:

<a href="http://localhost/member.php?u=1" target="_blank">http://localhost/member.php?u=1</a>
And it didn't parse it! So can anyone give me a helping hand and tell me what I'm doing wrong?

sabret00the 07-05-2005 05:20 PM

what's wrong with simply parse_bbcode($message);

Guest190829 07-05-2005 05:39 PM

Yeah, that would give the same affect as what I was doing. When I tried it that way, I got the same result. It's parsing the bbcode I guess, since it's coming up
as

Code:

<a href="http://localhost/member.php?u=1">http://localhost/member.php?u=1</a>
I just don't know why it isn't parsing the HTML now?

sabret00the 07-06-2005 07:38 AM

are you sure you're not parsing it twice?

altsounds 09-20-2005 07:04 AM

I have this issue too with something I am working on. Can get it to parse the bb code but all is left is html. How do we get the html to work and not just be text??


All times are GMT. The time now is 09:56 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.00980 seconds
  • Memory Usage 1,720KB
  • 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_php_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