Jump to content

Attention All Codemonkeys

Featured Replies

I'm working on a new wiki software along with dave (maybe aeternus as well), mainly to use for SFN's OpenScience wiki (if we can do it fast enough).

Anyways, I'd like to ask if there are any experienced PHP and MySQL developers here. I mean experienced as in able to do coding without referring to a dozen tutorials on the way. Also you ought to know how to deal with security issues if necessary.

 

If you would like to join us, and you know you have enough time and will to work on the project, register at SourceForge and tell me your account name. I will add you.

If you turn out to be a crappy coder, I'll just boot you out. Don't join unless you know you can do it.

 

Moderators: dave approved this post, so don't tell me it's advertisement

I can help with any problems that need solving ("what's the best way to X?", etc), but I won't have time to develop.

I have time but about 0 experience, sorry, will be good to use when it's finished though!

  • 4 weeks later...
  • Author

I'd like to ask if anybody has ideas on how to implement a categories system. It would be easy, but for the fact that I want to do them so that you can have sub-categories and sub-sub-categories and so on. I can't figure out how to display them and such though. Help?

The easiest way of doing it is by having a 'parent' field in the database. You might have something like this:

 

+-------------+---------------+-----------+
| Category ID | Name          | Parent ID |
+-------------+---------------+-----------+
| 1           | Mathematics   | 0         |
| 2           | Physics       | 0         |
| 3           | Calculus      | 1         |
| 4           | Analysis      | 3         |
| 5           | Thermal       | 2         |
| 6           | Fractals      | 1         |
+-------------+---------------+-----------+

 

So here, 0 is our base category and then you can see which category belongs to which tree. In this case:

 

- Mathematics
`- Calculus 
  `- Analysis
`- Fractals
- Physics
`- Thermal

 

The code for actually parsing this lot isn't too hard, but you do have to use recursion (obviously).

  • Author

Aha! It works! Thanks Aeternus (he got it to me on IRC).

 

Anyways, if someone here knows good Smarty, HTML, and CSS I'd like to upgrade the default style of scWiki. It looks a bit boring, I must say.

 

 

After this, all I have to do is the admin control panel (it's half-done) and bugfixes and scWiki should be done!

Needs more Instiki

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.