WHY:
I discovered PHPWebsite the other day, and I like it save for a few minor
things. These things, listed in ever increasing levels of annoyance, are as
follows:
-Doesn't thing .png is an image file
-Sub category system in the calendar is somewhat awkward.
-MySQL only.
-A static number of sections for each user defined page is insufficient for
my needs.
WHAT:
I took a very short peek under the hood and #4 looks easy to fix. I would
like to:
layout.php:
Eliminate much of the redundancy... There are 6 functions that do nearly the
exact same thing, just a few lines of code difference in each. Clean this
up, and make it so it displays all of the page_content(s) that are associated
with the user_page.
userpage.php
Modify get_page_data to show either the default number of "sections" or the
current number of sections + 1 or 2 blanks (whichever is greater). T
In database:
Couldn't user_pages.num_sections go away? It can be determined dynamically.
NEED:
Anyway, this would allow an arbitrary number of sections for user pages which
will scratch my immediate itch. Ok, here is why I mailed the list:
1. Is anyone else already cleaning this up? I don't want to duplicate
efforts.
2. Is page_content.level just specifying the placement of the section in the
page (IE level 1 is section 1, level 2 is section 2, etc?)
3. I don't want to spend time customizing such OSP and not have my changes
incorporated as it is likely to evolve quickly leaving me stranded.
WHEN:
Responses are much appreciated. I plan to "fix" this stuff over the weekend,
so if anyone wants to point out the light of why this stuff was done this way
and I should leave it alone, please do so now.
DISCLAIMER:
I don't want to step on any toes, or patronize anybody's work. I am just
here to try to help make something that looks promising better.
TIA!
_________________________
Richard Rowell
rr...@sh...
If Java had true garbage collection, most programs would delete themselves
upon execution. - Robert Sewell
|