Pages: [1] 2 3 4
  Print  
Author Topic: Updates, Updates, Updates on the way.  (Read 8693 times)
Offline (Male) MahFreenAmeh
Posted on: May 17, 2010, 03:18:59 PM

sysadmin
"Web Team"
Location: Austin, TX
Joined: Apr 2008
Posts: 15
AOL Instant Messenger - sirmxe
View Profile WWW Email
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.
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: May 17, 2010, 03:34:48 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2949

View Profile Email
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
Offline (Unknown gender) luiscubal
Reply #2 Posted on: May 17, 2010, 04:04:44 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
What are the main new features in Josh's BBCode?
Logged
Offline (Male) Josh @ Dreamland
Reply #3 Posted on: May 17, 2010, 04:07:53 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2949

View Profile Email
Code: (C++) [Select]
#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 for (int i = 0; i < 10; i++) 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
Offline (Unknown gender) luiscubal
Reply #4 Posted on: May 17, 2010, 04:34:50 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
ooh. neat.
Although the color contrast is not ideal(light blue in light gray background is not the best combination).
Logged
Offline (Male) Rusky
Reply #5 Posted on: May 17, 2010, 04:57:38 PM

Resident Troll
Joined: Feb 2008
Posts: 961
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
<< endl flushes cout already.
Logged
Offline (Male) Josh @ Dreamland
Reply #6 Posted on: May 17, 2010, 05:49:49 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2949

View Profile Email
I needed to think of a function, and that was the first that came to mind. :P
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
Offline (Male) RetroX
Reply #7 Posted on: May 17, 2010, 07:30:03 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Or just append ;bbparser=josh and use the semicolon rather than the amperstand.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) notachair
Reply #8 Posted on: May 18, 2010, 02:56:47 AM

Definitely not a chair
Contributor
Joined: Feb 2008
Posts: 300

View Profile
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
Logged
Offline (Male) MahFreenAmeh
Reply #9 Posted on: May 18, 2010, 09:19:29 AM

sysadmin
"Web Team"
Location: Austin, TX
Joined: Apr 2008
Posts: 15
AOL Instant Messenger - sirmxe
View Profile WWW Email
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.
Offline (Male) polygone
Reply #10 Posted on: May 18, 2010, 10:11:33 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 810

View Profile
The development function progress is brokeded:
http://enigma-dev.org/progress.htm

The 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.
Offline (Male) MahFreenAmeh
Reply #11 Posted on: May 18, 2010, 11:05:51 AM

sysadmin
"Web Team"
Location: Austin, TX
Joined: Apr 2008
Posts: 15
AOL Instant Messenger - sirmxe
View Profile WWW Email
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.
Offline (Male) polygone
Reply #12 Posted on: May 18, 2010, 11:30:41 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 810

View Profile
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.
Offline (Male) MahFreenAmeh
Reply #13 Posted on: May 18, 2010, 11:39:06 AM

sysadmin
"Web Team"
Location: Austin, TX
Joined: Apr 2008
Posts: 15
AOL Instant Messenger - sirmxe
View Profile WWW Email
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.
Offline (Male) polygone
Reply #14 Posted on: May 18, 2010, 11:53:13 AM

Contributor
Location: England
Joined: Mar 2009
Posts: 810

View Profile
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.
Pages: [1] 2 3 4
  Print