Gpower2 / Mangetsu

0 stars 0 forks source link

BBcode class #1

Open Gpower2 opened 11 years ago

Gpower2 commented 11 years ago

A class that will contain the functionality needed for BBcodes:

It should make heavy use of regular expressions in order to be as fast as possible.

tolias63 commented 11 years ago

I have done the parsing code. What do you mean when you say “writing” and “fixing”?

LelouchVII commented 11 years ago

If I want to use the spoiler tag. it need to input at the correct place [spoiler]...[\spoiler]

Gpower2 commented 11 years ago

Push the BBcode class that you've written so far and we'll see about the rest ;)

tolias63 commented 11 years ago

I have 3 php files: text.php (textarea box), class.php (bbcode) and index.php (show the result).

Do you want me to push all of them?

Gpower2 commented 11 years ago

Yes, just make a separate folder in order to have a clean file structure.

tolias63 commented 11 years ago

Ok, I pushed them.

P.S.: Sorry for the delay, but I found some errors in the script and I fixed them.

Gpower2 commented 11 years ago

I made some changes to the directory structure and the names of the classes. You should pull the changes locally and see them carefully.

Also, the bbcode transformations that you used don't match the ones we currently use. I guess you found them and used them as they were. I uploaded a test file in order to use it as a reference for the correct output.

tolias63 commented 11 years ago

I didn't use them as they were, I selected the names of the tags. I will change them to match with the ones we use now.;)

Also, with the “bbcodeTest01.txt” that you uploaded, I found error in the quote code. When it is quote within quote it doesn’t work (I didn’t think to testing that). I will try to fix it and I will edit the code.

Gpower2 commented 11 years ago

Made a few more changes, so please pull once again to have the latest version, thanks.

tolias63 commented 11 years ago

I finished with the changes. I'll check the script again tomorrow and I will push it. ;)

tolias63 commented 11 years ago

I have pushed the files. I uploaded and a new bbcodeTest02.txt. I think now we are ok, but test it yourself.;)

Gpower2 commented 11 years ago

Better, but it still has a lot of issues: