vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Hack edit (https://vborg.vbsupport.ru/showthread.php?t=50654)

geniuscrew 03-22-2003 09:23 PM

Hack edit
 
Can someone please tell me why I get an error when I change this

PHP Code:

$message "[color=".$bbuserinfo[post_color]."][font=".$bbuserinfo[post_font]."][size=".$bbuserinfo[post_size]."]".$message."[/size][/font][/color]"

to this

PHP Code:

$message "<span style="".$bbuserinfo[post_color]."font-family:".$bbuserinfo[post_font]."size:".$bbuserinfo[post_size].">".$message."</font>"; 


Thanks

amykhar 03-22-2003 10:10 PM

This might be it:

Code:

style="".$
You have an extra quote there I think. Either that or you need to escape one.

geniuscrew 03-22-2003 10:21 PM

escape one ie take one out?

amykhar 03-23-2003 02:11 AM

No. You need to put an escape slash before the first quote I believe. What is happening is by not escaping the quote with a \ it is closing the string before you are ready to. Any time you use a quote within a quote you need to use the slash to tell the parser that you mean that to be a quote character and not the end of the string.

geniuscrew 03-24-2003 06:02 AM

Got it- I'll try that

Thanks Amy

geniuscrew 03-24-2003 02:35 PM

Cheers amy - all is happy :)

amykhar 03-24-2003 04:40 PM

Yay!


All times are GMT. The time now is 09:06 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.01499 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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