WordPress.org

Ready to get started?Download WordPress

Forums

Hack now or wait until 1.2? (19 posts)

  1. Beel
    Member
    Posted 10 years ago #

    I am running 1.2a and I don't have any more (actually less) problems than I had with the last stable release so I think at this point in time, "real soon" actually means real soon. IF I were you, I would dl the alpha (just to look at the code, installing it is up to you) and start porting what you have. I have been tweaking all the "old" hacks to work with 1.2alpha and it will be nice when plug-ins beyond "Hello Dolly" become available ;-) - Actually they are starting to roll in.

  2. shelleyp
    Member
    Posted 10 years ago #

    Thanks Beel
    I downloaded it already for another weblog.
    I'm assuming the database is stable, so will probably do the bulk editing pages now (unless these are on the to-do list). Something like these can be just dropped into the existing app, even by non-programmers, so should be a win-win.
    I'd like to also incorporate my moderated comments hack, but I'm not sure how stable that code is, and don't want to have to hack and rehack.
    I don't think most of my hacks will fit into the plug-in architecture, if I read it correctly.
    If I had a feel for what is going to be changing and not, I could move ahead more comfortably. But I don't know what's still being modified for 1.2 (other than bug fixes), and what is considered 'gold'.
    Do you know where the to-do list is?

  3. shelleyp
    Member
    Posted 10 years ago #

    No, I prefer the ability to be able to specify moderated on a per post basis, so I think I will continue using this implementation, and add it to my version of 1.2.
    As for crapflood -- rule of thumb is don't overengineer. You don't have to be clever with a soution; a 'clever' solution means you're applying a lot of processing for 'good comments'. I check to make sure only a certain number of comments are added per hour and it prevents a flood, and that's all I care about. Once I have bulk comment and post management, and per post comment moderation, I'll have all I need. It may not fit an 'official' WP track -- but that's the benefit of open source, isn't it?
    And your comment_type function didn't work as I needed it, but no biggie. That one did fit a hack easily.
    As for the split, I must have looked at the database wrong because you aren't annotating the type of comment in it -- I thought I saw that you were. I'm assuming this means you're using embedded intelligence in your data field for the comment. I will probably change this -- as a former DBA, I have a real reaction against this, though I imagine it works well for the WordPress.
    (Hmm, may be making a lot of significant changes, which probably won't get folded back into WP. I wonder if I'll end up forking?)
    If you're tweaking the admin interface, than I will wait on my edits. That's one of the areas I was interested in changing.
    I'm happy with my 1.02 installation now--I'll just wait for 1.2 stable, make my edits and then provide packages and/or instructions. I won't post anything for the 1.02 changes since this is an obsolete implementation.

  4. shelleyp
    Member
    Posted 10 years ago #

    PS
    The existing comment_type function echos the comment type, and I needed one that would return it as a string that I could then test and respond accordingly. That's the only reason for the one hack.
    Now, anyway I can convince you all to create a new database field for comment type, rather than embedding it into the string? I'll help you make whatever code changes are necessary to make this move.
    A new enum would be good, with values of 'trackback', 'pingback', and comment.
    Or was there some reason you went this route originally?

  5. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Making comment type into an enum is planned for the future, just right now development time is focused on other things. It'll probably be in the version after 1.2 unless someone submits a unified patch that implements it.

  6. shelleyp
    Member
    Posted 10 years ago #

    I'll post to my site my own version of 1.2 with the changes I want to incorporate and I'll send you all copies. Feel free to accept or reject any of it.
    Of course, without the changes being part of CVS and without coordinated effort, you can't just replace the files because other people are also making changes to the same files, which means manual merging.
    But hey! It's code and that's what counts.

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    When will the 1.2 version be out?

  8. WillM
    Member
    Posted 10 years ago #

    I wish people would stop asking when 1.2 is due. For the devs to commit to a date would mean they would have to release it then, otherwise they would look unprofessional and there would be a lot of bitching here about it. More than likely, the software would not be ready at that point, which would also make them look unprofessional and provoke a lot of bitching. Look what happened with 1.0 - people demanded a New Year release so they rushed it out with a bunch of bugs that a couple weeks more development time could have taken care of. Patience is a virtue.

  9. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Shelley, in terms of getting code into the core, it's much easier to review and incorporate changes if they're sent as a unified diff. I don't think we have a tutorial for generating a diff yet, but I'll suggest that on the documentation mailing list.

  10. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    Here's what I do. wordpress.vanilla/ is an unaltered wordpress checkout. wordpress/ has my changes.
    > diff -urN --exclude-from=wpexcludes wordpress.vanilla/ wordpress/
    That creates a unified diff across the entire tree. wpexcludes lists files to exclude from the diff. Here is its contents.
    CVS
    *.save
    *~
    *.old
    *.bak
    *.diff
    .#*

  11. shelleyp
    Member
    Posted 10 years ago #

    I know how to generate a diff, thanks. That wasn't the point.
    Not a problem -- I'll write whatever and people can use whatever. End of story.
    WillM, you are not winning fans for WordPress.

  12. Anonymous
    Unregistered
    Posted 10 years ago #

    Why is everyone attacking everyone? We are here to work together, the very definition of a community. Shelleyp, There is no reason for you to feel your intelligence was insulted. Rboren was simply responding to allusion's post.

    Anonymous:When will the 1.2 version be out?

    WillM:I wish people would stop asking when 1.2 is due.

    This is the first time I've seen someone ask when it was due, or maybe it was the first time I noticed because you said something about it. Regardless, it is a legitimate question considering the original poster was asking if he should wait for 1.2 to be released before he starts making hacks/plugins. Time is the question here.
    I run WordPress 1.2 alphia build 4 (nightly 20040419 I think). I had a few problems when I installed it but they were quickly fixed. I've been neglecting my site as of late because I've been playing Final Fantasy 3 though. IMO, I think you should document now, because if you code now and don't document, when 1.2 official release finally arrives (not that I'm anxious for it), you may have a hard time implementing them into plugins. All hacks I have on my website (about 6 PHP hacks, about 5 JavaScript hacks) were completely compatible with the current 1.2 version I use.

  13. WillM
    Member
    Posted 10 years ago #

    @mark: yes, and Matt chose not to answer that orginal question. Anon went on to ask it again even though it was already clear that it was not going to get the answer he wanted. I thought that explaining why there wasn't going to be an answer would be better than leaving it hanging. If it had been a legitimate query rather than someone trying to cause trouble by asking awkward questions, I highly doubt it would have been posted anonymously.

  14. WillM
    Member
    Posted 10 years ago #

    Yeah, subtlety tends to get lost on this board ;) If Mark really wants to work together as a community perhaps he should refrain from posting offtopic swipes at other people.

  15. shelleyp
    Member
    Posted 10 years ago #

    WillM, you caught my earlier message before deleting. I thought it was irritated, which is why I deleted it -- something about being chastized does that to me. However, I need to add in the bits that your comment is a reply to.
    I asked in it who Mark was and why he felt compelled to jump in when I was talking to Matt and WillM. I also mentioned that how to use CVS wasn't the point of what I was trying to say, but I think I was being too subtle.

  16. shirasade
    Member
    Posted 10 years ago #

    Okay, this is somewhat off-topic, but I haven't been able to find an answer anywhere on the board and you guys seem to know what you're talking about... I just installed a nightly build of WP (because I needed subcategories) and am now trying to figure out how to do certain things. I've found several solutions, but all requiring hacks - and in the Options of 1.2, I can't enable the my-hacks file.
    So, that's my question - how do I use hacks with 1.2 alpha 6, being pretty much php-illiterate? Thanks in advance for any help!

  17. shelleyp
    Member
    Posted 10 years ago #

    There's an option in Misc options, a checkbox, that you can check to enable my-hacks.php. It's at the bottom of the page.

  18. shirasade
    Member
    Posted 10 years ago #

    Oops, I simply did not see that... Thanks a lot!

  19. JoshuaClinard
    Member
    Posted 10 years ago #

    I can't wait till 1.2 is released. I am sure you guys are working hard on it, as you always do. I do want to make one other comment, and that is that I am glad that you are finally working on making WordPress so that you would be able to have have the index file outside of the WordPress directory. I will finally be able to upgrade one of my sites to a non-beta version of WordPress if that is the case.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.