BB code problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eware
Forum Newbie
Posts: 3
Joined: Mon Aug 13, 2007 9:53 pm

BB code problem

Post by eware »

I have a theme installed on my board. The bb code has never worked. Whenever someone uses it I get the following message at the top of the page:

Parse error: syntax error, unexpected '<' in /home/daveko5/public_html/phpbb/includes/bbcode.php(61) : eval()'d code on line 61

Warning: Cannot modify header information - headers already sent by (output started at /home/daveko5/public_html/phpbb/includes/bbcode.php(61) : eval()'d code:61) in /home/daveko5/public_html/phpbb/includes/page_header.php on line 483

Is there some code I need to alter/fix? I know html, but I'm new to php, so treat me like I don't know anything.
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

a theme? does the standard theme work correctly, if so, it sounds like your theme has edited the wrong parts of some files.
eware
Forum Newbie
Posts: 3
Joined: Mon Aug 13, 2007 9:53 pm

Post by eware »

Template. The default template worked. I've compare the bbcode.tpl in the template I'm using with the subSilver bbcode.tpl, and they look identical. Where else might there be a problem?
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

did the theme require you to edit/overwite bbcode.php? If so, post up the code.
eware
Forum Newbie
Posts: 3
Joined: Mon Aug 13, 2007 9:53 pm

Post by eware »

No, I didn't make any changes to the bbcode.php
User avatar
stereofrog
Forum Contributor
Posts: 386
Joined: Mon Dec 04, 2006 6:10 am

Post by stereofrog »

They're probably using preg_replace with /e switch and something in your input caused it to form a syntactically incorrect string. I wouldn't use software that behaves like this.
Post Reply