MahFreenAmeh
|
|
Posted on: May 17, 2010, 03:18:59 pm |
|
|
sysadmin
"Web Team" Location: Austin, TX Joined: Apr 2008
Posts: 13
|
Greetings.
I've been working lately on implementing some changes to the forum.
As of now, I have patched Josh's BBCode parser into the forum. It was a little bit of work, but it was pretty simple. The most time was honestly spent just looking for the right area. In any case, for now, to see any forum page with Josh's BBCode parser applied to it, append &bbparser=josh to the end of the URL, and it will apply his parser to it.
I'll be seeing what I can do to make more compliance with regular BBCode standards on it, and, as well, will accept any recommendations for what to add to the forum in my free time.
Also:
Update: Modified the Development\Progress page to pull results from mysql database;
I went ahead and pushed all of the functions into a MySQL Database.
After pushing them over (through extensive parsing of the list of functions), I rewrote the progress page as well to pull its results from the table I pushed into the MySQL Database, instead of from an RSS feed of the forum posts, as it previously was (based on a quick analysis of the source). From there, I also made sure that nothing was hardcoded in, and put in a AJAX method for grabbing the functions, so as to keep the total size of the page down in order to make it load faster.
More updates on the way when I get the chance to make more.
If you have any ideas, let me know.
Regards,
MFA
|
|
|
Logged
|
sys(tem)admin(istrator) [java,c++,c,javascript,html,css,php,perl,ruby,python,sql] if you've got ideas, let me hear them.
|
|
|
Josh @ Dreamland
|
|
Reply #1 Posted on: May 17, 2010, 03:34:48 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
I was thinking that to reduce sever load it'd be a good idea to keep a generated copy of the page which could be refreshed by forum admins if the database is updated from an outside source.
Anyway, trouble is that BBParser I wrote is old and doesn't use SMF's style; it uses its own unique tag system. Nice thing is that it highlights code and has an inline code tag. If only the two could just be merged...
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
Josh @ Dreamland
|
|
Reply #3 Posted on: May 17, 2010, 04:07:53 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
#include <iostream> using namespace std; int main() { string a = "hello, world"; cout << a << endl; fflush(stdout); //oh snap, I didn't include this :3 return 0; } Also, I added a tag [snip=cpp]for (int i = 0; i < 10; i++)[/snip] inline code.
There's also a spoiler tag, a whisper tag which is probably not properly integrated as I did not inform Gary it exists... some other tags. I really just want the first two I showed, though.
|
|
« Last Edit: May 17, 2010, 04:11:57 pm by Josh @ Dreamland »
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
|
|
|
MahFreenAmeh
|
|
Reply #9 Posted on: May 18, 2010, 09:19:29 am |
|
|
sysadmin
"Web Team" Location: Austin, TX Joined: Apr 2008
Posts: 13
|
If the custom BBcode engine took a lot of hacking, can I ask that if you have the time to convert your modifications into an SMF package you do so, so that whenever I upgrade the forum, things don't go awry.
Just be careful with the <search postition="x"> things because the insert position may confuse you.
And definitely do not bugtest SMF packages on a live server in case you plan on doing that, things can go very, very wrong
perhaps you aren't aware of my working methodology. If I actually hack it apart and get it working, then I'll package it. Nonetheless, whatever works. A large amount of your code would probably be confusing to most people. It took me about 10 minutes to completely rewrite a parser, and just a few more minutes to push it to a database. weeeeeee
|
|
|
Logged
|
sys(tem)admin(istrator) [java,c++,c,javascript,html,css,php,perl,ruby,python,sql] if you've got ideas, let me hear them.
|
|
|
polygone
|
|
Reply #10 Posted on: May 18, 2010, 10:11:33 am |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
The development function progress is brokeded: http://enigma-dev.org/progress.htmThe categories are not corresponding to correct ones and none are highlighted.
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
MahFreenAmeh
|
|
Reply #11 Posted on: May 18, 2010, 11:05:51 am |
|
|
sysadmin
"Web Team" Location: Austin, TX Joined: Apr 2008
Posts: 13
|
The development function progress is brokeded: http://enigma-dev.org/progress.htm
The categories are not corresponding to correct ones and none are highlighted.
when i worked through it it looks like i made a mistake, let me fix that. basically the original functionality was to completely enumerate through all of the mysql rows to determine the index of the subcat. i changed it to be more distinct and now i have to fix a quick mistake
|
|
|
Logged
|
sys(tem)admin(istrator) [java,c++,c,javascript,html,css,php,perl,ruby,python,sql] if you've got ideas, let me hear them.
|
|
|
polygone
|
|
Reply #12 Posted on: May 18, 2010, 11:30:41 am |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
That's better it's fixed. The DLL category is not showing anything in it though, but I cannot remember if it actually had anything in it previously..
|
|
« Last Edit: December 28, 2010, 08:28:46 am by polygone »
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
MahFreenAmeh
|
|
Reply #13 Posted on: May 18, 2010, 11:39:06 am |
|
|
sysadmin
"Web Team" Location: Austin, TX Joined: Apr 2008
Posts: 13
|
That's betterer it's fixeded. The DLL category is not showing anything in it though, but I cannot remember if it actually had anything in it previously..
fixed the issue, looked like it was iterating through them wrong. resolved issue by creating a table to associate id's to subcats everything should be in order now also, from what i can see, they do appear to be highlighted. any screenshots to show your experience would be much appreciated.
|
|
|
Logged
|
sys(tem)admin(istrator) [java,c++,c,javascript,html,css,php,perl,ruby,python,sql] if you've got ideas, let me hear them.
|
|
|
polygone
|
|
Reply #14 Posted on: May 18, 2010, 11:53:13 am |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
They're highlighted now, they weren't before.
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
|