Beta release, including pagination

ludo, Wednesday 01 December 2004 13:59:57 PST

As promised in the previous entry's comments I have just packaged a new release which integrates the new features I had already made to our custom branch:

  • pagination (previous page, next page) in the index, archives, and categories pages

  • a simpler entries loop (the number of posts displayed is now always the same as the

    posts_per_page

    options)

  • fixed templates which are now validating

  • other small fixes

I have moved the release from alpha to beta status, as I have fixed the few bugs left and I see no new ones. More details in the ChangeLog.

On a side note, I have got different reactions to WPFF, some like its cleanness and simplicity, others find it messy. Whatever rocks your boat..... :)

Readers' Comments

  1. PerS

    I sugest that you in config.php change



    ini_set('include_path', ini_get('include_path') . ":$basedir");



    to



    $sep = ( strstr( strtoupper( PHP_OS ) , 'WIN' ) ) ? ';' : ':' ;

    ini_set('include_path', ini_get('include_path') . $sep . "$basedir");

  2. ludo

    PerS are you using this on Windows? I'm developing and using Linux as my only OS so I will be glad for any suggestions that can make this work on Windows.

  3. PerS

    I develop on windows, but my server is a Red Hat 9, so I'm in both worlds



    btw, using this ISAPI_Rewrite (the Lite version) httpd.ini file, wpff runs almost flawlessly on my windows 2003 server:



    [ISAPI_Rewrite]

    RewriteRule ^/wpff/rss2.xml /wpff/feed.php [L]

    RewriteRule ^/wpff/category/([^/]+)/?$ /wpff/index.php?c=$1 [L]

    RewriteRule ^/wpff/archives/([^/]+)/?$ /wpff/index.php?a=$1 [L]

    RewriteRule ^/wpff/post/([^/]+)/?$ /wpff/index.php?p=$1 [L]

    RewriteRule ^/wpff/static/([^/]+)/?$ /wpff/index.php?s=$1 [L]

    RewriteRule ^/wpff/([0-9]{4})/([0-9]{2})/([0-9]{2})/([^/]+)/?$ /wpff/index.php?p=$4&y=$1&m=$2&d=$3 [L]

    RewriteRule ^/wpff/([0-9]{4})/([0-9]{2})/([^/]+)/?$ /wpff/index.php?p=$3&y=$1&m=$2 [L]

  4. ludo

    "Almost" flawlessly? :)



    PerS want to write a brief Windows howto? Or can I summarize your findings in a topl level post?

  5. PerS

    hehe, yes almost



    In /wpff/post/hello-world#add_comment, if I click on the number in front of a comment (url = /wpff/post/1#1) I get the following error:


    dblite_mysql.query() line 57: cannot execute query select comment_post_id as post_id, count(*) as num_comments from wp_comments where comment_post_id in () and comment_approved = '1' group by comment_post_id (mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') and comment_approved = '1' group by comment_post_id' at line )



    Submitting a comment results in the this error:


    dblite_mysql.query() line 57: cannot execute query insert into wp_comments (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent) VALUES (1, 'p', 'p', 'p', '127.0.0.1', '2004-12-02 ', '%2004-%12-%02 18:43:04', 'wer wer', '1', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)') (mysql error: Unknown column 'comment_agent' in 'field list')


  6. ludo

    Ahhh the joys of Open Source development :)



    #1 is a bug, well sort of since the visible links structure is defined in the templates not in the code, and the fix is to post.xml:51

    <a name="{comment_ID}" href="{option_url}/{option_post_prefix}/{post_name}#{comment_ID}">{comment_index}.</a>





    #2 is due to my using the 1.3 DB schema where 'comment_agent' is a field in the comments table



    The "fix" is to add a configuration variable that enables or disables 1.2 compatibility, I will do this between tonight and tomorrow. The 1.2 code is:



    includes/post.php:69 from


    "comment_date_gmt, comment_content, comment_approved, comment_agent) " .



    to

    "comment_date_gmt, comment_content, comment_approved) " .





    includes/post.php:73 from

    "'" . gmdate("%Y-%m-%d H:i:s", $now) . "', '$c_text', '$comment_status', '" . $_SERVER['HTTP_USER_AGENT'] . "')";



    to

    "'" . gmdate("%Y-%m-%d H:i:s", $now) . "', '$c_text', '$comment_status')";



    Thanks a lot for the beta testing! :)

  7. blue dear

    blue dear tournaments are now available. I truely believe that blue dear http://bluedear-e5.p8.org.uk blue dear offers the most complete combination of fun, friends, and gaming. Thanks for the information, Alex. See also blue dear summary at blue dear. Have Fun!