Posted on Saturday 16th February 20 at 10:57 PM | |
Crown Newbie |
I have a problem with the forum script from the tutorial, when i go to the forum.php in my broswer i get this Code \\1'", "'\\1'", "'\\1'", "'\\2'", "'\\1'", "''", "'Code: '.highlight_string(stripslashes(str_replace('', '', '$1')), true).' '", "'PHP Code: '.highlight_string(stripslashes(str_replace('', '', '$1')), true).' '", "'Print Out: '.highlight_string(stripslashes(str_replace('', '', '$1')), true).' '" ); //replacements return preg_replace($match, $replace, $content); //match, and replace } //end the function ?> Forum is Empty |
Posted on Saturday 16th February 20 at 11:16 PM | |
DanielXP Senior Member |
so when u go onto forum.php it displays that code? |
Posted on Sunday 17th February 2008 at 03:24 AM | |
Crown Newbie |
Indeed |
Posted on Sunday 17th February 2008 at 11:02 AM | |
new2old Junior Member |
It has to be something your doing wrong becuase you said the newfriends page shows the php to. Try taking include "bbcode.php"; out of the forum.php file |
Posted on Sunday 17th February 2008 at 11:35 AM | |
Crown Newbie |
I did that works but when you try to add a thread you get this "Fatal error: Call to undefined function BBCODE() in D:\wamp\www\UserSystem\forum.php on line 48" The page is http://brandonl.sytes.net/usersystem/forum.php |
Posted on Sunday 17th February 2008 at 11:58 AM | |
new2old Junior Member |
post your bbcode page |
Posted on Sunday 17th February 2008 at 12:04 PM | |
Crown Newbie |
here it is http://pastesite.com/143 |
Posted on Sunday 17th February 2008 at 12:17 PM | |
new2old Junior Member |
in forum.php find case 'forum.php': then look for something like bbctt1 = BBCODE($thread[title]) delete it |
Posted on Sunday 17th February 2008 at 12:23 PM | |
Crown Newbie |
i did that but now it onlys shows the post who was posted by and no link and no text for the thread name :s |
Posted on Sunday 17th February 2008 at 12:31 PM | |
new2old Junior Member |
I think you need to learn more PHP before you take on this project same case look further down and it will have $bbctt1 change that to $thread[title] |