![]() |
Can you paste the code around 799 in class_postbit.php?
Nm, parse_bbcode() has a typo. PHP Code:
|
Nope:
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /home/httpd/vhosts/jeepforum.com/httpdocs/forum/includes/class_postbit.php on line 812 Fatal error: Cannot instantiate non-existent class: vb_bbcodeparser in /home/httpd/vhosts/jeepforum.com/httpdocs/forum/showthread.php on line 982 I am replacing the first parse_bbcode: function parse_bbcode() { $this->post['message'] = $this->bbcode_parser->parse($this->post['pagetext'], $this->forum['forumid'], $this->post['allowsmilie']); } .... There is also .... function parse_bbcode() { $this->bbcode_parser->attachments =& $this->post['attachments']; $this->bbcode_parser->unsetattach = true; $this->post['message'] = $this->bbcode_parser->parse( $this->post['pagetext'], $this->forum['forumid'], $this->post['allowsmilie'], false, $this->post['pagetext_html'], $this->post['hasimages'], $this->cachable ); $this->post_cache =& $this->bbcode_parser->cached; } |
Quote:
|
Did you replace it with the code i pasted with the fixed typo?
|
Yes I did ...
|
Interesting, you were replacing the entire function as well?
The second function belongs to a seperate class, so dont worry about that one. Can you paste what you've done with 3 or 4 lines either side? |
Yes I copied and pasted your function over parse_bbcode() the orginal. That error comes out when viewing a thread.
Have you tested the code? |
No, but the error you are getting indicates a typo/error in pasting :\
You're running PHP5? |
PHP 4.3
I am guessing that code just doesn't work for some reason if you haven't tested it. Are you sure if(is_member_of($this->post, X)) works in a PHP file? That variable works in plugins but in PHP files? |
Its available everywhere. Ill look into it furthur after the xmas stuff is over :)
|
All times are GMT. The time now is 06:20 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|